Repository navigation
fix: avoid duplicate tool results when resuming interrupts - #6270
Closed
alectimison-maker wants to merge 1 commit into
Closed
alectimison-maker wants to merge 1 commit into
alectimison-maker wants to merge 1 commit into
Conversation
3 tasks done
wolfmanfx
added a commit
that referenced
this pull request
Aug 13, 2026
## Summary Only create client-side tool results for `tool_call` interrupts. Backend-owned interrupts now resume without synthetic tool messages, preventing duplicate results. Includes Core, Angular, and React test coverage. ## References - Fixes #6201 - Related: #6270 - [AG-UI interrupts](https://docs.ag-ui.com/concepts/interrupts) ## Validation - [x] Core, Angular, and React tests - [x] Full workspace test suite - [x] Type checks
Contributor
|
Thanks for this, and sorry for the slow response — this one got fixed in parallel before we got to your PR. The same gate landed in #6470, merged 2026-08-13: if (!interrupt.toolCallId || interrupt.reason !== "tool_call") return [];It is on Your diagnosis and the fix were correct — you and #6470 reached the identical one-line change independently. Closing this as already fixed rather than as wrong. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes executor-less interrupt result ownership so suspend/resume agents can publish their real tool result without a client-generated result shadowing it.
ToolCallResultmessages only fortool_callinterrupts, whose tools have no executorRelated PRs and Issues
Validation
pnpm -C packages/core test— 58 files, 616 tests passedpnpm -C packages/angular test— 46 files, 293 tests passedpnpm -C packages/react-core test— 122 files, 1,471 Vitest tests and 2 script tests passedcheck-typespassed for Core, Angular, and React Coretest,publint, andattwtargets passed for 21 projectsgit diff --checkpassedChecklist
Documentation is unchanged because this corrects internal result ownership without changing the public API.