Repository navigation
fix(ui): clarify gateway disconnect status in tab title - #130364
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 4:38 PM ET / 20:38 UTC. ClawSweeper reviewWhat this changesThe PR changes the Control UI tab title to say “Disconnected” rather than “Offline” whenever its Gateway WebSocket is not connected, with matching unit, shell, and browser-flow expectations. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. Current main still labels every non-connected Gateway phase as “Offline”; this patch correctly clarifies that state as “Disconnected,” but its browser evidence is mock-only and lacks the required real Control UI visual proof. The MEMBER author and Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Control UI shell turns the current Gateway connection snapshot, route context, approval state, and queued outbox count into the browser tab title. The resulting title helps an operator distinguish a Gateway connection problem from browser internet connectivity. flowchart LR
A[Gateway connection snapshot] --> C[Control UI shell]
B[Route and queued outbox state] --> C
C --> D[Tab title formatter]
D --> E[Localized connection marker]
E --> F[Browser tab title]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +2. Total +3 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the existing Gateway-phase condition, use the dedicated Disconnected title key, and attach a redacted real Control UI before/after capture showing the marker appear and clear after reconnect. Do we have a high-confidence way to reproduce the issue? Yes — source-reproducible with high confidence: current main passes every non-connected Gateway phase to an Offline title marker, while the existing browser-flow test can drive disconnect and reconnect transitions. Is this the best way to solve the issue? Yes — the shell is the sole caller and already owns conversion from Gateway phase to title state, so a localized label correction there is narrower and safer than changing other intentionally Offline UI surfaces. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1fd3c071d879. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* origin/main: (275 commits) fix(ai): require explicit compatible-provider endpoints (#130453) test(control-ui): guard the hand-mirrored theme --bg copies (#130444) fix(onboard): preserve the saved skills package manager (#130438) improve(worker): diagnose admission-deadline failures and widen daemon revalidation budget (#130435) fix(plugins): align diffs external install metadata (#130362) refactor(models): consolidate config normalization (#130439) fix(browser): accept common keyboard aliases (#130401) fix(release): refresh IMAP plugin baselines (#130351) fix(tests): type sticky model agent fixtures (#130441) fix(qa): track current Slack progress cards (#130354) feat(ui): refine the mobile composer (#130308) fix(ui): clarify gateway disconnect status in tab title (#130364) test(qa): await gateway startup before network probes (#130353) fix(qa): run Buzz profile scenarios with pooled credentials (#130316) fix(crabbox): keep the setup failure reason and name its phase (#130425) fix: dashboard tools target the wrong Gateway after admission (#130112) fix(ui): distinguish inherited model defaults from session pins (#120805) feat(feishu): let agents resend received stickers (#130374) refactor(models): prepare selection policy once (#130413) fix(ui): make dashboard side panels enter split view (#130426) ... # Conflicts: # test/scripts/docker-build-helper.test.ts
What Problem This Solves
Fixes an issue where users saw “Offline” in the Control UI tab title whenever its Gateway WebSocket was not connected, even when their internet connection was healthy. The marker could appear during initial connection, reconnects, Gateway startup or authentication errors, and intentional stops.
Why This Change Was Made
The title now says “Disconnected,” matching the condition the UI actually observes while keeping the meaningful word visible in narrow tabs. The formatter input is renamed to keep future callers from confusing Gateway connectivity with browser internet access.
User Impact
Disconnected Control UI tabs now distinguish a lost Gateway connection from a loss of internet access. Pending outbox counts remain visible, and the marker still clears immediately after reconnection.
Evidence
node scripts/check-changed.mjs: passed UI/core-test formatting, i18n, typecheck, lint, and repository guards.pnpm ui:build: passed, including Control UI performance budgets.{ "scenario": "control-ui-gateway-title-disconnect-reconnect", "gateway": "mock WebSocket Gateway", "browser": "Chromium via Playwright", "observed": { "disconnectedTitle": "(Disconnected)", "reconnectedTitleMarkerPresent": false, "sidebarRetryState": "Offline / Reconnecting…" }, "verdict": "pass" }