Do not append items on override turn context (#10354)

This commit is contained in:
pakrym-oai
2026-02-01 18:51:26 -08:00
committed by GitHub
Unverified
parent 8b95d3e082
commit 03fcd12e77
11 changed files with 288 additions and 101 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ pub(crate) async fn handle_output_item_done(
previously_active_item: Option<TurnItem>,
) -> Result<OutputItemResult> {
let mut output = OutputItemResult::default();
let plan_mode = ctx.turn_context.collaboration_mode_kind == ModeKind::Plan;
let plan_mode = ctx.turn_context.collaboration_mode.mode == ModeKind::Plan;
match ToolRouter::build_tool_call(ctx.sess.as_ref(), item.clone()).await {
// The model emitted a tool call; log it, persist the item immediately, and queue the tool execution.