Repository navigation
fix(control-ui): show recovery for ChatGPT usage limits - #177530
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR preserves ChatGPT sharing-limit error codes and shows consumer or Business recovery actions in the Control UI. Example: OpenAI returns HTTP 429 with subscription_sharing_workplace_individual_usage_limit_exceeded.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: current main lacks the targeted recovery actions, and no actionable correctness or security defect was found; the formatting check now passes while broader CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherProvider errors become sanitized agent lifecycle facts, pass through Gateway chat events, and reach the Control UI's existing run-error and modal owners. flowchart LR
A[Provider error] --> B[Agent error observation]
B --> C[Lifecycle terminal]
C --> D[Gateway chat event]
D --> E[Control UI run error]
E --> F[Usage recovery dialog]
Technical reviewBest possible solution: Keep the existing sanitized terminal-event path and shared modal owner, with recovery selected only for the two exact OpenAI HTTP 429 codes. Do we have a high-confidence way to reproduce the issue? Current-main source drops the structured provider code before UI classification, explaining the generic notice; no target code was executed during this read-only review. Is this the best way to solve the issue? The smallest complete fix extends the existing diagnostic projection and run-error classification, then reuses the modal and clipboard owners without competing state or configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dc81220e46b6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +201, Tests +240, Docs +6. Total +447 across 18 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed October 19, 2026, 2:23 PM ET / 18:23 UTC (Revision 3). |
|
@clawsweeper re-review Codex: integrated the upstream CI baseline repair. The usage-limit feature patch is unchanged, and the attached screenshots retain their original capture provenance. |
|
🦞👀 Re-review progress:
|
|
Codex: inspected the failed Documentation formatting and content checks passed; glossary checking was skipped for a missing merge base. The remaining CI jobs are still running. |
|
@clawsweeper re-review Codex: fixed the inherited formatting failure with a single expression reflow. The usage-limit feature patch and attached screenshot provenance are unchanged. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
ChatGPT sharing-limit errors reach the Control UI as generic failures, leaving users without the appropriate recovery action.
User Impact
For OpenAI HTTP 429 responses, consumers can open Manage usage, while Business users can Copy request for admin and receive confirmation or a manual-copy fallback. Copying does not send the request or change a limit.
Why This Change Was Made
Preserve the bounded provider error code through the existing terminal-event path and select one shared modal for the two subscription-sharing errors. Other 429s retain their existing behavior. Modal dismissal stays scoped to the session/run and respects background panes.
Evidence
Before is the unmodified
mainnotice renderer atca7bc36af: a generic error notice with no modal. After captures use this PR's renderer at22ae9cc2b, showing the Business or consumer recovery modal. The usage-limit feature patch remains unchanged atac212d8f4, after main integration and a formatting-only CI repair. Both use the same viewport and synthetic error scenario; these are controlled component captures, not live Gateway/provider 429 captures.Light appearance
maincommit155bcecacc1ec80c89d55399973e47c4817eb4bcfor validation, preserving its dependency pins. Frozen install and supply-chain checks passed.nodes-tool-media.tsto repair an inherited main formatting failure. CI'soxfmt 0.72.0accepts the repaired file; behavior is unchanged.TS2554atsrc/snapshot/local-repository.ts:1101(an unchanged call supplies two arguments to a one-argument helper). This older-base evidence is separate from PR CI.The shared autoreview CLI could not start because its isolated bootstrap could not resolve a cached executable; no automated autoreview verdict is claimed. Separate independent code/design reviews completed with no remaining actionable findings.