Include spawn agent model metadata in app-server items

Add the spawned agent's model and reasoning effort to app-server collab turn items and notifications so turn history matches spawn events.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-03-11 16:46:51 -07:00
parent 8791f0ab9a
commit 288864e847
29 changed files with 675 additions and 0 deletions

View File

@@ -579,6 +579,8 @@ fn collab_spawn_begin_and_end_emit_item_events() {
new_agent_nickname: None,
new_agent_role: None,
prompt: prompt.clone(),
model: "gpt-5".to_string(),
reasoning_effort: ReasoningEffortConfig::default(),
status: AgentStatus::Running,
}),
);