Repository navigation
Stopped showing the auto mode classifier billing notice for OpenAI-proxy profiles - #172
Merged
oleg68 merged 1 commit intoSep 26, 2026
Conversation
…oxy profiles This proxy fully translates every request into a non-Anthropic API (OpenAI Chat Completions or the Codex Responses API), so it can never forward Anthropic's server-side auto-mode classifier fields (safeguards / safeguard_results) — the backend has no concept of them. Without an override, Claude Code still probed for server-side checks, fell back, and showed a one-time "session isn't eligible" notice every session. Setting CLAUDE_CODE_AUTO_MODE_SERVER=0 (via putIfAbsent, so an explicit user override in a profile's extra env vars still wins) tells Claude Code not to probe at all. Classifier requests are billed identically either way — this only removes the interruption. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
safeguards/safeguard_results) — the backend has no concept of them.CLAUDE_CODE_AUTO_MODE_SERVER=0(viaputIfAbsent, so an explicit user override in a profile's extra env vars still wins) so Claude Code doesn't probe at all for these two connection types. Classifier requests are billed identically either way — this only removes the interruption. The direct-Anthropic-API path is untouched, since server-side classifier review genuinely works there.Test plan
mvn test -Dtest=ClaudeProcessTest— addedtestDisableAutoModeServerCheckSetsWhenAbsentandtestDisableAutoModeServerCheckKeepsUserOverride, all 44 tests passmvn package— build succeeds🤖 Generated with Claude Code