Skip to content

Follow installed and native Claude Code versions per request - #3

Merged
matsvarn merged 1 commit into
customfrom
fix/claude-version-tracking
Nov 9, 2026
Merged

matsvarn merged 1 commit into
customfrom
fix/claude-version-tracking

Conversation

@matsvarn

@matsvarn matsvarn commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

Claude Code updates could leave the upstream UA and billing version pinned to an older release, causing newer models to reject requests.

confirmed native caller -> actual caller version
other clients -> validated version-file -> configured/builtin fallback
request snapshot -> matching default UA and generated billing version

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

  • Before: TestClaudeVersionTrackingOutbound failed: installed 2.1.321 produced UA and billing 2.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/executor passed, including v8 config persistence.
  • go build -o test-output ./cmd/server && rm test-output passed.

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.

@matsvarn
matsvarn merged commit 00c04d6 into custom Nov 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant