You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native Messages cannot preserve Claude request shape with an OAuth account pool #6532
The opt-in native Messages lane refuses Anthropic OAuth pools and routes them through the legacy Messages-to-Responses-to-Messages bridge. This prevents using stored Claude accounts while retaining the original Messages history and cache breakpoint shape. A resumed large session showed repeated substantial cache writes; this observation does not establish the exact subscription-quota conversion or a single cache invalidation cause.
Expected native account selection to reuse existing session affinity, model routes, quota observations, pause/cooldown and bounded pre-output failure recovery without reconstructing the Messages body.
Reproduction
Add two synthetic or authorized Anthropic OAuth accounts.
Enable anthropicAccountPool and both managedMessagesNative switches.
Preview or send anthropic/claude-opus-5-5 through /v1/messages.
Eligibility returns oauth-account-pool and selects the legacy bridge.
Disabling pooling alone is insufficient: a second usable account also enables failover quorum and declines the native route.
Version
OpenCodex 2.76.0
Operating system
macOS 27.2
Provider and model
Anthropic OAuth / claude-opus-5-5
Logs or error output
messages > responses-internal > ir > messages
reason: oauth-account-pool
Native pooling prototype is verified only with synthetic transports; live cache-hit and quota acceptance remain pending.
Screenshots and supporting files
Companion PR will include synthetic account and immutable-request fixtures, rate-limit failover and concurrent/manual-selection tests.
The native pooling code correction is now on dev through #6552 and #6559, culminating in merge26dd8cf6579d28027b41acf2b67b2be9228590db.
The implementation preserves native history/cache markers and tool naming, uses the existing account selector/refusal policy, and binds serving bearer/UUID/generation consistently with route, pause and manual-selection checks. Both exact integration candidates passed independent code/security/interdiff reviews and hosted CI before landing.
Keeping this issue open for the explicitly pending live multi-account/resumed-session cache-hit and quota acceptance. Source-fork measurements and offline request/stream regressions do not establish that integrated live result. No actual provider account traffic or installed runtime was changed during this integration. These changes are on dev, not in2.77.0.
On the native lane, system blocks, history, and existing cache markers are preserved. Custom tool names get the OAuth prefix consistently and are restored on the response, only metadata.user_id.account_uuid is rebound to the serving account, and the serving bearer replaces caller credentials.
Focused suites covering two-account eligibility, resumed affinity, and 429 recovery that preserves history and cache blocks pass locally (110/110).
This issue stays open for the live acceptance noted earlier. That needs the running build SHA, effective native flags and preference, and cache-read / cache-creation usage for resumed turns, first under stable account affinity and then across an intentional account switch.
Status check against dev (2026-10-10): the native Messages + OAuth account-pool request-shape fixes have landed. #6552 (0455845834), #6559 (26dd8cf657) and #6562 (33125e62d2) are all ancestors of dev.
This stays open for live acceptance: we still need to confirm prompt-cache and quota behavior with a real Claude OAuth pool. If the current build still breaks the request shape for you, please attach the request headers and route, with secrets redacted.
Closing as fixed by #6552, #6559 and #6562, which preserve the native Claude request shape across pooled OAuth dispatch. If you still see this on a current build, please reopen with the version and a request log. Thanks for the report.
Activity
lidge-jun commentedon Oct 4, 2026
The native pooling code correction is now on dev through #6552 and #6559, culminating in merge26dd8cf6579d28027b41acf2b67b2be9228590db.
The implementation preserves native history/cache markers and tool naming, uses the existing account selector/refusal policy, and binds serving bearer/UUID/generation consistently with route, pause and manual-selection checks. Both exact integration candidates passed independent code/security/interdiff reviews and hosted CI before landing.
Keeping this issue open for the explicitly pending live multi-account/resumed-session cache-hit and quota acceptance. Source-fork measurements and offline request/stream regressions do not establish that integrated live result. No actual provider account traffic or installed runtime was changed during this integration. These changes are on dev, not in2.77.0.
lidge-jun commentedon Oct 8, 2026
Code status check on current
dev(a12bb1f): the eligibility veto described here is gone.oauth-account-pool/ failover-quorum refusal, so pooled Anthropic OAuth accounts now take the native Messages lane when both native switches are on. fix(anthropic): preserve deferred and inline native tool names #6552 fixed tool references and feat(anthropic): add native pool preference with explicit opt-out precedence #6562 added the pool-native preference with explicit opt-out precedence.metadata.user_id.account_uuidis rebound to the serving account, and the serving bearer replaces caller credentials.This issue stays open for the live acceptance noted earlier. That needs the running build SHA, effective native flags and preference, and cache-read / cache-creation usage for resumed turns, first under stable account affinity and then across an intentional account switch.
lidge-jun commentedon Oct 10, 2026
Status check against
dev(2026-10-10): the native Messages + OAuth account-pool request-shape fixes have landed. #6552 (0455845834), #6559 (26dd8cf657) and #6562 (33125e62d2) are all ancestors ofdev.This stays open for live acceptance: we still need to confirm prompt-cache and quota behavior with a real Claude OAuth pool. If the current build still breaks the request shape for you, please attach the request headers and route, with secrets redacted.
lidge-jun commentedon Oct 19, 2026
Closing as fixed by #6552, #6559 and #6562, which preserve the native Claude request shape across pooled OAuth dispatch. If you still see this on a current build, please reopen with the version and a request log. Thanks for the report.
github-actions commentedon Oct 19, 2026
Automated translation bookkeeping — detected language: English.