Repository navigation
Description
Client or integration
Claude Code (Claude Desktop, local thread created by a cloud project)
Area
Provider adapter
Summary
A Claude cloud project can hand work off to a local Claude Desktop thread, but the first model request in that thread receives a generic HTTP 400 when OpenCodex routes it through the managed Anthropic OAuth path. Threads created directly in Claude Desktop on the same machine work with the same model and serving account. The expected behavior is that the Anthropic-to-Anthropic handoff can complete a turn while preserving the user's native Claude identity.
This issue is scoped to the cloud-to-Desktop handoff. Embedded T3 Code sessions and broadening OAuth compatibility for arbitrary caller labels are separate from this scope.
Reproduction
- Sign in to Claude Desktop and open a Claude cloud project with an available local Desktop host.
- With OpenCodex first-party Desktop interception and a Fable 5.2 binding to the Anthropic OAuth route, start a local thread from the cloud project.
- The local thread starts, but its first model request returns HTTP 400. Retrying the cloud handoff reproduced the rejection.
- For comparison, create a thread directly in Claude Desktop. That path completed requests on the same model and serving account.
The installed Claude launcher can emit local_projects for a project child when its rollout gate is enabled, unless another host-provided request label takes precedence. An offline fixture with this label and otherwise valid headers fails the managed native identity check and loses native feature flags. The failing live request's exact wire label and Anthropic's detailed rejection were not retained, so the fixture is a candidate explanation, not proof of the live cause.
Acceptance requires a cloud-created turn to complete through managed Anthropic OAuth pooling, with the pool's selected credential and the original first-party Claude identity. Caller-owned pass-through is outside the acceptance criteria. PR #8886 now tests only the exact local_projects label with all existing identity checks, including preservation through a pool credential refresh and account switch. The patched build still needs a live cloud handoff.
Version
OpenCodex 2.100.4, Claude Code 2.1.327.
Operating system
macOS 27.2.1 (arm64)
Provider and model
Anthropic OAuth / claude-fable-5-2
Logs or error output
API Error: 400 The provider rejected the request.
status=400 errorCode=invalid_request_error mode=native reason=anthropic-beta-droppedScreenshots and supporting files
Maintainer discussion and earlier identity-check rationale
Redacted configuration
Standalone OpenCodex with first-party Claude Desktop interception and an explicit Fable 5.2 binding to managed Anthropic OAuth. Native pass-through is enabled, but an explicit binding selects the managed route for the bound model.
Checks
- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
Activity
coderabbitai commentedon Nov 18, 2026
🔗 Related PRs
#8886 - Preserve native Anthropic request features for embedded Claude clients [open]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
[-][Bug]: Host-defined Claude Agent SDK entrypoints lose native Anthropic request features[/-][+][Bug]: Cloud project handoff to a local Claude Desktop thread returns HTTP 400[/+]lidge-jun commentedon Nov 18, 2026
Fixed by #8886, merged into dev as 8ff612d. Managed Anthropic OAuth now accepts the exact
local_projectsentrypoint that Claude cloud project children send, so the handed-off local Claude Desktop thread keeps its observed identity and native betas instead of receiving HTTP 400. The fix ships in the next release that includes that commit.