mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Show streaming reasoning summaries in the TUI status row (#43921)
## What changed - Update the status heading from the latest usable reasoning line and retain it through tool activity and empty reasoning items. Keep completed reasoning in the expanded transcript only. - Restore active reasoning after resume, thread switches, and session refreshes, including when earlier events have left the replay buffer. - Default new embedded TUI threads to `model_reasoning_summary = "detailed"`, honoring explicit summary settings. Keep `concurrent_reasoning_summaries` opt-in and disable it when summaries are `none`. - Persist the request's captured reasoning summary setting in context updates and local and remote compaction checkpoints. - Animate status text with a smooth, grapheme-aware shimmer that respects terminal colors and reduced motion. ## Testing Add regression coverage for reasoning status updates, transcript visibility, resume and buffered replay, outbound summary configuration, and summary settings across all three compaction modes. Add shimmer snapshots and checks for smooth brightness changes and Unicode grapheme preservation. GitOrigin-RevId: 725c7de20f23166d7a3da6daeca617add5cbc600
This commit is contained in:
1 parent
78932f4493
commit
9ec33e1926
45 files changed
+1798
-90
No files matched your search
@@ -48,6 +48,8 @@ mod realtime_handoff_e2e;
|
||||
mod realtime_requests;
|
||||
#[path = "tests/realtime_start.rs"]
|
||||
mod realtime_start;
|
||||
#[path = "tests/reasoning_resume_tests.rs"]
|
||||
mod reasoning_resume_tests;
|
||||
#[path = "tests/recap_generation_tests.rs"]
|
||||
mod recap_generation;
|
||||
mod safety_buffering;
|
||||
@@ -1348,6 +1350,7 @@ async fn replayed_turn_complete_submits_restored_queued_follow_up() {
|
||||
events: vec![ThreadBufferedEvent::Notification(Box::new(
|
||||
turn_completed_notification(thread_id, "turn-1", TurnStatus::Completed),
|
||||
))],
|
||||
active_reasoning_item: None,
|
||||
input_state: Some(input_state),
|
||||
},
|
||||
/*resume_restored_queue*/ true,
|
||||
@@ -1402,6 +1405,7 @@ async fn replay_only_thread_keeps_restored_queue_visible() {
|
||||
events: vec![ThreadBufferedEvent::Notification(Box::new(
|
||||
turn_completed_notification(thread_id, "turn-1", TurnStatus::Completed),
|
||||
))],
|
||||
active_reasoning_item: None,
|
||||
input_state: Some(input_state),
|
||||
},
|
||||
/*resume_restored_queue*/ false,
|
||||
@@ -1452,6 +1456,7 @@ async fn replay_thread_snapshot_keeps_queue_when_running_state_only_comes_from_s
|
||||
session: None,
|
||||
turns: Vec::new(),
|
||||
events: vec![],
|
||||
active_reasoning_item: None,
|
||||
input_state: Some(input_state),
|
||||
},
|
||||
/*resume_restored_queue*/ true,
|
||||
@@ -1502,6 +1507,7 @@ async fn replay_thread_snapshot_in_progress_turn_restores_running_queue_state()
|
||||
session: None,
|
||||
turns: vec![test_turn("turn-1", TurnStatus::InProgress, Vec::new())],
|
||||
events: Vec::new(),
|
||||
active_reasoning_item: None,
|
||||
input_state: Some(input_state),
|
||||
},
|
||||
/*resume_restored_queue*/ true,
|
||||
@@ -1532,6 +1538,7 @@ async fn replay_thread_snapshot_in_progress_turn_restores_running_state_without_
|
||||
session: None,
|
||||
turns: vec![test_turn("turn-1", TurnStatus::InProgress, Vec::new())],
|
||||
events: Vec::new(),
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
},
|
||||
/*resume_restored_queue*/ false,
|
||||
@@ -1584,6 +1591,7 @@ async fn replay_thread_snapshot_does_not_submit_queue_before_replay_catches_up()
|
||||
thread_id, "turn-1",
|
||||
))),
|
||||
],
|
||||
active_reasoning_item: None,
|
||||
input_state: Some(input_state),
|
||||
},
|
||||
/*resume_restored_queue*/ true,
|
||||
@@ -1717,6 +1725,7 @@ async fn replay_thread_snapshot_restores_collaboration_mode_for_draft_submit() {
|
||||
session: None,
|
||||
turns: Vec::new(),
|
||||
events: vec![],
|
||||
active_reasoning_item: None,
|
||||
input_state: Some(input_state),
|
||||
},
|
||||
/*resume_restored_queue*/ true,
|
||||
@@ -1798,6 +1807,7 @@ async fn replay_thread_snapshot_restores_collaboration_mode_without_input() {
|
||||
session: None,
|
||||
turns: Vec::new(),
|
||||
events: vec![],
|
||||
active_reasoning_item: None,
|
||||
input_state: Some(input_state),
|
||||
},
|
||||
/*resume_restored_queue*/ true,
|
||||
@@ -1851,6 +1861,7 @@ async fn replayed_interrupted_turn_restores_queued_input_to_composer() {
|
||||
events: vec![ThreadBufferedEvent::Notification(Box::new(
|
||||
turn_completed_notification(thread_id, "turn-1", TurnStatus::Interrupted),
|
||||
))],
|
||||
active_reasoning_item: None,
|
||||
input_state: Some(input_state),
|
||||
},
|
||||
/*resume_restored_queue*/ true,
|
||||
@@ -3748,6 +3759,7 @@ async fn replay_snapshot_with_pending_request_suppresses_replay_notices() {
|
||||
/*approval_id*/ None,
|
||||
))),
|
||||
],
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
},
|
||||
/*resume_restored_queue*/ false,
|
||||
@@ -4142,6 +4154,7 @@ async fn replayed_file_change_approval_recovers_snapshot_changes() {
|
||||
},
|
||||
},
|
||||
))],
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
},
|
||||
/*resume_restored_queue*/ false,
|
||||
@@ -5079,6 +5092,7 @@ async fn side_thread_snapshot_does_not_refresh_from_fork_history() {
|
||||
}),
|
||||
turns: Vec::new(),
|
||||
events: Vec::new(),
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
};
|
||||
|
||||
@@ -5109,6 +5123,7 @@ async fn side_thread_snapshot_skips_session_header_preamble() {
|
||||
}),
|
||||
turns: Vec::new(),
|
||||
events: Vec::new(),
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
};
|
||||
|
||||
@@ -5284,6 +5299,7 @@ async fn active_side_thread_renders_live_mcp_startup_notifications() {
|
||||
)),
|
||||
turns: Vec::new(),
|
||||
events: Vec::new(),
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
},
|
||||
/*resume_restored_queue*/ false,
|
||||
@@ -8133,6 +8149,7 @@ async fn replay_thread_snapshot_replays_turn_history_in_order() {
|
||||
},
|
||||
],
|
||||
events: Vec::new(),
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
},
|
||||
/*resume_restored_queue*/ false,
|
||||
@@ -8222,6 +8239,7 @@ async fn replace_chat_widget_reseeds_collab_agent_metadata_for_replay() {
|
||||
},
|
||||
),
|
||||
))],
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
},
|
||||
/*resume_restored_queue*/ false,
|
||||
@@ -8278,6 +8296,7 @@ async fn refreshed_snapshot_session_persists_resumed_turns() {
|
||||
session: Some(initial_session),
|
||||
turns: Vec::new(),
|
||||
events: Vec::new(),
|
||||
active_reasoning_item: None,
|
||||
input_state: None,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user