Skip to content

fix: keep sidebar identity and layout stable while reconnecting - #185220

Merged
roboclaw-bot merged 8 commits into
mainfrom
openclaw/rapid-langoustine
Oct 27, 2026
Merged

roboclaw-bot merged 8 commits into
mainfrom
openclaw/rapid-langoustine

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the sidebar changing its account appearance and session-list height when the Gateway disconnects or restores a saved view.

User Impact

The account remains recognizable while reconnecting or loading a photo, and connection feedback changes without moving the sidebar content. No migration or configuration changes are required.

Why This Change Was Made

Keep display identity within its existing connection scope and reserve one compact connection slot across live, reconnecting, and saved-reload states. Display continuity does not grant request authority. Pending account photos retain centered initials until loading completes.

Evidence

  • Chromium regressions reproduce blank pending avatars and a 45px list-height jump on the original base, then pass with the fix. Cached reload is exercised before the held hello resolves.
  • After integrating main at 6f212fb009904efe6e9686f4bb433a39048b3b82: 39 focused unit tests and all 16 browser checks passed, covering reconnect grace, recovery, saved reload, slow photos, and desktop/mobile footer consumers. The browser suite also rebuilt the production UI. Typecheck, scoped lint, stylesheet lint, formatting, and diff checks passed.
  • The initial local shared-chat board.get failure also occurred on the old untouched base. It no longer reproduces after main integration; the current six-suite browser run is fully passing.
  • CI exposed two older dev-footer assertions that expected no connection row. Both now verify the occupied compact slot separately from unused space, preserving last-session reachability and desktop/mobile bounds; the exact failed cases passed through test:ci-failed --run.
  • Independent source review, follow-up, and fresh Codex P0–P2 reviews found no remaining actionable issues. The sole manual main conflict resolution retains main’s gateway test helper and the stable-footer expectation.
  • Simplification: retained the existing display-scope and sidebar owners; no new renderer, identity cache, or authorization path. The added fixture covers distinct slow-photo and disconnect/reload regressions.

Captures below illustrate Before, then After, using synthetic account and session data. Their inline GitHub rendering was inspected; the same behavior was revalidated after main integration.

Worked on by

Work sessions

before

after

roboclaw-bot and others added 2 commits October 27, 2026 00:02
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: b36f65be-d29d-4ad3-aabf-589ff65f7487
@clawsweeper

clawsweeper Bot commented Oct 27, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 27, 2026 00:08
@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 27, 2026
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 765ea84e-deb4-42c3-8617-fc196a5e5e1d
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 27, 2026 00:25
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR retains sidebar display identity during reconnects, reserves a compact connection-status slot, and shows initials while account photos load.

Example: Riley Morgan’s Gateway disconnects while the session sidebar is open.

  • Before: The account appearance can change and the session list loses height when connection feedback appears.
  • After: Riley’s identity remains recognizable and connection feedback occupies an existing fixed slot.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful patch with inspected visual evidence and targeted browser regressions; the supplied static captures show connected layout rather than the complete transition sequence.
Proof confidence 🐚 platinum hermit (4/6) This collaborator-authored PR is outside the ordinary contributor proof gate; inspected before/after screenshots show the compact connected footer, while the reported production-UI Chromium regressions cover slow photos, disconnect, recovery, and held-hello cached reload.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The sidebar account can lose its recognizable appearance and the session list changes height during disconnect or saved-view restoration.
Reason: The maintainer-authored direction resolves concrete visual regressions with a compact status slot and existing display-scope ownership.

Merge readiness

✅ Ready for maintainer review

This PR addresses concrete sidebar identity and layout regressions using existing owners; no actionable introduced defect was found, and current main still needs the change.

Priority: P2
Reviewed head: 5e87af7c1620c01cd0b1afa6f4e580793819c220

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI shell projects Gateway connection state into sidebar identity, connection feedback, and layout without granting request authority.

flowchart LR
  A[Gateway connection owner] --> B[Presentation scope]
  A --> C[Shell status projection]
  B --> D[Sidebar identity]
  C --> E[Fixed connection slot]
  D --> F[Sidebar layout]
  E --> F
Loading

Technical review

Best possible solution:

Keep identity retention in the existing presentation scope and render connection transitions inside the sidebar’s fixed compact slot.

Do we have a high-confidence way to reproduce the issue?

Source shows undefined identity being cleared in offline/startup phases and a footer being conditionally inserted; the PR records base-failing Chromium regressions, but this review ran no target code.

Is this the best way to solve the issue?

The patch is a focused repair using existing scope, status, avatar, and sidebar owners, with affected consumers updated and no unnecessary parallel machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 58f259f6ea98.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced change and current-main comparison: The pinned introduction diff changes presentation retention, warm-boot feedback, sidebar footer geometry, and pending-photo styling; current main retains the earlier identity-clearing and conditional-footer behavior. (ui/src/app/gateway-presentation-scope.ts:56, 5e87af7c1620)
  • Identity remains presentation-scoped: Connection revision, changed user, changed recovery scope, and retired recovery still replace the presentation scope; explicit profileless resolution and stop clear display identity. Credential changes increment the authoritative connection revision. (ui/src/app/gateway-presentation-scope.ts:39, 5e87af7c1620)
  • Earlier footer intent: feat(ui): show the Gateway connection state in the sidebar footer #174022 deliberately hid healthy connection feedback after recovery, while fix: remove empty sidebar profile footer #171644 removed an empty footer. This maintainer-authored PR explicitly replaces that behavior with a smaller occupied status slot to prevent session-list movement. (ui/src/components/app-sidebar-owner.tsx:563, 406772b73f3b)
  • Inspected visual evidence: Both prepared before/after screenshots were inspected locally; the after capture visibly adds the compact Connected footer while preserving the account image and surrounding UI. The added browser scenarios separately exercise pending-photo initials, disconnect grace, recovery, and cached reload before hello resolves. (ui/src/e2e/sidebar-account-footer.e2e.test.ts:36, 5e87af7c1620)
  • Current workflow state: GitHub reports the reviewed head as non-draft and mergeable, with checks still running and no failing check returned by the refreshed check-run read; discussion contains only review-status comments. (5e87af7c1620)
  • Policy and inspection limits: Root and UI AGENTS.md guidance was applied; no deeper UI AGENTS.md or maintainer-notes directory exists. The installed Solid cheatsheet was unavailable, and an extended historical avatar search encountered an unavailable promisor blob; neither prevents assessment of the supplied diff and current source. (ui/AGENTS.md:1, 5e87af7c1620)

PR surface

Source +28, Tests +252. Total +280 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 54 26 +28
Tests 9 271 19 +252
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 325 45 +280

Review metrics

Metric Value Why it matters
Production versus test changes Production +54/-26; tests and support +271/-19 Production growth is predominantly scoped CSS; browser coverage protects distinct photo-loading and reconnect/reload geometry failures without introducing a new production owner.

Labels

Label changes:

  • add P2: The patch fixes bounded, visible sidebar identity and layout regressions without changing message delivery or core runtime availability.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The patch fixes bounded, visible sidebar identity and layout regressions without changing message delivery or core runtime availability.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 26, 2026, 8:37 PM ET / October 27, 2026, 00:37 UTC.

@roboclaw-bot
roboclaw-bot disabled auto-merge October 27, 2026 00:58
roboclaw-bot and others added 4 commits October 27, 2026 01:02
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 18fc0851-3781-4871-be6c-35e0c92cb184
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: b86d64db-8353-47ed-a942-7f62344ca3b5
@roboclaw-bot
roboclaw-bot merged commit 8e05563 into main Oct 27, 2026
87 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/rapid-langoustine branch October 27, 2026 02:50
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…claw#185220)

* fix: keep sidebar identity and layout stable while reconnecting

Co-authored-by: steipete <[email protected]>

* fix: keep sidebar identity and layout stable while reconnecting

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: b36f65be-d29d-4ad3-aabf-589ff65f7487

* test: account for the stable sidebar connection slot

Co-authored-by: steipete <[email protected]>

* Publish openclaw/rapid-langoustine

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 765ea84e-deb4-42c3-8617-fc196a5e5e1d

* Publish openclaw/rapid-langoustine

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 18fc0851-3781-4871-be6c-35e0c92cb184

* Publish openclaw/rapid-langoustine

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: b86d64db-8353-47ed-a942-7f62344ca3b5

---------

Co-authored-by: steipete <[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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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