Repository navigation
fix(ui): recover channel setup after status check failure - #124680
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
4fc0e8b to
5b4558d
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 12:54 AM ET / 04:54 UTC. ClawSweeper reviewWhat this changesThe PR keeps a failed channel-status check visible during Custodian onboarding and adds Retry and dismiss actions before restoring the optional channel setup prompt after success. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo blocking correctness findings. This maintainer-owned PR cleanly repairs the stale channel-status state path; keep it open for normal exact-head CI completion and maintainer review. Priority: P2 Review scores
Verification
How this fits togetherCustodian onboarding reads channel status through the shared Control UI channel capability to decide whether to offer optional channel setup. Gateway status results feed that capability, which then drives either the setup prompt or a focused recovery action. flowchart LR
A[Gateway channel status] --> B[Channel status capability]
B --> C[Custodian onboarding]
C --> D{Status available?}
D -->|Yes| E[Optional channel setup]
D -->|No| F[Retry or dismiss recovery]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +59, Tests +196. Total +255 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep channel-error lifecycle ownership in the shared capability and keep the Retry/dismiss affordance specific to Custodian onboarding; land after exact-head CI completes. Do we have a high-confidence way to reproduce the issue? Yes—current main clears channelsError before a replacement status response while Custodian can still render a stale inactive snapshot; the branch's focused mocked-Gateway tests encode that path, though this read-only review did not execute them. Is this the best way to solve the issue? Yes—the patch fixes the shared state lifecycle at its producer and lets Custodian render the recovery UI, avoiding a page-local workaround or duplicated status logic in other consumers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e6a14c0855d9. 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 (4 earlier review cycles)
|
5b4558d to
e190194
Compare
|
Merged via squash.
|
…24680) * fix(ui): recover Custodian channel status Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae * fix(ui): invalidate channel status on reconnect Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae * fix(ui): retain channel retry feedback Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae * chore(ci): refresh channel retry validation --------- Co-authored-by: Amp <[email protected]>
What Problem This Solves
Fixes an issue where users finishing Custodian setup could lose the channel onboarding status after a transient
channels.statusfailure. The flow neither explained that only the channel check failed nor offered a direct recovery action.Why This Change Was Made
Custodian now keeps the channel-status failure visible at the owning onboarding surface, offers Retry and dismiss actions, and clears the stale failure only after reconnection or channel-read access loss. The existing channel setup nudge returns after a successful retry, without treating a temporary status failure as a Gateway-wide outage.
User Impact
Users can retry a failed channel status check or dismiss the optional channel setup prompt and continue using the web app. Desktop and mobile layouts preserve the same visible recovery path.
Evidence
ui/src/lib/channels/index.test.ts,ui/src/pages/custodian/custodian-page.channel-onboarding.test.ts).ui/src/e2e/custodian-channel-onboarding.e2e.test.ts).git diff --check: passed. Changed-path classification: UI + UI tests. Target core test-types stripe 2/5: passed. TruffleHog 3.97.0 changed-file scan: 0 verified/unverified secrets.check:changedcould not acquire its Crabbox/Testbox route because the installed Crabbox binary failed its sanity preflight; focused owner tests and E2E were run locally in this dedicated Linux orb instead.Before: channel status check fails with a focused retry/dismiss action
Final-head screenshot captured and inspected; GitHub attachment upload was blocked by a 404 from the user-attachments endpoint.
After: successful retry restores the channel setup nudge (desktop)
Final-head screenshot captured and inspected; GitHub attachment upload was blocked by a 404 from the user-attachments endpoint.
After: successful retry at 390px mobile width
Final-head screenshot captured and inspected; GitHub attachment upload was blocked by a 404 from the user-attachments endpoint.
Production LOC: +59/-15 (net +44) | Tests/test support: +112/-3. Production growth adds the visible status-error ownership and recovery controls; tests cover reconnect clearing, retry, dismiss, and responsive E2E behavior.
AI-assisted: yes. I understand the change and verified the final rebased head. No transcript is included, per publication instructions.