Skip to content

Stopped showing the auto mode classifier billing notice for OpenAI-proxy profiles - #172

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/auto-mode-classifier-notice-openai-proxy
Sep 26, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/auto-mode-classifier-notice-openai-proxy

Conversation

@oleg68

@oleg68 oleg68 commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The OpenAI-compatible and ChatGPT Subscription connection types translate every request into a non-Anthropic API, so they 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 on these connection types, fell back, and showed a one-time "session isn't eligible" notice every session.
  • Sets CLAUDE_CODE_AUTO_MODE_SERVER=0 (via putIfAbsent, 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 — added testDisableAutoModeServerCheckSetsWhenAbsent and testDisableAutoModeServerCheckKeepsUserOverride, all 44 tests pass
  • mvn package — build succeeds
  • Manual: started a session with an OpenAI-compatible proxy profile in auto mode and confirmed the notice no longer appears while auto mode continues to work

🤖 Generated with Claude Code

…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>
@oleg68
oleg68 merged commit 0b06adb into nbplugins:main Sep 26, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/auto-mode-classifier-notice-openai-proxy branch September 26, 2026 17:03
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