mirror of
https://github.com/openai/codex.git
synced 2026-11-20 07:06:24 +00:00
Prepare the TUI for conversation recaps (#40696)
## What changed - Forward terminal focus changes through the TUI event stream and handle them across interactive screens. - Track completed turns and recap eligibility across active, resumed, and switched threads. - Add bounded recent-conversation prompt construction and a wrapping `Conversation recap` history cell. - Cover focus timing, repeat eligibility, restored progress, UTF-8 prompt limits, and recap rendering with unit and snapshot tests. GitOrigin-RevId: d7542c18b2bb1e72f5906f563898645bb526255f
This commit is contained in:
1 parent
725b3a44f8
commit
7c1e36c23f
25 files changed
+867
-34
No files matched your search
@@ -5470,6 +5470,7 @@ async fn make_test_app() -> App {
|
||||
rate_limit_hard_stop_generation: 0,
|
||||
pending_plugin_enabled_writes: HashMap::new(),
|
||||
pending_hook_enabled_writes: HashMap::new(),
|
||||
recap: recap::RecapState::default(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5550,6 +5551,7 @@ async fn make_test_app_with_channels() -> (
|
||||
rate_limit_hard_stop_generation: 0,
|
||||
pending_plugin_enabled_writes: HashMap::new(),
|
||||
pending_hook_enabled_writes: HashMap::new(),
|
||||
recap: recap::RecapState::default(),
|
||||
},
|
||||
rx,
|
||||
op_rx,
|
||||
@@ -7711,6 +7713,13 @@ async fn refreshed_snapshot_session_persists_resumed_turns() {
|
||||
let store_snapshot = store.snapshot();
|
||||
assert_eq!(store_snapshot.session, Some(resumed_session));
|
||||
assert_eq!(store_snapshot.turns, snapshot.turns);
|
||||
assert_eq!(
|
||||
store.recap_progress(),
|
||||
recap::RecapProgress {
|
||||
completed_turns: 1,
|
||||
last_recapped_turn_count: None,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in new issue
Block a user