Revert "fix(anthropic): remove Claude Code fingerprinting from OAuth Messages API path" (#16957) - #17397
Merged
Merged
Conversation
donald131
pushed a commit
to donald131/hermes-agent
that referenced
this pull request
May 2, 2026
…Messages API path (NousResearch#16957)" (NousResearch#17397) This reverts commit 023f5c7.
02356abc
pushed a commit
to 02356abc/hermes-agent
that referenced
this pull request
May 14, 2026
…Messages API path (NousResearch#16957)" (NousResearch#17397) This reverts commit 023f5c7.
jsboige
pushed a commit
to jsboige/hermes-agent
that referenced
this pull request
May 14, 2026
…Messages API path (NousResearch#16957)" (NousResearch#17397) This reverts commit 9f467fa.
dannyJ848
pushed a commit
to dannyJ848/hermes-agent
that referenced
this pull request
May 17, 2026
…Messages API path (NousResearch#16957)" (NousResearch#17397) This reverts commit 6d870f0.
gweeteve
pushed a commit
to gweeteve/hermes-agent
that referenced
this pull request
Jun 2, 2026
…Messages API path (NousResearch#16957)" (NousResearch#17397) This reverts commit 023f5c7.
Seven74AI
pushed a commit
to Seven74AI/hermes-agent
that referenced
this pull request
Jun 13, 2026
…Messages API path (NousResearch#16957)" (NousResearch#17397) This reverts commit 023f5c7.
waefrebeorn
pushed a commit
to waefrebeorn/slermes
that referenced
this pull request
Jul 2, 2026
…Messages API path (NousResearch#16957)" (NousResearch#17397) This reverts commit f672eea.
Gravezzz
pushed a commit
to Gravezzz/hermes-agent
that referenced
this pull request
Jul 21, 2026
…Messages API path (NousResearch#16957)" (NousResearch#17397) This reverts commit 023f5c7.
This was referenced Aug 3, 2026
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.
Reverts #16957.
Anthropic routes extra Claude Code subscription usage allowances to requests that identify as Claude Code. Removing the
claude-cli/<version>User-Agent blocked Hermes users from that route. Bringing the fingerprinting back so OAuth Messages API requests keep hitting the Claude Code path.Changes
agent/anthropic_adapter.py: restoreclaude-cli/<version> (external, cli)User-Agent at all three OAuth request sitesagent/auxiliary_client.py,agent/transports/anthropic.py,run_agent.py: restore helper call sitestests/agent/test_anthropic_adapter.py: restore CC-fingerprinting assertions; updatetest_custom_base_urlexpectedanthropic-betaheader to includecontext-1m-2025-08-07(added in fix(bedrock): send context-1m-2025-08-07 beta so Opus 4.6/4.7 get 1M context #16793 after fix(anthropic): remove Claude Code fingerprinting from OAuth Messages API path #16957 was authored)Validation
scripts/run_tests.sh tests/agent/test_anthropic_adapter.py→ 138 passed.