Repository navigation
fix(ui): preserve structured login error codes - #120069
fuller-stack-dev merged 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 12:33 AM ET / 04:33 UTC. ClawSweeper reviewWhat this changesThe PR preserves a Gateway connection error’s structured detail code in the Control UI snapshot so the login gate can show correct authentication, pairing, or transport guidance. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo blocking code finding: this is the correct snapshot-boundary repair for a current Control UI login-guidance bug. It remains open for maintainer review because it is maintainer-protected and the exact-head failed-check logs could not be inspected. Priority: P2 Review scores
Verification
How this fits togetherThe browser Gateway client receives protocol connection errors and projects them into the Control UI application snapshot. The login gate consumes that snapshot to select a recovery message for the operator. flowchart LR
A[Gateway connection] --> B[Browser client error]
B --> C[Application snapshot]
C --> D[Login guidance classifier]
D --> E[Authentication or pairing guidance]
E --> F[Operator recovery action]
Decision needed
Why: The patch is source-correct, but unavailable check logs prevent determining whether the recorded failures are patch-caused. Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +98. Total +99 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the canonical structured-code resolver at the UI snapshot boundary, retain the outer code as fallback, and merge after exact-head checks are understood or green. Do we have a high-confidence way to reproduce the issue? Yes, from source: a connect error with an unknown outer code and AUTH_TOKEN_MISSING or PAIRING_REQUIRED in details.code reaches the snapshot, where current main loses the detail before classification. The added browser E2E exercises that path with a protocol-shaped mock transport. Is this the best way to solve the issue? Yes. Preserving the canonical detail code in the application snapshot fixes the owner boundary without conflating wire-level Gateway codes or duplicating the parser in the login gate. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f87d8bb72daa. 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 (1 earlier review cycle)
|
Summary
Root cause
The browser client delivered both the outer protocol code and the more specific
details.code, but the application store retained only the outer code. Login classification treats a present unknown outer code as authoritative, soAUTH_TOKEN_MISSINGcould be rendered as a generic transport failure.Verification
Screenshots
Before
After