diff --git a/codex-rs/core/src/exec.rs b/codex-rs/core/src/exec.rs index aa01923ba7..e9ee9ea82a 100644 --- a/codex-rs/core/src/exec.rs +++ b/codex-rs/core/src/exec.rs @@ -86,9 +86,11 @@ pub struct StdoutStream { pub tx_event: Sender, } +type DeltaEventFn = dyn Fn(&str, ExecOutputStream, Vec) -> EventMsg + Send + Sync; + #[derive(Clone)] pub struct DeltaEventBuilder { - inner: Arc) -> EventMsg + Send + Sync>, + inner: Arc, } impl DeltaEventBuilder { diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index f48ed26990..3901b057cd 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -981,7 +981,7 @@ impl ChatWidget { self.flush_active_cell(); self.active_cell = Some(Box::new(new_active_exec_command( - call_id.clone(), + call_id, command, parsed_cmd, is_user_shell_command,