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
@@ -282,7 +282,6 @@ impl ChatWidget {
|
||||
|
||||
pub(crate) fn handle_exec_approval_now(&mut self, ev: ExecApprovalRequestEvent) {
|
||||
self.flush_answer_stream_with_separator();
|
||||
self.flush_completed_command_activity();
|
||||
let command = shlex::try_join(ev.command.iter().map(String::as_str))
|
||||
.unwrap_or_else(|_| ev.command.join(" "));
|
||||
self.notify(Notification::ExecApprovalRequested { command });
|
||||
@@ -311,7 +310,6 @@ impl ChatWidget {
|
||||
|
||||
pub(crate) fn handle_apply_patch_approval_now(&mut self, ev: ApplyPatchApprovalRequestEvent) {
|
||||
self.flush_answer_stream_with_separator();
|
||||
self.flush_completed_command_activity();
|
||||
|
||||
let changed_paths = ev.changes.keys().cloned().collect();
|
||||
let request = ApprovalRequest::ApplyPatch(ApplyPatchApprovalRequest {
|
||||
@@ -341,7 +339,6 @@ impl ChatWidget {
|
||||
params: McpServerElicitationRequestParams,
|
||||
) {
|
||||
self.flush_answer_stream_with_separator();
|
||||
self.flush_completed_command_activity();
|
||||
|
||||
self.notify(Notification::ElicitationRequested {
|
||||
server_name: params.server_name.clone(),
|
||||
@@ -398,7 +395,6 @@ impl ChatWidget {
|
||||
}
|
||||
|
||||
pub(crate) fn push_approval_request(&mut self, request: ApprovalRequest) {
|
||||
self.flush_completed_command_activity();
|
||||
self.bottom_pane
|
||||
.push_approval_request(request, &self.config.features);
|
||||
self.set_ambient_pet_notification(
|
||||
@@ -412,7 +408,6 @@ impl ChatWidget {
|
||||
&mut self,
|
||||
request: McpServerElicitationFormRequest,
|
||||
) {
|
||||
self.flush_completed_command_activity();
|
||||
self.bottom_pane
|
||||
.push_mcp_server_elicitation_request(request);
|
||||
self.set_ambient_pet_notification(
|
||||
@@ -424,7 +419,6 @@ impl ChatWidget {
|
||||
|
||||
pub(crate) fn handle_request_user_input_now(&mut self, ev: ToolRequestUserInputParams) {
|
||||
self.flush_answer_stream_with_separator();
|
||||
self.flush_completed_command_activity();
|
||||
let question_count = ev.questions.len();
|
||||
let summary = Notification::user_input_request_summary(&ev.questions);
|
||||
let title = match (question_count, summary.as_deref()) {
|
||||
@@ -443,7 +437,6 @@ impl ChatWidget {
|
||||
|
||||
pub(crate) fn handle_request_permissions_now(&mut self, ev: RequestPermissionsEvent) {
|
||||
self.flush_answer_stream_with_separator();
|
||||
self.flush_completed_command_activity();
|
||||
let request = ApprovalRequest::Permissions(PermissionsApprovalRequest {
|
||||
thread_id: self.thread_id.unwrap_or_default(),
|
||||
thread_label: None,
|
||||
|
||||
Reference in new issue
Block a user