Repository navigation
fix: keep session Details and chat controls stable during loading - #208444
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +38, Tests +173. Total +211 across 33 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label 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 HistoryReview history (4 earlier review cycles)Reviewed November 29, 2026, 4:58 PM ET / 21:58 UTC (Revision 5). |
c923da8 to
77e5a63
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
77e5a63 to
540a2aa
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
540a2aa to
dcca178
Compare
|
@clawsweeper re-review |
|
🦞👀 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.
dcca178 to
725bf05
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…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]>
…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
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
21786f65ed93and onc923da8d27b7. The same reconnect scenarios are exercised on the current head.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.
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
186e94192f81failed 45 ordinary UI cases and one real-Gateway case. Atb7a5cac66c48, 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 comparisonThe 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 maind47333a1d3c3(-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 comparisonThe 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
540a2aaf778awith main’s fixtures from #208510 and #208478. Main provides the observer fix from #208485. WebKit CI comparison · Architecture CI comparisonRelated to #127323. Incorporates work from #208179, #208182 and #208205 and preserves the empty-session behavior from #205093.