Repository navigation
fix: let desktop users open session Details while chat history loads - #208179
roboclaw-bot wants to merge 6 commits into
Conversation
Recognize the known runner as Details content before optional discovery. Keep empty desktop sessions hidden and exercise populated sessions in the browser fixtures. Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: needs changes before merge. What this changesMakes known machine details available while desktop chat history is loading. Example: A read-only user opens a session assigned to disconnected studio-workstation while history is delayed.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR retains a useful read-only Details fix, but its current head fails the Chat startup-size gate. Reviewed head: Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI derives Details availability from session placement and discovered sections, then renders the existing Environment and machine components. flowchart LR
A[Gateway session placement] --> B[Header machine presentation]
A --> C[Shared machine presence check]
B --> C
C --> D[Details availability]
D --> E[Environment section]
E --> F[Machine menu or read-only host row]
Technical reviewBest possible solution: Keep the shared machine-presence check and read-only fallback while restoring Chat's existing startup budget. Do we have a high-confidence way to reproduce the issue? Current main's early availability check recognizes forwarded placement controls but misses an otherwise empty read-only session's known machine while content is pending. Is this the best way to solve the issue? The existing presence and Environment owners are the right boundary, and the change preserves the header's machine-menu decision without adding state or requests. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4f15f4ed8589. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +4, Tests +24. Total +28 across 7 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:
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 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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)Reviewed November 30, 2026, 3:19 AM ET / 08:19 UTC (Revision 5). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@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
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
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
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
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Desktop chat can receive a device assignment while the conversation is still loading. The header can hide Details throughout that wait, leaving the device information out of reach.
User Impact
One click opens the device information while history loads, including its connection status. An empty desktop session keeps the full width of the conversation.
Why This Change Was Made
The header already decides whether it can show a machine menu. Details reuses that decision immediately. Embedded sessions without menu actions can still show a read-only host row. A click also opens a panel whose desktop column has been reserved while its contents are loading.
Evidence
On a fresh Ubuntu VM, a real Gateway identified a paired, disconnected workstation. Chromium held the Gateway’s genuine history reply while a read-only user opened the session. On main (
b904594b0377), the header had no Details button. Onb58da73f3d87, one click showed the workstation before history arrived. Releasing the reply displayed the transcript. Both revisions hid the button and column for an empty session.The images show the same part of a 1280 × 800 desktop viewport. The after image was taken immediately after the click, with history still held.
With the same toolchain and release metadata, Chat startup used 18 JavaScript requests on every build. The PR head measured 1,335,395 normalized gzip bytes, 696 bytes lower than the original PR and 43 bytes lower than main. The PR’s merge base measured 1,335,306 bytes.
Applying only this PR’s UI changes to the current main checkout gave 1,335,230 normalized gzip bytes (208 bytes lower than unmodified main). Its emitted assets were 49 bytes lower in served gzip. The header reuses the machine-menu decision without another request.
The subscription recovery check waits for the named link in an open PR row after the retry. The loading skeleton cannot satisfy that check. The test verifies a single socket and exactly two subscription requests. It passed in Chromium, with formatting and focused lint clean. The independent VM also passed the real-Gateway workstation check on
b58da73f3d87; the screenshot crop is byte-identical to the one shown above.The 40 component cases and four focused browser cases passed on the identical production tree at
7688273d5643. UI typechecking and formatting passed. Lint reported zero errors and two reactivity warnings on the existing header merge calls. Local autoreview found no P0–P3 findings on3f17289415e2..b58da73f3d87. RoboClaw also reported 25 focused cases and two real-Gateway checks on its AWS build.Twenty-three failures in the linked full CI run also occurred on scheduled main, sometimes in different shards. The Settings test in that run timed out waiting for “Profile saved.” It passed in the two most recent full main runs and on a fresh VM with both CI’s exact main checkout and PR merge build. The cause of that timeout is undetermined. Full PR run · Full main comparison
Original failing CI run · Desktop empty-session behavior
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.
🦞 Made with OpenClaw