Repository navigation
fix(ai): preserve Vertex Anthropic tool continuations - #43498
Merged
Merged
Conversation
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Contributor
|
The following comment was made by an LLM, it may be inaccurate: The search found PR #43479 which is related but distinct: Related PR:
No duplicate PRs found for the Vertex Anthropic tool continuations fix. The related PR #43479 addresses a similar issue but for Gemini instead of Anthropic/Vertex, making them distinct fixes for different providers. |
major
force-pushed
the
vertex-anthropic-fix
branch
from
August 19, 2026 22:24
42be68d to
4da0afa
Compare
Contributor
Author
|
Good method for testing: |
major
force-pushed
the
vertex-anthropic-fix
branch
2 times, most recently
from
August 20, 2026 12:27
9178e70 to
6a12f2f
Compare
major
marked this pull request as draft
August 20, 2026 13:24
major
force-pushed
the
vertex-anthropic-fix
branch
from
August 20, 2026 13:31
6a12f2f to
bdeec0a
Compare
major
marked this pull request as ready for review
August 20, 2026 14:14
major
force-pushed
the
vertex-anthropic-fix
branch
2 times, most recently
from
August 21, 2026 12:16
9547fae to
4588b78
Compare
|
major
force-pushed
the
vertex-anthropic-fix
branch
from
August 25, 2026 13:17
36b6c49 to
6fe5f6e
Compare
- fold system updates after local tool results into Vertex tool-result turns - preserve native system updates for direct Anthropic and ordinary Vertex requests Refs anomalyco#43478 Signed-off-by: Major Hayden <[email protected]>
major
force-pushed
the
vertex-anthropic-fix
branch
from
August 25, 2026 13:31
6fe5f6e to
597a907
Compare
jinhuang712
pushed a commit
to jinhuang712/opencode
that referenced
this pull request
Sep 26, 2026
Signed-off-by: Major Hayden <[email protected]>
3 of 6 tasks
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.
Issue for this PR
Fixes #43478
Type of change
What does this PR do?
Vertex returns HTTP 404 when a Claude tool continuation ends with a native system message after a local tool result.
This folds chronological updates following local tool results into the user tool-result turn for Vertex Anthropic requests across active continuations and multi-turn history.
Direct Anthropic requests and ordinary terminal Vertex system updates remain native.
This complements #43479, which fixes the Gemini continuation path.
How did you verify your code works?
bun test test/provider/anthropic-messages.test.tsfrompackages/ai(64 passed)bun typecheckfrompackages/aigoogle-vertex/claude-opus-4-8@defaultmulti-step tool execution, verifying zero 404sScreenshots / recordings
N/A
Checklist