fix(ai): preserve Vertex Anthropic tool continuations - #43498
Open
major wants to merge 1 commit into
Open
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. |
- fold terminal system updates into Vertex local tool-result turns - preserve native system updates for direct Anthropic and ordinary Vertex requests Refs anomalyco#43478 Signed-off-by: Major Hayden <major@mhtx.net>
major
force-pushed
the
vertex-anthropic-fix
branch
from
August 19, 2026 22:24
42be68d to
4da0afa
Compare
Contributor
Author
|
Good method for testing: |
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
Refs #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 the local tool result. For that specific Vertex placement, this folds the chronological update into the existing user tool-result turn. 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(53 passed)bun typecheckfrompackages/aibun run buildfrompackages/aipackages/aitest run: 517 passed, 28 skipped, and 7 unrelated existing OpenRouter/OpenAI failuresScreenshots / recordings
N/A
Checklist