mirror of
https://github.com/openai/codex.git
synced 2026-10-31 19:28:49 +00:00
V4
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user