Repository navigation
fix(ui): accept builder tool streams without an index - #572
Open
pcbeingused333 wants to merge 2 commits into
Open
pcbeingused333 wants to merge 2 commits into
pcbeingused333 wants to merge 2 commits into
Conversation
This branch has not been deployed
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.
The builder agent rejects streamed tool-call fragments without an
indexwith “Model requested too many tool calls”. A Gemini OpenAI compatibility report includes an example missing this field with a nonempty ID ("0"). This is evidence of the response shape, not a live Gemini reproduction. Streams with empty IDs still fail the existing identifier validation; this change does not address those streams.When an index is omitted, start a new slot for a nonempty ID different from the previous call, otherwise continue that call. Avoid concatenating repeated IDs. Keep explicit-index validation and the maximum call count. This assembles sequential unindexed calls without merging their names or JSON arguments; interleaved unindexed fragments without identifying information cannot be disambiguated.
The builder-agent suite covers complete and fragmented unindexed calls, repeated IDs, call-count limits, and invalid explicit indices. Against main, 3 tests fail and 27 pass; all 30 pass with the fix. Ruff checks and formatting pass.
This change was prepared with AI assistance (Codex).