Skip to content

fix(ui): keep automatic reconnection status stable - #179642

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/connection-footer-recovery
Oct 21, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/connection-footer-recovery

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: the Control UI connection footer shows a redundant Retry button during automatic reconnection, with a spinner appearing and disappearing between attempts and a status icon sitting above its label.

User Impact

Automatic recovery uses the sidebar's standard spinner in the same color as its label. It remains aligned and stable between attempts. Manual Retry remains available for disconnected states and uses a neutral button. Required page refreshes keep their separate action and static icon.

Why This Change Was Made

The Gateway already distinguishes automatic reconnection from recovery that has stopped. The shared status component now uses that distinction instead of exposing attempt/backoff timing as a second button spinner. It reuses the existing sidebar spinner and reduced-motion behavior, locally inheriting the label color through currentColor. The icon scales with the text in the sidebar, mobile header, and settings.

Evidence

  • Reproduced the redundant Retry behavior and the spinner/label color mismatch before their fixes.
  • Browser scenarios at 100% and 140% text size preserve the spinner across backoff and active attempts, keep icon and label centers within one pixel, and complete automatic recovery. Both themes assert exact spinner/label color equality and observe a real animation iteration with advancing time and a changed transform.
  • The normal-motion dark/light comparison uses the same 1280 × 900 viewport, 100% text size, and 310 × 240 crop. The spinner measures 12 × 12 CSS pixels in both. Reduced motion is checked separately and remains respected. An earlier light capture used reduced motion plus 140% text, which explained its static, larger ring; it was not a theme-dependent size or animation defect.
  • The two behavioral scenarios plus the task-only recording harness passed in 35.19 seconds wall time. The committed file's two scenarios took 17.15 seconds test time; updated CI timing is pending.
  • Settings consumer tests passed all 24 cases, including automatic phases and reload-required without a spinner. Earlier unchanged-flow proof covered queued messages, collapsed-sidebar keyboard access, mobile/native health, offline Retry callbacks, and private-draft protection through the refresh action.
  • CI exposed a remaining identity-menu test that expected Retry during reconnection. Its failure reproduced locally; the existing case now verifies no Retry during reconnect and a working Retry in offline. All 75 sidebar interaction tests passed in 4.90 seconds wall time.
  • Focused lint, stylesheet lint, formatting, and diff checks passed. Independent Codex reviews found no actionable P0–P2 defects.

Current-head CI attribution

UI shard 3/3 failed two newly added pending-chat retention cases while waiting for their initial transcript, before pending creation begins. They entered main in #175291 and are absent from this PR's original base. The entire chat source tree and the context/Gateway test fixtures are byte-identical between the tested main parent and CI merge. The test mounts the chat page directly with its Gateway status left null; it does not execute the shell or connection-footer path. None of this PR's changed tests ran in that shard.

This failure is unrelated to the diff by module scope. Its CI/Linux or wider-order mechanism remains unresolved: the exact baseline file passed 2/2 locally, and the immediate CI predecessor followed by that file passed 4/4 in the recorded order. Those passing replays do not prove a fix. No test was weakened, no production repair was invented, and CI was not rerun for green. Native admission retains the failed CI and verifies the applicable exception, current head, authority, security, and required review gates.

Risk and coverage

Browser flows use the real Control UI and connection owner against a synthetic WebSocket Gateway. Terminal handshake rejection correctly retires the shell, so offline Retry was additionally checked at the public sidebar-component boundary: neutral appearance and keyboard activation invoke its callback. That fixture is not a full live-Gateway manual reconnect. No transport, admission, or reload policy changed.

The paired captures below compare the color adjustment under identical normal-motion conditions; screenshots freeze one frame. Reduced motion intentionally stops the existing platform spinner and is not mixed into these pairs.

Dark before: 100 percent text, normal motion

Dark after: spinner inherits label color

Light before: same viewport, text size and normal motion

Light after: same 12px spinner and label color

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 21, 2026 15:35
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 21, 2026 16:49
@vyctorbrzezowski
vyctorbrzezowski merged commit d5621d9 into main Oct 21, 2026
95 of 99 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/connection-footer-recovery branch October 21, 2026 17:30
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
* fix(ui): keep automatic reconnection status stable

* fix(ui): use sidebar spinner for connection recovery

* test(ui): preserve offline retry in identity menu coverage

* fix(ui): match connection spinner color to its label
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant