fix: surface provider authentication failures in channels#96599
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 24, 2026, 7:59 PM ET / 23:59 UTC. Summary PR surface: Source +15. Total +15 across 3 files. Reproducibility: no. live current-main channel reproduction was run. Source inspection shows current main has no provider-authentication case in the provider request classifier, and the runner relies on that classifier for visible channel failure replies. Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused classifier and regression-test change after explicit maintainer handling and redacted real channel proof, while leaving the broader linked cascade issue open for its remaining fallback, duplicate-tool, and context-state work. Do we have a high-confidence way to reproduce the issue? No live current-main channel reproduction was run. Source inspection shows current main has no provider-authentication case in the provider request classifier, and the runner relies on that classifier for visible channel failure replies. Is this the best way to solve the issue? Yes for the code shape: the provider request classifier is the right shared owner boundary, and the follow-up commit now covers typed 401 status and channel-runner behavior. It is not merge-clear until real channel proof and protected-label maintainer handling are complete. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0a042f68dfbe. Label changesLabel justifications:
Evidence reviewedPR surface: Source +15. Total +15 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
…6599) * fix: surface provider authentication failures in channels * fix: handle typed provider auth failures --------- Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
…6599) * fix: surface provider authentication failures in channels * fix: handle typed provider auth failures --------- Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
Related: #80040
What Problem This Solves
Fixes an issue where users messaging a bot in a channel would receive no reply when the model provider rejected the request with an HTTP 401 authentication failure. The user only sees the 👀 react, but there is not response or error message from the bot.

Why This Change Was Made
Classify proven invalid-token HTTP 401 failures as actionable provider request errors and reuse the existing sanitized authentication guidance. This keeps raw provider details private while allowing the shared channel reply path to surface the failure instead of treating it as a generic, silence-eligible error.
User Impact
Channel users now receive a concise authentication warning with retry and re-authentication guidance instead of seeing the bot silently stop.
Evidence
unexpected status 401 Unauthorized: Missing bearer or basic authentication in header.NO_REPLYin channels.