Repository navigation
Backlog
Bug
Copy link
Labels
partial-reproBug partially reproduced; some claims unverified; see linked reportprovider-claude-codeBuilt-in plugin: provider-claude-codeprovider-codexBuilt-in plugin: provider-codexprovidersCross-provider bridges, models, loginthreadsTurns, timeline, messaging, forks
Description
1. Summary
When an OAuth-protected MCP server configured for Codex or Claude Code requires authentication or re-authentication, bb silently drops the provider's notice. Users receive no prompt in the thread timeline and must discover the failure manually and run codex mcp login <name> (or re-authenticate via the CLI) by hand. On remote hosts this is even harder to work around, because the provider's local OAuth loopback listener runs on a machine the user's browser cannot reach directly.
2. Versions and environment
- bb: built from source on
mainatb0ddaad731565d7e4de68d824120d802fc78f7d5 - OS: Linux 7.2.15-1-omarchy
- Node: v24.22.2
- Providers:
bb-plugin-provider-codex,bb-plugin-provider-claude-code
3. Steps to reproduce
- Check out
b0ddaad731565d7e4de68d824120d802fc78f7d5(or inspect the committedcodex/steer-racerecording directly):
BASE=b0ddaad731565d7e4de68d824120d802fc78f7d5
git show "$BASE:packages/provider-bridge-protocol/recordings/scenarios/codex/steer-race/provider→bridge.ndjson" \
| grep '"mcpServer/startupStatus/updated"' \
| grep '"reauthenticationRequired"'
git show "$BASE:packages/provider-bridge-protocol/recordings/scenarios/codex/steer-race/bridge→runtime.ndjson" \
| grep -E 'provider\.warning|mcpSignIn|linear'- Observe that the provider sends
mcpServer/startupStatus/updatedwithstatus: "failed"andfailureReason: "reauthenticationRequired"forlinearright afterturn/started, while the bridge emits no delta forlinearat all. - For Claude Code, start a thread when a non-
claudeaiMCP server reportsstatus: "needs-auth"insystem/init/mcpServerStatus()— the bridge never inspectsmcp_serversormcpServerStatus()forneeds-auth, so no warning or sign-in affordance is emitted.
4. Expected vs actual
Actual (provider→bridge.ndjson lines 17 and 21 at b0ddaad731565d7e4de68d824120d802fc78f7d5):
{"ts":1794633124451,"run":1794633123689,"seq":44,"dir":"provider→bridge","line":"{\"method\":\"mcpServer/startupStatus/updated\",\"params\":{\"threadId\":\"01a1d878-4985-7163-bc18-56d64658f4b8\",\"name\":\"linear\",\"status\":\"failed\",\"error\":\"The linear MCP server requires OAuth reauthentication. Run `codex mcp login linear`.\",\"failureReason\":\"reauthenticationRequired\"},\"emittedAtMs\":1794633124451}"}
{"ts":1794633124616,"run":1794633123689,"seq":49,"dir":"provider→bridge","line":"{\"method\":\"mcpServer/startupStatus/updated\",\"params\":{\"threadId\":\"01a1d878-4985-7163-bc18-56d64658f4b8\",\"name\":\"linear\",\"status\":\"failed\",\"error\":\"The linear MCP server requires OAuth reauthentication. Run `codex mcp login linear`.\",\"failureReason\":\"reauthenticationRequired\"},\"emittedAtMs\":1794633124616}"}Actual (bridge→runtime.ndjson matching provider.warning|mcpSignIn|linear):
{"ts":1794633124299,"run":1794633123689,"seq":21,"dir":"bridge→runtime","line":"{\"jsonrpc\":\"2.0\",\"method\":\"thread/delta\",\"params\":{\"threadId\":\"thr_3c8130a6cc\",\"deltas\":[{\"kind\":\"session.reset\"},{\"kind\":\"provider.warning\",\"category\":\"config\",\"summary\":\"`[features].multi_agent` is deprecated. It still controls the V1 fallback. `[agents].enabled = false` disables subagent tools even when the model selects a subagent version, unless `[features].multi_agent_v2` is enabled.\"}]}}"}
{"ts":1794633124300,"run":1794633123689,"seq":32,"dir":"bridge→runtime","line":"{\"jsonrpc\":\"2.0\",\"method\":\"thread/delta\",\"params\":{\"threadId\":\"thr_3c8130a6cc\",\"deltas\":[{\"kind\":\"provider.warning\",\"category\":\"general\",\"summary\":\"`[features].multi_agent` is deprecated. It still controls the V1 fallback. `[agents].enabled = false` disables subagent tools even when the model selects a subagent version, unless `[features].multi_agent_v2` is enabled.\"}]}}"}Zero warnings or sign-in notices are emitted for linear.
Expected:
- When a Codex or Claude Code MCP server requires OAuth (re)authentication, bb surfaces a visible inline notice in the thread timeline (kept outside collapsed turns) with a Sign in action, while non-auth startup failures (e.g.,
computer-useat line 23 of the same recording) stay suppressed. - Clicking Sign in (or invoking the equivalent CLI/SDK surface) starts the provider's OAuth flow and provides a browser link plus a paste-the-redirect-URL path so sign-in works on both local and remote hosts without exposing SSRF to non-loopback addresses.
- Completing sign-in persists the signed-in state in the thread timeline across reloads and turn expansion.
5. Evidence
- Codex classifies
mcpServer/startupStatus/updatedas"noise"and drops it:CODEX_NOTIFICATION_COVERAGE:plugins/provider-codex/src/visibility.ts#L158parseCodexRawEvent&describeParsedCodexRawEvent:plugins/provider-codex/src/visibility.ts#L216-L220,plugins/provider-codex/src/visibility.ts#L252-L253- Noise suppression in
buildUnhandledCodexDeltas:plugins/provider-codex/src/delta-translation.ts#L811-L817
- Real Codex recording showing mid-turn
reauthenticationRequiredforlinear: - Claude Code never surfaces
needs-authMCP servers:system/inithandler only refreshes commands:plugins/provider-claude-code/src/bridge/bridge.ts#L1679-L1681
6. What you ruled out
- Not a duplicate of claude-code: newly added or re-authenticated MCP servers don't load into running sessions, and there's no in-app refresh short of quitting the app #6022 (which tracks reloading already-added or externally re-authenticated MCP servers into running Claude Code sessions without restarting the app, rather than surfacing OAuth re-authentication prompts and completing sign-in in-thread).
- Confirmed on
mainatb0ddaad731565d7e4de68d824120d802fc78f7d5. - Non-auth MCP startup failures (like
computer-usefailing to handshake withfailureReason: nullincodex/steer-race) are intentionally suppressed and should remain suppressed.
AGENT GENERATED
Metadata
Metadata
Assignees
Labels
partial-reproBug partially reproduced; some claims unverified; see linked reportprovider-claude-codeBuilt-in plugin: provider-claude-codeprovider-codexBuilt-in plugin: provider-codexprovidersCross-provider bridges, models, loginthreadsTurns, timeline, messaging, forks
Activity
bb-slop-cop commentedon Nov 29, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,threads,provider-codex,provider-claude-code.partial-repro.