Skip to content

fix(ui): keep Gateway downtime visible without losing drafts - #191935

Merged
vyctorbrzezowski merged 16 commits into
mainfrom
fix/control-ui-gateway-holding-20261103
Nov 7, 2026
Merged

vyctorbrzezowski merged 16 commits into
mainfrom
fix/control-ui-gateway-holding-20261103

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Related: #191925

The Control UI now opens its normal shell while the Gateway starts or reconnects. Existing conversations retain their shell and draft; genuine authentication failures still use sign-in. Navigation becomes available with the connection, and manual recovery appears after automatic recovery stops.

Available app documents and static assets remain usable during startup and drain. Dynamic requests, OAuth callbacks, and proxy attribution retain their existing owners. When the app document is unavailable, an asset-free page retries the same URL automatically, including when a previously resolved UI directory loses its index. The approved desktop/mobile layout and designer wordmarks are retained.

Validation on Tempbook after integrating main:

  • Corrected three Gateway lineage expectations attributable to this PR: automatic non-auth retries keep the shell; credential re-scoping and manual connection fixtures now enter a terminal login state. All 11 existing lineage cases pass (5.57 s wall with pnpm test ui/src/app/app-host.gateway-lineage.test.ts --maxWorkers=1), as do targeted oxlint/format and UI-app test types (8.45 s). Credential/owner boundaries and existing authentication and warm-boot coverage are unchanged. This follow-up changes only the test file; no new build or broad suite was run.

  • Retained both serial browser-test entries in the sole merge conflict. The three inventory cases pass (9.82 s). The 31 connection/warm-boot UI cases pass (4.51 s), and all seven startup HTTP cases pass (36.93 s), including OAuth ownership and missing-index/root recovery.

  • Removed an unsupported decorative SVG attribute and expanded the reduced-motion selectors without changing specificity or appearance. Both original type/lint failures are resolved; the 13 connection cases pass again (3.19 s). UI/core/tooling types and focused lint/stylelint/format checks pass. The test allocation remains 1328 lines, with no scalar increase or new tests; test-line and source-line caps pass.

  • Earlier proof at e31662b19c4 is retained for unchanged paths: 100 HTTP/routing, 10 browser, and three isolated real-Gateway cases, including actual SIGUSR2/socket reconnection with shell, URL, and draft retention. Those results and the full independent source review are historical evidence, not current-head CI. The two HTTP findings from that review were reproduced and fixed. This integration needed no new behavior or design decision and no repeated full review or E2E suite.

The merge preserves main's ingress/runtime changes, InlineAlert standardization, and sidebar behavior, plus all four collaborator branding commits. The production UI build passes. Authorized asset-budget overruns: startup JS gzip +206 B, largest JS gzip +3,316 B, total CSS gzip +936 B/raw +2,648 B, chat boot JS gzip +4,173 B, and new-session boot JS gzip +4,495 B. Hosted CI remains pending; no full UI/E2E suite, full generated-locale parity, binary upgrade, or host reboot was run. Earlier CI's unchanged lazy chat.sessionSharing.share expectation and startup-only logs are not claimed fixed. Local times use pnpm test … --maxWorkers=1; hosted CI seconds are not yet available.

The connection view centers its title and line under the OpenClaw mascot, whose slow bob, claws and eye scan are the busy indicator; the phone header, right above it, shows only the text wordmark, while the sidebar keeps the full lockup. The captures use the source UI with a held mock Gateway connection at desktop/mobile widths and reduced motion, so the mascot rests on its ground. Main has no held-connection view under the same mock, so they are after-only.

State Screenshot
Connecting · desktop 1440 · light
Connecting · desktop 1440 · dark
Connecting · phone 390 · light
Still connecting · desktop 1440 · light

Source contributions: vincentkoc and vyctorbrzezowski. Original contribution commits and human coauthor trailers are preserved.

Earlier evidence: implementation discussion, earlier verification, original-implementation restart run. Those historical results are not current-candidate proof.

@vincentkoc vincentkoc self-assigned this Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head d8cb054d9ec3ce77665d10f57fd82060d9c281a5, but the PR head is now d899b9ea8312bae1c680ab9028f17275a66b3727. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-03T13:58:21.429Z sha d8cb054 :: needs changes before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review November 3, 2026 16:28
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 3, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 4, 2026
@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 5, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: matrix Channel integration: matrix labels Nov 6, 2026
vyctorbrzezowski and others added 7 commits November 6, 2026 23:31
Preserve both serial browser inventories and approved connection branding.
Remove an unsupported SVG attribute and index reduced-motion selectors.

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Use terminal failures for login credential and manual connection cases.
Assert shell selection during automatic retries and startup.

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
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 docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants