mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Compact successful command activity in the TUI (#38921)
## What changed - Group consecutive successful agent and unified-exec startup commands into a compact `Ran N commands` entry while preserving their full transcript. - Flush command groups at interaction boundaries, after failures, and after 32 completed commands. Keep manual shell commands and failed or declined commands visible. - Apply the same grouping rules when replaying thread history without duplicating command starts or disturbing unrelated active commands. ## Testing - Add TUI coverage for live and replayed grouping, transcript preservation, failures, overlapping commands, group limits, and interaction boundaries. GitOrigin-RevId: d6602a20201644012fcff3d6cecf4690024383a9
This commit is contained in:
1 parent
935b1c4e3d
commit
1f41cc5d92
18 files changed
+696
-76
No files matched your search
@@ -24,6 +24,7 @@ impl ChatWidget {
|
||||
let should_pause_active_goal = self
|
||||
.bottom_pane
|
||||
.active_view_will_interrupt_turn_on_key_event(key_event);
|
||||
self.flush_completed_command_activity();
|
||||
self.bottom_pane.handle_key_event(key_event);
|
||||
if should_pause_active_goal {
|
||||
self.pause_active_goal_for_interrupt();
|
||||
@@ -194,6 +195,9 @@ impl ChatWidget {
|
||||
let had_modal_or_popup = !self.bottom_pane.no_modal_or_popup_active();
|
||||
let should_pause_active_goal =
|
||||
self.bottom_pane.should_interrupt_running_task(key_event);
|
||||
if key_event.code == KeyCode::Enter {
|
||||
self.flush_completed_command_activity();
|
||||
}
|
||||
let input_result = self.bottom_pane.handle_key_event(key_event);
|
||||
if should_pause_active_goal {
|
||||
self.pause_active_goal_for_interrupt();
|
||||
|
||||
Reference in new issue
Block a user