mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add a TUI setting to disable automatic recaps (#42101)
## What changed - Add the `tui.auto_recap` configuration option, enabled by default. - When disabled, cancel scheduled automatic recap checks, reject automatic requests, and discard pending automatic results without retrying. - Keep manual `/recap` requests available regardless of the setting. ## Testing - Cover configuration defaults and command-line overrides. - Cover scheduling cancellation, pending request cleanup, discarded results, and manual recaps while automatic recaps are disabled. GitOrigin-RevId: 7d5323f58a2c84e60683a25a8c77653097efe6e2
This commit is contained in:
1 parent
b6ab99ed87
commit
8ea297ff60
14 files changed
+229
-47
No files matched your search
@@ -973,11 +973,10 @@ impl App {
|
||||
&& let ServerNotification::TurnCompleted(notification) = ¬ification
|
||||
{
|
||||
let now = Instant::now();
|
||||
let app_event_tx = self.app_event_tx.clone();
|
||||
|
||||
self.recap
|
||||
.note_turn_finished(¬ification.turn.status, now);
|
||||
self.recap.schedule_check(thread_id, app_event_tx, now);
|
||||
self.schedule_recap_check(thread_id, now);
|
||||
}
|
||||
let misalignment_policy_violation =
|
||||
match ¬ification {
|
||||
@@ -1340,10 +1339,9 @@ impl App {
|
||||
.send(AppEvent::BeginInitialHistoryReplayBuffer);
|
||||
}
|
||||
let now = Instant::now();
|
||||
let app_event_tx = self.app_event_tx.clone();
|
||||
|
||||
self.recap.seed_from_turns(&turns, now);
|
||||
self.recap.schedule_check(thread_id, app_event_tx, now);
|
||||
self.schedule_recap_check(thread_id, now);
|
||||
|
||||
self.chat_widget
|
||||
.replay_thread_turns(turns, ReplayKind::ResumeInitialMessages);
|
||||
|
||||
Reference in new issue
Block a user