Repository navigation
fix: stop the browser error when closing a split chat pane - #208172
roboclaw-bot wants to merge 3 commits into
Conversation
Notify the parent when desktop Details observers are ready without returning the signal setter result to Solid as a cleanup callback. Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThe desktop Details readiness callback now returns nothing instead of forwarding the parent signal setter’s return value. Example: Close the second pane in a two-pane chat.
Review scores
The scores reflect the reviewer's assessment. Real behavior proof is not required for maintainer- or bot-authored pull requests. ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR fixes a current-main cleanup error with a minimal change that preserves Details discovery; no introduced correctness or security defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI’s pane-local Details observer gathers content availability and publishes accessors to its parent; Solid owns the observer’s setup and disposal. flowchart LR
A[Chat pane] --> B[Details observer]
B --> C[Content availability]
B --> D[Readiness notification]
D --> E[Parent signal setter]
F[Pane disposal] --> G[Solid cleanup]
Technical reviewBest possible solution: Keep the existing observer owner and discard the readiness notification’s return value at its onSettled call site. Do we have a high-confidence way to reproduce the issue? The current-main callback, parent signal setter, and published Solid cleanup implementation establish the failure path; no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete fix: it corrects the invalid cleanup value at its producer without changing pane focus, discovery policy, or resource disposal. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b904594b0377. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0. Total 0 across 1 file. 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 (1 earlier review cycle)
Reviewed November 29, 2026, 4:21 AM ET / 09:21 UTC (Revision 2). |
|
@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:
|
|
The split-pane fix already landed in main through #208485. |
What Problem This Solves
Closing a split chat pane can raise
TypeError: e is not a functioneven when keyboard focus lands in the right place. The same error appears when closing Dashboard to reveal a shared chat or closing the bound conversation in a saved split.User Impact
The pane closes without the browser exception. The surviving pane keeps its existing focus and draft behavior. Desktop Details still hides when empty and appears when it has content. No settings or saved layouts need to change.
Why This Change Was Made
The desktop Details observer notifies its parent from Solid’s
onSettledcallback. The parent uses a signal setter, which returns the observer object. Returning that object fromonSettledregisters it as a cleanup function, so Solid tries to call it when the pane is disposed. The notification now returns nothing. This preserves the Details discovery behavior introduced in #205093 and leaves the pane-close and focus code untouched.Evidence
An independent AWS VM ran the same Chromium tests on main and on
e047d325, using fixture Gateway responses. On maind68b6d92, eight of 13 cases threwe is not a function. These covered all six close/focus cases, closing Dashboard to reveal the shared chat, and closing the bound conversation in a saved split. The other five cases passed.On main
3f172894, both additional cases failed. The native plugin lost its session accessory underauth:none. After a failed shell import, the chat recovered its draft but kept an error view on screen.On
e047d325, all 15 cases passed. They cover the surviving pane’s keyboard focus, chat and Home drafts, Dashboard and saved split behavior, Details appearing and disappearing as progress changes, the session accessory, and shell recovery. The UI typecheck (pnpm run tsgo:ui) passed. The AWS VM was released.The original Chromium run also passed its 13 selected cases on the fix. Formatting passed, and focused lint completed with one warning. Original close/focus CI · Original Dashboard and saved-pane CI
Worked on by: @daniel-lxs
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by