09693cd3a3
Two review findings on the #57922 salvage: 1. Stale inline comment at the login-exchange site still claimed the token endpoint uses the claude-code/ UA prefix and 404s claude-cli/ — now contradicts the axios/ fix. Repointed it at _OAUTH_TOKEN_USER_AGENT. 2. The inherited Path.home test isolation on the three TestRefreshOauthToken tests only stubbed the ~/.claude *file* source, not the macOS Keychain. _refresh_oauth_token re-reads read_claude_code_credentials() (keychain first) in its adopt-already-refreshed branch, so on any macOS dev/CI runner with real Claude Code creds the branch short-circuits and the 3 tests fail. Stub read_claude_code_credentials -> None so the tests are hermetic. (The remaining TestResolveAnthropicToken/TestResolveWithRefresh/TestRunOauthSetupToken failures on macOS are the same pre-existing keychain-leak class on origin/main, unrelated to this OAuth-UA fix, and pass in CI — left out of scope.)