Skip to content

fix: keep session Details and chat controls stable during loading - #208444

Merged
daniel-lxs merged 5 commits into
mainfrom
fix/control-ui-main-e2e
Nov 29, 2026
Merged

daniel-lxs merged 5 commits into
mainfrom
fix/control-ui-main-e2e

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

What problem this solves

During reconnect, the sharing control and avatars can shift 32 px. Details can also stay hidden after the Gateway has identified the session’s device, leaving the device inaccessible while history loads.

What changes

The header can show Details from a known machine menu or two distinct people in the session. A desktop session with nothing to show keeps its full conversation width. The header resolves the session from the existing snapshot code. The full People visibility check loads with desktop Details discovery. Opening the device picker loads its 13 move, restart and dispatch labels. Session menu labels remain available on first render.

In a shared chat at 1180 px, the sharing control stays in place between the cached and connected header. Chromium used the same synthetic owner and participant on main 21786f65ed93 and on c923da8d27b7. The same reconnect scenarios are exercised on the current head.

Main Repair
Sharing moves 32 px on main Sharing retains its x coordinate on the repair
Main sharing controls during reconnect Repair sharing controls during reconnect

A restored tool row followed by compaction uses the transcript’s 4 px activity spacing. These Chromium captures use the same synthetic history reset on the original main and the repair’s identical spacing change.

Main Repair
Measured 8 px gap on main Measured 4 px gap on the repair
Read and compaction rows on main Read and compaction rows on the repair

The browser tests supply actual session content when an interaction needs a populated panel. They account separately for the visible session’s Environment summary, full Review patches, and file listings. Sending a duplicate summary in a negative control failed the request-count assertion. The first-turn real-Gateway test requires its three readers to send their requests after the user sends the first message.

Verification

On disposable AWS boxes, main 186e94192f81 failed 45 ordinary UI cases and one real-Gateway case. At b7a5cac66c48, all ten UI shards and both real-Gateway shards passed, covering 4,023 ordinary cases and 106 real-Gateway cases with the same four skips. The extra passing case exercises a settled tool from a previous run. The real-Gateway cases that logged WebSocket resets completed their assertions on both revisions. Scheduled main comparison

The extra header capture initially timed out on both main and the repair because its mock participant had two fields the Gateway does not send. Correcting only that synthetic participant restored the cached transcript under the same held handshake and asset download. The production cache validator stays strict.

On 725bf050b932, the repository performance comparison measured 1,352,006 normalized gzip bytes for Chat against 1,352,100 on main d47333a1d3c3 (-94 bytes). Both used 18 JavaScript requests. The comparison also passed against the base from the hosted run. The placement picker, reconnect, shell recovery and English catalog checks passed on the same AWS box. Both import-cycle guards passed. Hosted performance comparison

The empty-desktop Details test waits for the actual discovery request on both browsers. WebKit uses the production 1.5-second timer fallback. The test checks that discovery ran exactly once and that no error panel rendered. All 22 Details cases passed in each browser. Restoring the invalid Solid cleanup made the error-panel assertion fail in both engines. The complete WebKit check passed on the same Linux VM.

The sidebar handoff and real-Gateway parent-completion scenarios passed on 540a2aaf778a with main’s fixtures from #208510 and #208478. Main provides the observer fix from #208485. WebKit CI comparison · Architecture CI comparison

Related to #127323. Incorporates work from #208179, #208182 and #208205 and preserves the empty-session behavior from #205093.

@daniel-lxs daniel-lxs added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 29, 2026
@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.

@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@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. 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. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR reveals known session Details during loading, stabilizes reconnect controls and compact activity spacing, and updates affected browser checks and lazy-loaded labels.

Example: A shared conversation reconnects in an 1180 px Chromium viewport.

  • Before: The sharing control moves from x=1096 px to x=1064 px when Details appears.
  • After: The sharing control stays at x=1064 px through reconnect.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, worthwhile repair with inspected visual evidence and no blocking findings; broad current-head CI is still completing.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after header captures show sharing controls retaining their position through reconnect; source and the linked real-Gateway Details report support the loading repair, while reported browser runs provide supporting coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Device Details can remain inaccessible while history loads, and sharing controls move during reconnect.
Reason: The maintainer-authored direction repairs visible regressions while preserving the intentional full-width empty-desktop behavior.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: it repairs concrete loading and reconnect regressions while preserving empty-desktop behavior, with no actionable defects found in the pinned diff.

Reviewed head: 725bf050b93231a51aebe7439788345c05a7bf99

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI header combines Gateway session facts and scoped display snapshots to present Details, device actions, and sharing controls; transcript styles control adjacent activity spacing.

flowchart TD
  A[Gateway session facts] --> C[Header presentation]
  B[Scoped display snapshot] --> C
  C --> D[Details availability]
  D --> E[People and Environment]
  F[Transcript activity] --> G[Compact row layout]
Loading

Technical review

Best possible solution:

Land the focused repair through the existing CI gates while retaining the empty-session discovery and scoped snapshot owners.

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

Current-main source omits known machine and People facts from early Details availability, and the inspected before/after screenshots corroborate the reconnect shift; no independent runtime reproduction was run.

Is this the best way to solve the issue?

The repair is appropriately small: it reuses the existing machine decision and snapshot module, preserves live facts, narrowly adjusts compact activity styles, and updates affected consumer checks.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Empty desktop Details keeps the original intent (d4e1305: Hide the button and column when there is nothing to inspect, preserving conversation width.)
  • Opening activity alignment keeps the original intent (dfca7f4: Center an opening tool row on its avatar and balance spacing; the new variable retains those defaults outside compact activity frames.)
  • Compact activity identity keeps the original intent (99543de: Keep standalone compaction separate while placing the adjacent tool's identity beside its operation.)
  • Placement dialog English keeps the original intent (a38409f: Provide explicit placement destinations and recovery copy; this PR preserves the text and moves dialog-only labels to an already registered lazy catalog.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit d4e1305 adds ui/src/pages/chat/components/chat-details.tsx:143 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.tsx)

PR surface

Source +38, Tests +173. Total +211 across 33 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 12 75 37 +38
Tests 21 277 104 +173
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 33 352 141 +211

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:

No label changes.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-11-29T17:43:10.019Z sha c923da8 :: passed. :: none
  • reviewed 2026-11-29T18:32:50.373Z sha 77e5a63 :: passed. :: none
  • reviewed 2026-11-29T20:05:52.285Z sha 540a2aa :: passed. :: none
  • reviewed 2026-11-29T21:00:31.527Z sha dcca178 :: passed. :: none

Reviewed November 29, 2026, 4:58 PM ET / 21:58 UTC (Revision 5).

@daniel-lxs
daniel-lxs force-pushed the fix/control-ui-main-e2e branch from c923da8 to 77e5a63 Compare November 29, 2026 18:26
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@daniel-lxs
daniel-lxs force-pushed the fix/control-ui-main-e2e branch from 540a2aa to dcca178 Compare November 29, 2026 20:53
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

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
Move the shared live-or-cached session resolver into the existing chat snapshot module. The header can read the same early session facts without pulling the full desktop People visibility predicate into its initial chunk.
The resolver only consumes a session row, readiness and its snapshot. Keep the snapshot owner independent of the rendering props that consume it.
Synchronize with the first real observation on idle-callback and timer-based browsers. Check its exact count and the rendered error state after Solid settles.
@daniel-lxs
daniel-lxs force-pushed the fix/control-ui-main-e2e branch from dcca178 to 725bf05 Compare November 29, 2026 21:52
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@daniel-lxs
daniel-lxs merged commit 1f7a171 into main Nov 29, 2026
103 checks passed
@daniel-lxs
daniel-lxs deleted the fix/control-ui-main-e2e branch November 29, 2026 22:18
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
…08444)

Keep known devices and shared participants available in session Details while chat history loads. Preserve empty desktop sessions and compact tool spacing. Load People discovery and placement picker copy with their consumers. Exercise the real discovery callback in both browser engines.

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

(cherry picked from commit 1f7a171)

Release adaptation: Port the loading guards and placement catalog split onto beta’s existing docked/mobile Details owner. Prefer live header facts and constrain cached snapshots to the current session ID; allow early Details presentation for known device and People data. Do not adopt main’s Details observer refactor or separate compact activity row layout (neither exists on beta).

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
…enclaw#208444)

Keep known devices and shared participants available in session Details while chat history loads. Preserve empty desktop sessions and compact tool spacing. Load People discovery and placement picker copy with their consumers. Exercise the real discovery callback in both browser engines.

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
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 ci:full Keep ordinary native-locale CI selection on the next PR run. 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.

1 participant