Repository navigation
fix(ui): restore chat disclosure and media lifecycles - #169468
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR restores nested activity disclosures and releases image and video preview resources when retained chat content is parked. Example: Expand Batch 1 containing reads of source-0.ts through source-9.ts.
Review scores
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 Keep open: this collaborator-authored PR repairs current-main chat rendering regressions with a focused change and no actionable introduced defect found; required CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI transcript rows consume message and presentation state, cross the retained Solid/Lit boundary, and render activity cards and media previews using existing resource owners. flowchart TD
A[Transcript state] --> B[Solid chat rows]
B --> C[Retained Lit content]
C --> D[Tool card children]
C --> E[Presentation signal]
E --> F[Image and video previews]
F --> G[Existing media resource owners]
Technical reviewBest possible solution: Keep deferred children within the existing card range and let the established presentation signal control media resource lifetimes. Do we have a high-confidence way to reproduce the issue? Pinned main source exposes the missing presentation cleanup, and inspected before/after screenshots demonstrate the disclosure failure; no target code or tests were run during this read-only review. Is this the best way to solve the issue? The repair uses the existing rendering and presentation owners, preserves scope-checked caches, and retains behavioral assertions without adding competing state or configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0387f4f96a29. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +11, Tests +10. Total +21 across 9 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed October 11, 2026, 8:14 PM ET / October 12, 2026, 00:14 UTC. |
|
Maintainer override (Ayaan approved landing): the only red job on this head (f8b522d) is
|
Related: openclaw#168887, openclaw#169439, openclaw#169441 ## What Problem This Solves Fixes missing nested chat activity and stale media resources after the Solid transcript migration, restoring 20 failing `checks-ui` cases inherited by unrelated PRs. ## User Impact Expanded activity shows its nested calls again. Parked image and video previews release their resources and reconnect through the existing scope-checked caches. No settings, protocol, storage, or migration changes. ## Why This Change Was Made Keep deferred tool-card children inside their existing Lit-owned range instead of creating nested Solid roots that are retired while parked. Bind image and video resource lifetimes to the existing Solid presentation context. Update lifecycle fixtures to await the documented deferred Solid disposal boundary without removing or weakening any assertions. Checked steipete's open UI PRs before editing. openclaw#169442 overlaps the activity headline, not these repairs. openclaw#169346 has green UI results on an older tree, but its head lacks the later bridge changes and does not repair these current-main failures. No overlap with Pash/Sarah changes. ## Evidence - Baseline `1bb91e30fd5`: all **20 reported failures reproduced** across eight files (116 other cases passed). - Rebased onto current main, including openclaw#169439 and openclaw#169441: **190 tests passed across 10 files**, including all 20 failures plus media handoff and native media siblings. - `pnpm tsgo:ui`: passed. - `pnpm run tsgo:test:ui`: all UI shards passed. - Changed-file oxlint/oxfmt, line-cap ratchet against `origin/main`, and `git diff --check`: passed. - Independent P0–P2 review: no actionable findings. - Original failing CI: [shard 2](https://github.com/openclaw/openclaw/actions/runs/38184982892/job/114605449166), [shard 3](https://github.com/openclaw/openclaw/actions/runs/38184982892/job/114605449173), and [image admission run](https://github.com/openclaw/openclaw/actions/runs/38184424359). ### Expanded activity, before and after Captured from the same Chromium fixture and inspected. Before: the opened parent has no nested calls. After: the calls render and the original height/collapse assertions pass. | Before | After | | --- | --- | |  |  | |  |  | <details> <summary>Per-test disposition: all 20 fixed</summary> | Test file | Previously failing cases | Status | | --- | --- | --- | | `chat-activity-layout.browser.test.ts` | Expanded height and collapse, standalone | fixed | | `chat-activity-layout.browser.test.ts` | Expanded height and collapse, inline | fixed | | `chat-activity-layout.browser.test.ts` | Opened lone step with routine nested calls | fixed | | `chat-activity-disclosure.test.ts` | Settled completed step with routine nested calls | fixed | | `chat-position-rail.test.ts` | Focused previews, pointer exit, removal, and session reset | fixed | | `chat-message-attachment-admission.test.ts` | Stale admission after source replacement/disconnect | fixed | | `chat-message-text-chip-admission.test.ts` | Stale comment observations | fixed | | `chat-message-text-chip-admission.test.ts` | Stale paste observations | fixed | | `chat-transcript-invalidation.test.ts` | Hidden video preview, rendered parent | fixed | | `chat-transcript-invalidation.test.ts` | Hidden video preview, parked parent | fixed | | `chat-message-media-lifecycle.test.ts` | Guarded managed image reconnect | fixed | | `chat-message-image-admission.test.ts` | Loaded assistant image remount | fixed | | `chat-message-image-admission.test.ts` | Loaded assistant image reconnect | fixed | | `chat-message-image-admission.test.ts` | Detached image after authToken change | fixed | | `chat-message-image-admission.test.ts` | Detached image after sessionKey change | fixed | | `chat-message-image-admission.test.ts` | Detached image after agentId change | fixed | | `chat-message-image-admission.test.ts` | Detached image after connectionEpoch change | fixed | | `chat-message-image-admission.test.ts` | Detached image after resourceBasePath change | fixed | | `chat-message-image-admission.test.ts` | Detached image after policyKey change | fixed | | `chat-message-image-admission.test.ts` | Detached image after expiry | fixed | No reported case was already fixed on the captured main baseline. The managed-image remount sibling already passed and continues to pass. </details> Two-way door: reverting restores the prior rendering/resource behavior without changing persistent state. Blast radius is Control UI chat activity disclosure and image/video preview lifecycles. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #168887, #169439, #169441
What Problem This Solves
Fixes missing nested chat activity and stale media resources after the Solid transcript migration, restoring 20 failing
checks-uicases inherited by unrelated PRs.User Impact
Expanded activity shows its nested calls again. Parked image and video previews release their resources and reconnect through the existing scope-checked caches. No settings, protocol, storage, or migration changes.
Why This Change Was Made
Keep deferred tool-card children inside their existing Lit-owned range instead of creating nested Solid roots that are retired while parked. Bind image and video resource lifetimes to the existing Solid presentation context. Update lifecycle fixtures to await the documented deferred Solid disposal boundary without removing or weakening any assertions.
Checked steipete's open UI PRs before editing. #169442 overlaps the activity headline, not these repairs. #169346 has green UI results on an older tree, but its head lacks the later bridge changes and does not repair these current-main failures.
Evidence
a9b40cf325e: all 20 reported failures reproduced across eight files (116 other cases passed).pnpm tsgo:ui: passed.pnpm run tsgo:test:ui: all UI shards passed.origin/main, andgit diff --check: passed.Expanded activity, before and after
Captured from the same Chromium fixture and inspected. Before: the opened parent has no nested calls. After: the calls render and the original height/collapse assertions pass.
Per-test disposition: all 20 fixed
chat-activity-layout.browser.test.tschat-activity-layout.browser.test.tschat-activity-layout.browser.test.tschat-activity-disclosure.test.tschat-position-rail.test.tschat-message-attachment-admission.test.tschat-message-text-chip-admission.test.tschat-message-text-chip-admission.test.tschat-transcript-invalidation.test.tschat-transcript-invalidation.test.tschat-message-media-lifecycle.test.tschat-message-image-admission.test.tschat-message-image-admission.test.tschat-message-image-admission.test.tschat-message-image-admission.test.tschat-message-image-admission.test.tschat-message-image-admission.test.tschat-message-image-admission.test.tschat-message-image-admission.test.tschat-message-image-admission.test.tsNo reported case was already fixed on the captured main baseline. The managed-image remount sibling already passed and continues to pass.
Two-way door: reverting restores the prior rendering/resource behavior without changing persistent state. Blast radius is Control UI chat activity disclosure and image/video preview lifecycles.