mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Show successful TUI commands individually (#41893)
## What changed - Emit a separate history cell for each completed command instead of grouping consecutive successes into a `Ran N commands` summary. - Preserve `Explored` grouping for related file reads, searches, and listings. - Replay completed commands as individual entries so their output and failure status remain visible. ## Testing - Update TUI tests and snapshots for live exploration and replayed commands. GitOrigin-RevId: 7dafe0b7846fc89784093791a6be137a1b1ab8ff
This commit is contained in:
1 parent
e51b54b4c0
commit
32f48598a0
16 files changed
+110
-480
No files matched your search
@@ -36,10 +36,12 @@ impl ChatWidget {
|
||||
fn submit_shell_command(&mut self, command: &str) -> QueueDrain {
|
||||
let cmd = command.trim();
|
||||
if cmd.is_empty() {
|
||||
self.add_to_history(history_cell::new_info_event(
|
||||
USER_SHELL_COMMAND_HELP_TITLE.to_string(),
|
||||
Some(USER_SHELL_COMMAND_HELP_HINT.to_string()),
|
||||
));
|
||||
self.app_event_tx.send(AppEvent::InsertHistoryCell(Box::new(
|
||||
history_cell::new_info_event(
|
||||
USER_SHELL_COMMAND_HELP_TITLE.to_string(),
|
||||
Some(USER_SHELL_COMMAND_HELP_HINT.to_string()),
|
||||
),
|
||||
)));
|
||||
QueueDrain::Continue
|
||||
} else {
|
||||
self.submit_op(AppCommand::run_user_shell_command(cmd.to_string()));
|
||||
|
||||
Reference in new issue
Block a user