Skip to content

fix(ui): clarify gateway disconnect status in tab title - #130364

Merged
RomneyDa merged 3 commits into
mainfrom
fix/control-ui-gateway-disconnected-title
Aug 26, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/control-ui-gateway-disconnected-title

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

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

  • Focused formatter regression: 74 tests passed; the new expectation failed against the pre-fix implementation.
  • Mock-Gateway browser flow: 3 tests passed, including disconnect title assertion and reconnect clearing assertion.
  • 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.
  • Structured autoreview: clean, no actionable findings.
{
  "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"
}

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 26, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 4:38 PM ET / 20:38 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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 maintainer label also require explicit maintainer handling rather than automated closure.

Priority: P2
Reviewed head: 6c2082b211e65a86bfa5ae9276f2db411fd01324

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) PR readiness rating was derived from proof quality, review findings, security review, and reviewer confidence.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 5 items Current-main behavior: Current main derives the title marker from any phase other than connected and passes it as offline; the formatter renders common.offline, so initial connection, reconnect, stop, and Gateway errors all read as Offline.
Changed owner boundary: The branch retains the existing phase !== "connected" condition at the shell and changes only the title formatter’s semantic name and localized marker.
Behavior coverage: Focused formatter and shell tests assert the renamed marker and queued-count behavior; the existing mock-Gateway browser flow asserts both disconnect appearance and reconnect clearing.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs ui/src/app-navigation.test.ts ui/src/app/app-host.document-title.test.ts

Result: PASS (completed)

[test] starting test/vitest/vitest.ui.config.ts

 RUN  v4.1.11 /tmp/clawsweeper-live-proof-130364-9AgVod/target

 ✓  ui  ui/src/app-navigation.test.ts (74 tests) 37ms
 ✓  ui  ui/src/app/app-host.document-title.test.ts (12 tests) 18ms

 Test Files  2 passed (2)
      Tests  86 passed (86)
   Start at  20:39:22
   Duration  4.08s (transform 4.70s, setup 273ms, import 4.75s, tests 56ms, environment 746ms)

[test] passed 1 Vitest shard in 4.64s
[test] starting test/vitest/vitest.ui.config.ts

 RUN  v4.1.11 /tmp/clawsweeper-live-proof-130364-9AgVod/target

 ✓  ui  ui/src/app-navigation.test.ts (74 tests) 39ms
 ✓  ui  ui/src/app/app-host.document-title.test.ts (12 tests) 17ms

 Test Files  2 passed (2)
      Tests  86 passed (86)
   Start at  20:39:27
   Duration  2.44s (transform 1.85s, setup 176ms, import 2.15s, tests 56ms, environment 704ms)

[test] passed 1 Vitest shard in 2.99s

Assertions:

  • PASS expect_output: Test Files

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - No attached before/after capture or real running Control UI evidence demonstrates the browser-tab transition; the supplied Playwright scenario is mock-Gateway proof only.
  • Resolve merge risk (P1) - Production changes are net +1 line for a dedicated English connection-state key; it is justified only because the existing generic Offline key cannot express the Gateway-specific condition.
Agent review details

Security

None.

PR surface

Source +1, Tests +2. Total +3 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 9 8 +1
Tests 3 18 16 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 27 24 +3

Review metrics

Metric Value Why it matters
Production versus test LOC production +9/-8 (net +1); tests +18/-16 (net +2) The sole production growth is the necessary Gateway-specific English marker; tests cover formatter, shell, and mocked browser transition behavior.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This corrects misleading but limited-scope Control UI status wording without changing Gateway connectivity behavior.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Label justifications:

  • P2: This corrects misleading but limited-scope Control UI status wording without changing Gateway connectivity behavior.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

  • Current-main behavior: Current main derives the title marker from any phase other than connected and passes it as offline; the formatter renders common.offline, so initial connection, reconnect, stop, and Gateway errors all read as Offline. (ui/src/app/app-host.ts:649, 1fd3c071d879)
  • Changed owner boundary: The branch retains the existing phase !== "connected" condition at the shell and changes only the title formatter’s semantic name and localized marker. (ui/src/app-navigation.ts:447, 6c2082b211e6)
  • Behavior coverage: Focused formatter and shell tests assert the renamed marker and queued-count behavior; the existing mock-Gateway browser flow asserts both disconnect appearance and reconnect clearing. (ui/src/e2e/sidebar-account-footer.e2e.test.ts:175, 6c2082b211e6)
  • Locale fallback contract: The new English key is safe while generated locale catalogs catch up: the translation suite explicitly verifies English fallback for keys absent from another locale. (ui/src/i18n/test/translate.test.ts:122, 6c2082b211e6)
  • Feature provenance: Blame ties the current title helper and shell caller to the Control UI feature commit that introduced the behavior. (ui/src/app-navigation.ts:447, 08a42a561c8f)

Likely related people:

  • Peter Steinberger: Blame attributes the current formatter and shell title logic to the feature commit that added this Control UI surface; file history also shows sustained UI ownership. (role: introduced title behavior and recent Control UI contributor; confidence: high; commits: 08a42a561c8f, 8fe2c1b83ca2; files: ui/src/app-navigation.ts, ui/src/app/app-host.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit 3fe6e58 into main Aug 26, 2026
120 checks passed
@RomneyDa
RomneyDa deleted the fix/control-ui-gateway-disconnected-title branch August 26, 2026 22:08
vincentkoc added a commit that referenced this pull request Aug 26, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
)

* fix(ui): clarify disconnected gateway title

* fix(ui): keep disconnect title concise

* test(ui): align shell disconnect title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant