Files
coder/aibridge/intercept
Roo Thorp 0b5083440f fix(aibridge): correlate Responses API tool results followed by developer messages (#32053)
When a user approves a command with "Yes, and don't ask again", a
developer message is appended after the tool result.
`correlatingToolCallID` only checked the last `input` item, so these
requests weren't correlated and the session page split the agentic loop
into a new thread with no prompt.

`correlatingToolCallID` now walks back from the end of `input`, and
skips developer/system messages and reasoning items. The request is
correlated if the first remaining item is a tool result with a
`call_id`. A user message or any other item means a new turn, so it
isn't correlated.

Fixes AIGOV-727

Generated by Coder Agents on behalf of @roothorp
2026-11-17 11:48:52 +00:00
..