From d97714b11a42a9478ce67c52f6cd8db93ea90159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20=C5=A0=C4=87eki=C4=87?= Date: Sat, 7 Mar 2026 00:51:20 +0100 Subject: [PATCH] fix: use separate taskID for title generation to prevent model leak (#6552) ensureTitle was sending small-model requests with the same HEADER_TASKID as the agent session. The gateway saw two different models (kilo-auto/small and kilo-auto/frontier) under the same task and routed to both. Prefixing the title sessionID with "title-" isolates it from the agent task. --- packages/opencode/src/session/prompt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/session/prompt.ts b/packages/opencode/src/session/prompt.ts index 17606be6ff1..843fda0dcfc 100644 --- a/packages/opencode/src/session/prompt.ts +++ b/packages/opencode/src/session/prompt.ts @@ -1993,7 +1993,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the tools: {}, model, abort: new AbortController().signal, - sessionID: input.session.id, + sessionID: `title-${input.session.id}`, // kilocode_change - separate taskID to prevent small-model leak (#6552) retries: 2, messages: [ {