This commit is contained in:
jif-oai
2025-12-03 15:13:52 +00:00
parent 42f7f5734f
commit 5d988396d4
20 changed files with 379 additions and 80 deletions
@@ -159,7 +159,11 @@ impl EventProcessor for EventProcessorWithHumanOutput {
}
fn process_event(&mut self, event: Event) -> CodexStatus {
let Event { id: _, msg } = event;
let Event {
id: _,
agent_idx: _,
msg,
} = event;
match msg {
EventMsg::Error(ErrorEvent { message, .. }) => {
let prefix = "ERROR:".style(self.red);
@@ -469,6 +469,7 @@ impl EventProcessor for EventProcessorWithJsonOutput {
fn print_config_summary(&mut self, _: &Config, _: &str, ev: &SessionConfiguredEvent) {
self.process_event(Event {
id: "".to_string(),
agent_idx: Some(0),
msg: EventMsg::SessionConfigured(ev.clone()),
});
}
@@ -59,6 +59,7 @@ use std::time::Duration;
fn event(id: &str, msg: EventMsg) -> Event {
Event {
id: id.to_string(),
agent_idx: Some(0),
msg,
}
}