Skip to content

fix(coderd/x/chatd/chatloop): tell the model to gather context before retrying an exclusive tool - #29281

Merged
ibetitsmike merged 1 commit into
mainfrom
mike/chatd-exclusive-tool-retry-hint
Sep 15, 2026
Merged

ibetitsmike merged 1 commit into
mainfrom
mike/chatd-exclusive-tool-retry-hint

Conversation

@ibetitsmike

Copy link
Copy Markdown
Collaborator

When the model batches advisor (an exclusive tool) with other tool calls, every call in the batch is rejected and the advisor result only says to retry with advisor alone. That nudges the model toward re-calling advisor immediately, even when the sibling calls were there to gather context for it.

Extend the message so the model is told to run the other tools first when it still needs their output, then retry with only the exclusive tool call.

Generated by Coder Agents on behalf of @ibetitsmike.

@ibetitsmike
ibetitsmike marked this pull request as ready for review September 14, 2026 18:03
@ibetitsmike
ibetitsmike enabled auto-merge (squash) September 14, 2026 18:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-14T18:05:03.093227Z 51e642f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ibetitsmike
ibetitsmike merged commit 0362e53 into main Sep 15, 2026
55 of 56 checks passed
@ibetitsmike
ibetitsmike deleted the mike/chatd-exclusive-tool-retry-hint branch September 15, 2026 15:02
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 15, 2026
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