This commit is contained in:
kevin zhao
2025-11-04 14:40:31 -08:00
parent 0d3afbd499
commit 4ab82bb579
2 changed files with 4 additions and 2 deletions

View File

@@ -86,9 +86,11 @@ pub struct StdoutStream {
pub tx_event: Sender<Event>,
}
type DeltaEventFn = dyn Fn(&str, ExecOutputStream, Vec<u8>) -> EventMsg + Send + Sync;
#[derive(Clone)]
pub struct DeltaEventBuilder {
inner: Arc<dyn Fn(&str, ExecOutputStream, Vec<u8>) -> EventMsg + Send + Sync>,
inner: Arc<DeltaEventFn>,
}
impl DeltaEventBuilder {

View File

@@ -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,