Skip to content

fix: keep personal desktop chats steady during reconnect - #208182

Merged
daniel-lxs merged 4 commits into
openclaw:mainfrom
roboclaw-bot:openclaw/sharing-control-and-row-gap-e97c71
Nov 29, 2026
Merged

daniel-lxs merged 4 commits into
openclaw:mainfrom
roboclaw-bot:openclaw/sharing-control-and-row-gap-e97c71

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related to #208444 and #205093.

What problem this solves

When a personal desktop chat reconnects, Details can briefly list the viewer as its only person. At 1180 px the button moves the sharing control 32 px. At 1800 px the People column takes 313 px from the conversation until the Gateway reconnects.

User impact

A personal chat that previously confirmed the viewer was its only person keeps its header and conversation width during reload. Details remains available when there is another person or something else to inspect. No user action or migration is required.

Why this change was made

After desktop Details discovery settles, it saves the confirmed self-only result in the existing account- and session-scoped conversation snapshot. Recording it here also works when the panel is closed. A pending membership read cannot establish that result, and evidence of another person takes precedence over it. The header keeps the early machine and shared-chat checks from #208444.

Evidence

Compared main 6568aaef6578 with 3931e270f434 in Chromium against separate real Gateways on disposable AWS CrabBoxes. The browsers had read-only grants and used persisted synthetic conversations. Reconnect and delivery of the optional Details module were delayed without changing the Gateway replies.

  • At 1180 px, sharing stayed at x=1096 on the PR in both reconnect orders. On main it moved to x=1064 and back when discovery arrived first.
  • At 1800 px, main briefly opened a 313 px People column. The PR reserved 0 px throughout.
  • Shared Chat and Dashboard kept sharing and the viewer avatars stationary on both revisions. Both real history resets kept the 4 px tool-to-compaction gap from fix: keep session Details and chat controls stable during loading #208444, with the tool result initially present or initially absent.
  • The controller guard, UI typecheck, 100 focused tests and 22 Chromium Details tests passed. The paired build loaded 107 fewer normalized gzip bytes for Chat startup and 110 fewer for New Chat. Both made the same number of requests as main.
  • The independent review of the final change found no actionable P0–P2 issues.

Existing conversations after upgrade

  • The published v2026.11.12 Gateway served a two-message conversation created with that release’s storage code. Its Control UI wrote a v17 browser snapshot. On the same origin and Gateway state directory, the candidate discarded the v17 cache before connecting, then reloaded both messages in the same conversation. The browser kept the dark-mode setting. This follows the cache retirement shipped in fix: keep chat photo previews sharp within their byte limits #206461.
  • Main wrote a v18 snapshot without selfOnlyPeople. With the candidate’s Gateway connection held, Chromium restored the original messages, session ID, pagination and Details. After reconnect, the confirmed hint survived a write and reread. The v18 format requires no migration.

Personal chat while reconnecting

Chromium at 1800 × 900, cropped to the same conversation header and transcript on both builds.

Main

Main temporarily reserves a column for the viewer’s own People section

PR

The personal conversation keeps its full width during reconnect

Clean captures

Main

Personal chat with the cached People column

PR

Personal chat with the header and transcript in their settled positions

Contributor: @daniel-lxs

Work sessions

Discussion, implementation and verification (team access required).

Use known People facts before deferred Details discovery. Let the compact activity frame own the gap to standalone compaction without applying full-size avatar insets. Leave the browser assertions unchanged.

Co-authored-by: daniel-lxs <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 29, 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.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

The PR remembers confirmed self-only People content in the existing conversation snapshot to preserve desktop chat geometry during reconnect.

Example: Reload a personal conversation in Chromium at 1800 × 900.

  • Before: A temporary self-only People column reserves 313 px beside the conversation.
  • After: The confirmed personal conversation reserves 0 px for Details throughout reconnect.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful repair with real-browser and upgrade evidence, preserved boundary cases, and no remaining actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Exact-head Chromium evidence exercises deferred Details discovery and reconnect against real isolated Gateways, with inspected before/after images and recorded stable header and conversation geometry; the body also records stable-release and existing-v18 upgrade checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Personal desktop conversations temporarily narrow or move header controls while reconnecting because Details redisplays the viewer as its only person.
Reason: The maintainer-authored direction restores established self-only and empty-Details behavior with a bounded addition to an existing display projection.

Merge readiness

✅ Ready for maintainer review

This PR addresses a remaining personal-chat layout defect on current main; no actionable findings remain after the earlier effect-related blocker was repaired.

Reviewed head: 3931e270f43407990435e5a14020529a0ace3904

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI combines Gateway session and membership facts with account-scoped browser snapshots to decide whether desktop Details has content and should occupy conversation space.

flowchart TD
  A[Gateway session facts] --> C[People display projection]
  B[Membership read] --> C
  D[Scoped conversation snapshot] --> C
  C --> E[Desktop Details discovery]
  E --> D
  C --> F[People section]
  E --> G[Header and conversation layout]
Loading

Technical review

Best possible solution:

Retain the confirmed display hint in the existing scoped snapshot while letting current membership, attribution, and session-generation facts determine visibility.

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

Current-main source exposes self-only People before session facts settle, matching the supplied real-browser comparison; this read-only review did not execute the application.

Is this the best way to solve the issue?

The fix uses the existing discovery owner and snapshot lifecycle, preserves unknown and other-person attribution, and shares the visibility decision between discovery and rendering.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Daniel: Raw commit 1f7a171 adds ui/src/pages/chat/components/chat-details.tsx:157 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1f7a17189fc8; files: ui/src/pages/chat/components/chat-details.tsx)
  • Vyctor H. Brzezowski: Raw commit d4e1305 adds ui/src/pages/chat/components/chat-details-session.tsx:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d4e1305213ee; files: ui/src/pages/chat/components/chat-details-session.tsx)

PR surface

Source +54, Tests +38. Total +92 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 151 97 +54
Tests 1 41 3 +38
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 192 100 +92

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • 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 readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-11-29T09:30:08.698Z sha ba61d0a :: passed. :: none
  • reviewed 2026-11-29T10:40:44.746Z sha 052c30d :: passed. :: none
  • reviewed 2026-11-29T11:17:42.691Z sha 052c30d :: passed. :: none
  • reviewed 2026-11-29T22:47:57.270Z sha 7b70f96 :: blocked before merge. :: [P2] [P2] Record the snapshot without adding an unallowed effect

Reviewed November 29, 2026, 6:10 PM ET / 23:10 UTC (Revision 5).

Keep the last confirmed self-only People display result in the existing scoped pane cache without inferring identity from a single cached name. Keep a settled tool footer inside its compact line rather than reserving a full footer row.

Co-authored-by: daniel-lxs <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Nov 29, 2026
@daniel-lxs
daniel-lxs marked this pull request as ready for review November 29, 2026 11:12
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

daniel-lxs added a commit to daniel-lxs/openclaw that referenced this pull request Nov 29, 2026
daniel-lxs added a commit to daniel-lxs/openclaw that referenced this pull request Nov 29, 2026
daniel-lxs added a commit to daniel-lxs/openclaw that referenced this pull request Nov 29, 2026
daniel-lxs added a commit that referenced this pull request Nov 29, 2026
Use the header's known machine placement and shared session participants
to present Details before background discovery finishes. Keep the existing
desktop rule for empty sessions and the discovery rules for a possible
self-only chat. Notify the parent without registering its setter's return
value as a Solid cleanup. Let compact tool frames use the activity gap
and keep their metadata alongside the restored operation.

Exercise populated panels and real publication events in the browser
fixtures. Distinguish an Environment summary from a full Review patch
and count duplicate requests within each checkout or run. Require all
three row-scoped readers to start after the initial chat.send.

Includes repairs from #208172, #208179, #208182 and #208205.

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3
OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c
OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
daniel-lxs added a commit that referenced this pull request Nov 29, 2026
Use the header's known machine placement and shared session participants
to present Details before background discovery finishes. Keep the existing
desktop rule for empty sessions and the discovery rules for a possible
self-only chat. Notify the parent without registering its setter's return
value as a Solid cleanup. Let compact tool frames use the activity gap
and keep their metadata alongside the restored operation.

Exercise populated panels and real publication events in the browser
fixtures. Distinguish an Environment summary from a full Review patch
and count duplicate requests within each checkout or run. Require all
three row-scoped readers to start after the initial chat.send.

Includes repairs from #208172, #208179, #208182 and #208205.

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3
OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c
OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
daniel-lxs added a commit that referenced this pull request Nov 29, 2026
Use the header's known machine placement and shared session participants
to present Details before background discovery finishes. Keep the existing
desktop rule for empty sessions and the discovery rules for a possible
self-only chat. Notify the parent without registering its setter's return
value as a Solid cleanup. Let compact tool frames use the activity gap
and keep their metadata alongside the restored operation.

Exercise populated panels and real publication events in the browser
fixtures. Distinguish an Environment summary from a full Review patch
and count duplicate requests within each checkout or run. Require all
three row-scoped readers to start after the initial chat.send.

Includes repairs from #208172, #208179, #208182 and #208205.

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3
OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c
OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
daniel-lxs added a commit that referenced this pull request Nov 29, 2026
Use the header's known machine placement and shared session participants
to present Details before background discovery finishes. Keep the existing
desktop rule for empty sessions and the discovery rules for a possible
self-only chat. Notify the parent without registering its setter's return
value as a Solid cleanup. Let compact tool frames use the activity gap
and keep their metadata alongside the restored operation.

Exercise populated panels and real publication events in the browser
fixtures. Distinguish an Environment summary from a full Review patch
and count duplicate requests within each checkout or run. Require all
three row-scoped readers to start after the initial chat.send.

Includes repairs from #208172, #208179, #208182 and #208205.

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3
OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c
OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
…very

Integrate the shared-header and compact-footer fixes from main. Save the confirmed self-only display state in desktop discovery so a personal chat keeps its width on reconnect without adding People discovery to the chat boot path.
@daniel-lxs daniel-lxs changed the title fix: keep sharing in place on reconnect and compact chat activity evenly fix: keep personal desktop chats steady during reconnect Nov 29, 2026
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 29, 2026
Keep membership generation checks and receipt writes in deferred Details
discovery. Reuse the snapshot readers for the optional display hint and
the existing conversation record fields.
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 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 29, 2026
@daniel-lxs
daniel-lxs merged commit 20725e6 into openclaw:main Nov 29, 2026
107 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
…8182)

Keep a personal chat’s header and conversation width stable on reconnect. Save its confirmed self-only People state during deferred desktop Details discovery and clear it when the session’s people change.

Co-authored-by: daniel-lxs <[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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

2 participants