fix(claude): restore legacy runtime OS arch fallback

This commit is contained in:
tpob
2026-03-19 00:01:50 +08:00
parent e0e337aeb9
commit 616d41c06a
5 changed files with 98 additions and 7 deletions

View File

@@ -170,7 +170,9 @@ nonstream-keepalive-interval: 0
# cache-user-id: true # optional: default is false; set true to reuse cached user_id per API key instead of generating a random one each request
# Default headers for Claude API requests. Update when Claude Code releases new versions.
# These are used as fallbacks when the client does not send its own headers.
# In legacy mode, user-agent/package-version/runtime-version/timeout are used as fallbacks
# when the client omits them, while OS/arch remain runtime-derived. When
# stabilize-device-profile is enabled, all values below seed the pinned baseline fingerprint.
# claude-header-defaults:
# user-agent: "claude-cli/2.1.44 (external, sdk-cli)"
# package-version: "0.74.0"