Skip to content

fix(aibridge): correlate Responses API tool results followed by developer messages - #32053

Merged
roothorp merged 6 commits into
mainfrom
roo/aigov-727-correlate-responses-api-tool-results-followed
Nov 17, 2026
Merged

roothorp merged 6 commits into
mainfrom
roo/aigov-727-correlate-responses-api-tool-results-followed

Conversation

@roothorp

@roothorp roothorp commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

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

@roothorp
roothorp temporarily deployed to main November 11, 2026 14:55 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 11, 2026

Copy link
Copy Markdown

AIGOV-727

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@roothorp

Copy link
Copy Markdown
Collaborator Author

I have read the CLA Document and I hereby sign the CLA

cdrci2 added a commit to coder/cla that referenced this pull request Nov 13, 2026
@roothorp
roothorp temporarily deployed to main November 13, 2026 16:17 — with GitHub Actions Inactive
@roothorp
roothorp force-pushed the roo/aigov-727-correlate-responses-api-tool-results-followed branch from 935433d to 5a432ac Compare November 13, 2026 16:19
@roothorp
roothorp temporarily deployed to main November 13, 2026 16:19 — with GitHub Actions Inactive
@roothorp
roothorp marked this pull request as ready for review November 13, 2026 16:19
@roothorp
roothorp temporarily deployed to main November 13, 2026 16:19 — with GitHub Actions Inactive
@roothorp roothorp changed the title fix: skip developer responses when correlating fix(aibridge): correlate Responses API tool results followed by developer messages Nov 13, 2026
@roothorp
roothorp temporarily deployed to main November 13, 2026 16:24 — with GitHub Actions Inactive
@roothorp
roothorp temporarily deployed to main November 13, 2026 16:27 — with GitHub Actions Inactive
@roothorp
roothorp temporarily deployed to main November 17, 2026 09:59 — with GitHub Actions Inactive

@ssncferreira ssncferreira left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 thanks for addressing the comments

@roothorp
roothorp merged commit 0b50834 into main Nov 17, 2026
29 of 31 checks passed
@roothorp
roothorp deleted the roo/aigov-727-correlate-responses-api-tool-results-followed branch November 17, 2026 11:48
@roothorp
roothorp temporarily deployed to main November 17, 2026 11:48 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
main — 59c58f23 Deployed Nov 17, 2026 by roothorp via cla #258573
docs-preview — 59c58f23 Deployed Nov 17, 2026 by roothorp via cleanup #161
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants