Skip to content

fix: ensure injected tool invocation results are appended to request body#189

Merged
dannykopping merged 2 commits into
mainfrom
dk/ant-inj-tools-fix
Feb 23, 2026
Merged

fix: ensure injected tool invocation results are appended to request body#189
dannykopping merged 2 commits into
mainfrom
dk/ant-inj-tools-fix

Conversation

@dannykopping
Copy link
Copy Markdown
Collaborator

Pass WithRequestBody per-request instead of per-service, and update the payload with injected tool invocation results.

Our current integration tests neglected to validate that tool results were passed after injected tool invocation, which led to a regression being introduced in #185.

Disclaimer: collaborated with Opus 4.6 on a solution

…t body

Signed-off-by: Danny Kopping <danny@coder.com>
@dannykopping dannykopping requested a review from pawbana February 23, 2026 14:33
Copy link
Copy Markdown
Contributor

@pawbana pawbana left a comment

Choose a reason for hiding this comment

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

Few nits, testing code is hacky but until refactor lands I think it is fine.

Comment thread intercept/messages/base.go
Comment thread intercept/messages/blocking.go Outdated
Comment thread intercept/messages/streaming.go Outdated
Comment thread bridge_integration_test.go Outdated
Signed-off-by: Danny Kopping <danny@coder.com>
@dannykopping dannykopping merged commit 105fbf2 into main Feb 23, 2026
4 checks passed
dannykopping added a commit to coder/coder that referenced this pull request Feb 23, 2026
See coder/aibridge#189

Signed-off-by: Danny Kopping <danny@coder.com>
dannykopping added a commit to coder/coder that referenced this pull request Feb 23, 2026
See coder/aibridge#189

Signed-off-by: Danny Kopping <danny@coder.com>
dannykopping added a commit to coder/coder that referenced this pull request Feb 23, 2026
See coder/aibridge#189

Signed-off-by: Danny Kopping <danny@coder.com>
dannykopping added a commit to coder/coder that referenced this pull request Feb 23, 2026
See coder/aibridge#189

Signed-off-by: Danny Kopping <danny@coder.com>
f0ssel pushed a commit to coder/coder that referenced this pull request Feb 23, 2026
Backports #22264

Includes fixes coder/aibridge#189 and
coder/aibridge#185

Signed-off-by: Danny Kopping <danny@coder.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants