Repository navigation
Follow installed and native Claude Code versions per request - #3
Merged
Merged
Conversation
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.
Summary
Claude Code updates could leave the upstream UA and billing version pinned to an older release, causing newer models to reject requests.
Adds optional
upstream.claude.header-defaults.version-file. Reads a plain semver file once per request without subprocesses; missing, unreadable, or malformed files retain the existing fallback. Native confirmation still requires the existing identity signals. No deployment changes.Evidence
TestClaudeVersionTrackingOutboundfailed: installed2.1.321produced UA and billing2.1.300; future minor/major native callers were also rewritten to the baseline.After: outbound tests pass for streaming/non-streaming requests, stabilization on/off, file changes, invalid fallback, and native versions. Both UA and billing are captured.
go test ./internal/config ./internal/runtime/executor/helps ./internal/runtime/executorpassed, including v8 config persistence.go build -o test-output ./cmd/server && rm test-outputpassed.Merge Danger
Door: two-way
Revert the commit to restore the prior behavior. Independent review and deployment are coordinated separately by the parent task.
Blast Radius: Claude
Changes version selection for the Claude wire profile. Existing SDK/platform stabilization and native billing passthrough remain in place.