fix(browser): preserve authenticated picker errors - #347
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 1:28 PM ET / 17:28 UTC. ClawSweeper reviewWhat this changesThe PR preserves the original ChatGPT model-picker error after authentication succeeds, preventing an unrelated cookie/login hint while retaining the detected picker diagnostics. Merge readinessThis owner-authored PR is still necessary: current Priority: P2 Review scores
Verification
How this fits togetherOracle browser mode starts or attaches to Chrome, verifies the ChatGPT session, then selects the requested model before submitting the prompt. When picker selection fails, this path determines whether the CLI returns the picker’s available-model diagnostics or incorrectly redirects the operator toward login setup. flowchart LR
A[Browser CLI request] --> B[ChatGPT session check]
B --> C[Prompt-ready browser tab]
C --> D[Model picker selection]
D --> E{Requested model found?}
E -->|Yes| F[Submit prompt]
E -->|No| G[Preserve picker diagnostics]
G --> H[CLI error output]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the successful-login boundary intact and merge the narrow error-preservation change once the exact PR head has completed its required platform checks. Do we have a high-confidence way to reproduce the issue? Yes, from source: Is this the best way to solve the issue? Yes. Removing the post-authentication cookie-hint wrapper is the narrowest maintainable repair because the model-picker action already produces the useful unavailable-model message and available-option diagnostics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 332cc86dab79. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
Summary
Proof
pnpm vitest run tests/browser/index.test.ts— 58 passedpnpm run checkpnpm run buildmentionsCookies: falseI also attempted the full browser repro locally. This machine has neither an initialized Oracle manual-login profile nor applicable ChatGPT cookies, so it correctly failed at authentication before reaching the picker. The reporter's authenticated repro remains the live evidence for the downstream picker path.
Relates to #344. The separate compatibility decision—reject retired GPT-5.2 browser aliases or remap them to current models—is intentionally left unchanged.