Repository navigation
fix: keep sidebar identity and layout stable while reconnecting - #185220
Conversation
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b36f65be-d29d-4ad3-aabf-589ff65f7487
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 765ea84e-deb4-42c3-8617-fc196a5e5e1d
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +28, Tests +252. Total +280 across 13 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 26, 2026, 8:37 PM ET / October 27, 2026, 00:37 UTC. |
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 18fc0851-3781-4871-be6c-35e0c92cb184
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b86d64db-8353-47ed-a942-7f62344ca3b5
|
Merged via squash.
|
…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]>
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
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.board.getfailure also occurred on the old untouched base. It no longer reproduces after main integration; the current six-suite browser run is fully passing.test:ci-failed --run.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