chore: handle all cases for EventMsg

This commit is contained in:
Michael Bolin
2025-05-14 13:23:46 -07:00
parent 497c5396c0
commit aa315e8ef4
5 changed files with 36 additions and 10 deletions
+17 -1
View File
@@ -157,7 +157,23 @@ pub async fn run_codex_tool_session(
EventMsg::SessionConfigured(_) => {
tracing::error!("unexpected SessionConfigured event");
}
_ => {}
EventMsg::Error(_)
| EventMsg::TaskStarted
| EventMsg::AgentReasoning(_)
| EventMsg::McpToolCallBegin(_)
| EventMsg::McpToolCallEnd(_)
| EventMsg::ExecCommandBegin(_)
| EventMsg::ExecCommandEnd(_)
| EventMsg::BackgroundEvent(_)
| EventMsg::PatchApplyBegin(_)
| EventMsg::PatchApplyEnd(_) => {
// For now, we do not do anything extra for these
// events. Note that
// send(codex_event_to_notification(&event)) above has
// already dispatched these events as notifications,
// though we may want to do give different treatment to
// individual events in the future.
}
}
}
Err(e) => {