Skip to content

fix(ui): keep tool rendering lazy and preserve hidden plugin views - #169346

Merged
steipete merged 10 commits into
mainfrom
codex/qa1055-latest-runtime
Oct 12, 2026
Merged

steipete merged 10 commits into
mainfrom
codex/qa1055-latest-runtime

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Ordinary chat tool output eagerly loaded the plugin view host, and selected plugin views could lose local state when the transcript was hidden and shown again. This repairs the existing lazy-loading and retained-view behavior.

User Impact

Built-in tool output stays synchronous. A selected plugin renderer retains its mounted view and local draft while parked, then resolves current application context on reconnect. Deselecting or changing its provider retires the prior view and authority. No settings, protocol, storage, or migration changes.

Implementation

The Solid tool-result renderer uses the existing tool-result selector. Its directive resolves context from an attached Lit host or retained Solid marker, releases subscriptions while hidden, and retains the facts needed by the parked view. Keeping nested asynchronous directives inside their template preserves their connection registration. Two obsolete one-line component facades are removed, with all callers importing the existing TSX owners directly; this keeps New Session code out of ordinary Chat. Upstream live-translation behavior and boot grouping are preserved. The boot manifest is regenerated through its owner, with unchanged budgets.

Two test fixture corrections preserve their original assertions. Cloud placement now emits complete admitted Gateway snapshots and holds the initial descriptor pending instead of expecting obsolete payloadless events and repeated descriptor reads. Pasted-text preview assertions wait for real custom-element registration and its first update, since the tag exists while the module is still loading. No retries, longer timeouts, or weaker assertions are added.

Evidence

  • The original plugin selection and parking regressions fail before repair. Mounted tests cover retained view, signal and draft, deselection, provider changes, context replacement, and final disposal. Fresh integration on main e158fc392cc passes 49 tests across five affected plugin/interop/composer/New Session files in 18.370 s.
  • The integrated boot manifest generation passes in 51.560 s, UI build in 18.121 s, and strict performance in 0.386 s: 31 Chat / 28 New Session JavaScript requests against the unchanged 35-request budget. No performance baseline is changed.
  • The preview's controlled real-module import gate exposes an unregistered tag and makes the original one-second behavior predicate fail; releasing the module then permits all 11 original cases. The ordinary corrected file passes 11/11 in 8.707 s. Owning UI-pages types pass 84.1 s, scoped lint 10.968 s, formatting and diff checks pass. Broader UI type expansion was intentionally stopped after four completed graphs; the interrupted/unrun graphs are not claimed passing.
  • Earlier unchanged-scope proof: 30 mounted plugin/host/interop cases (10.505 s); 15 browser boot-boundary cases (92.319 s); 315 migrated-caller cases across 12 files (31.478 s); full Gateway build (243.764 s); selected production/test types, lint, stylelint and mock ratchet.

Inspected synthetic screenshots

These captures show unchanged ordinary tool output. Selected-plugin parking and provider handoff are covered by mounted regression assertions, not these screenshots.

Before After
Ordinary tool output before lazy plugin repair Ordinary tool output after lazy plugin repair

CI, Review, and Limitations

The CI attempt at 44e83d7 failed the first pasted-text preview case in checks-ui (3/3); 7,514 sibling cases passed and two were skipped. A local replay with the checksum-pinned CI Bun passed 571 files / 7,517 cases plus two skips in 218.103 s. That replay used the original selectors, not the exact CI merge tree, and is not claimed to prove a fix. The controlled registration proof establishes a real fixture defect; the exact hosted cold-load condition remains unproven. Cancelled sibling jobs remain unrun coverage.

ClawSweeper at 44e83d7 reported no introduced code findings but requested failure attribution; the investigations and their remaining uncertainty are recorded above. The complete prior candidate and preview correction passed independent P0–P2 review. Fresh complete integration review against e158fc392cc is also clean, with no actionable P0–P2 findings. Main independently landed the archive actionability repair and stronger regression in 55cdee6967b; both upstream files are retained wholesale, and that superseded delta is removed from this PR. The conflict-only refresh incorporates main through b9119c5435b; every remaining PR path is byte-identical to the freshly reviewed and tested 491d8745f13 candidate. The earlier auto-merge request was explicitly retired; native recovery preserves its record.

Historical real openai/gpt-5.6-luna Gateway proof at 1478e25 separately verifies final-answer persistence and a tool-created/read synthetic file. That is service-level evidence for the older head. The browser tool rejected reloading its old error page under URL policy, so this updated candidate does not claim fresh human browser proof.

@steipete
steipete marked this pull request as ready for review October 11, 2026 20:39
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR restores lazy tool rendering and preserves selected plugin views across transcript hiding and restoration.

Example: A selected read-tool renderer contains the local draft “Retained plugin draft” when the transcript is hidden and restored.

  • Before: Updating the parked range can replace the mounted view and lose its draft.
  • After: The view and draft survive parking, while reconnection resolves the current application context.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, coherent repair with meaningful lifecycle coverage and passing UI unit checks, but limited direct browser evidence for the changed behavior.
Proof confidence 🦐 gold shrimp (3/6) The supplied maintainer-authored classification exempts the ordinary contributor proof gate; selected-view behavior has mounted integration coverage, while the inspected after image is avatar-only and older service proof does not exercise this repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Ordinary tool output loads unnecessary plugin code, and selected plugin views can lose local drafts when their transcript is parked.
Reason: The existing feature owner restores documented rendering and retention behavior without adding settings, persisted formats, or public contracts.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: current main still needs the lazy-rendering and retained-view repair, no introduced defect was found, and all three UI unit shards now pass on the reviewed head.

Priority: P2
Reviewed head: cdec58a6cdd3245bd6ede39622e9fda6a8511540

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Selected-tool draft retention and provider handoff have mounted integration coverage rather than supplied browser-flow evidence.
Agent review details

How this fits together

The Control UI passes prepared tool results through a shared selector that chooses built-in output or a selected plugin view and follows presentation, context, and disposal lifecycles.

flowchart TD
  A[Prepared tool result] --> B[Solid message row]
  B --> C[Shared surface selector]
  D[Plugin registry] --> C
  C --> E[Built-in output]
  C --> F[Selected plugin view]
  G[Presentation lifecycle] --> C
Loading

Technical review

Best possible solution:

Keep the existing selector and lifecycle owners responsible for lazy rendering, retained state, and view retirement.

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

Current-main source shows eager hosting and runtime clearing during disconnection, and the author reports the mounted regression failing before repair; this review ran no target code.

Is this the best way to solve the issue?

Reusing the shared selector repairs the owning boundary, and migrating every facade caller completes the internal cutover without changing the public plugin SDK.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Standalone tool-result hosting changes intended behavior with a stated reason (4e3818b: The transcript migration accepted eager registration to avoid a second asynchronous registration lifecycle; this PR explains using the existing selector and loader instead.)
  • Plugin surface context and retention keeps the original intent (6a97159: The plugin feature established synchronous built-ins, selected replacement mounts, composition, and lifetime-owned disposal.)
  • Presentation binding keeps the original intent (96dbb3a: Hidden panes preserve mounted state while independently retiring presentation-bound operations; livePresentation remains in use.)
  • Composer component facades keeps the original intent (07384e0: The composer migration moved implementations to Solid and retained internal reexports; migrating their callers completes the transition.)
  • Cloud-placement fixture keeps the original intent (7ed76ab: The fixture protects startup boundaries; the revised events retain visible phase assertions while following admitted snapshots and coalesced descriptor refreshes.)
  • Generated boot inventory keeps the original intent (11828a0: Route-reachable module membership preserves lazy boundaries and startup budgets, which this PR retains.)
  • Pasted-text preview assertions keeps the original intent (9e21f72: The fixture protects exact pasted content and preview cleanup; awaiting registration preserves those assertions.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +16, Tests +239, Other -2. Total +253 across 29 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 13 69 53 +16
Tests 15 285 46 +239
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 2 -2
Total 29 354 101 +253

Review metrics

Metric Value Why it matters
Production versus test growth Production +18 net lines; tests and support +239 net lines. Growth provides mounted lifecycle regression coverage and focused fixture corrections; generated inventory and mock baseline are excluded.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.

Label justifications:

  • P2: Unnecessary startup loading and lost plugin-local drafts affect a limited Control UI surface without evidence of a core availability or first-run blocker.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Optionally record a selected tool renderer retaining its draft across hide/show and retiring the old view after a provider change, with private details redacted.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-11T21:09:53.676Z sha b3d3411 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T00:32:33.654Z sha 621d737fcf0cd155bba9e4aab4daee48be71f650 :: needs changes before merge. :: none
  • reviewed 2026-10-12T00:59:12.360Z sha 0c2782f :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T01:24:38.595Z sha 0c2782f :: needs changes before merge. :: none
  • reviewed 2026-10-12T05:11:58.778Z sha aa2e82a :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T05:26:15.099Z sha aa2e82a :: needs changes before merge. :: none
  • reviewed 2026-10-12T05:45:58.064Z sha 44e83d7 :: needs changes before merge. :: none
  • reviewed 2026-10-12T06:10:17.510Z sha 44e83d7 :: needs changes before merge. :: none

Reviewed October 12, 2026, 2:48 AM ET / 06:48 UTC (Revision 10).

@steipete steipete changed the title fix(ui): keep tool plugin runtime off the default chat path fix(ui): restore chat rendering across Solid boundaries Oct 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 11, 2026
obviyus added a commit that referenced this pull request Oct 12, 2026
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-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. #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. No overlap with Pash/Sarah changes.

## Evidence

- Baseline `a9b40cf325e`: all **20 reported failures reproduced** across eight files (116 other cases passed).
- Rebased onto current main, including #169439 and #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 |
| --- | --- |
| ![Expanded activity missing nested calls](https://github.com/user-attachments/assets/28225f6e-0c93-4bc6-a2bc-6a6467f4e138) | ![Expanded activity displaying nested calls](https://github.com/user-attachments/assets/81afcf4b-f661-4e61-a923-c6fbfed2ad58) |
| ![Opened lone step missing nested calls](https://github.com/user-attachments/assets/8858d53c-456e-4f6f-91e2-326a0a586a61) | ![Opened lone step displaying nested calls](https://github.com/user-attachments/assets/d12fce94-8055-4483-bf4a-db81ef527a03) |

<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]>
@steipete
steipete force-pushed the codex/qa1055-latest-runtime branch from b3d3411 to 621d737 Compare October 12, 2026 00:23
@steipete steipete changed the title fix(ui): restore chat rendering across Solid boundaries fix(ui): keep tool rendering lazy and preserve hidden plugin views Oct 12, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
steipete added a commit that referenced this pull request Oct 12, 2026
Flush Solid after the fixture reconnects its transcript, matching the existing chat render helper. Main's presentation-gated images now commit after connection, so the immediate query saw a valid intermediate state. Preserve every custody, sender, image identity and promotion assertion.

Reproduced all four failures on the CI merge base and clean current main without the plugin repair in #169346. Exact Bun UI check now passes all seven cases (9.302s wall); pnpm test file --maxWorkers=1 passes in 25.122s. Scoped format, typed lint and independent P0-P2 review pass.
Render ordinary tool output through its synchronous built-in owner and mount the plugin host only for a selected replacement. Resolve plugin context from retained Solid ranges, preserve selected view state while parked, and reacquire current context before reconnecting.

Regenerate the boot graph, including already-landed Solid owner moves. Chat meets the unchanged 35-request budget. Mounted lifecycle and sibling tests: 29 passed; changed-file wall 12.206s, added case 101ms. Desktop/mobile bundled Code Mode proof, production/test types, scoped checks, and independent P2 review pass.
@steipete
steipete force-pushed the codex/qa1055-latest-runtime branch from 621d737 to 0c2782f Compare October 12, 2026 00:53
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@steipete
steipete enabled auto-merge (squash) October 12, 2026 01:02
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
@steipete
steipete disabled auto-merge October 12, 2026 02:18
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
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 |
| --- | --- |
| ![Expanded activity missing nested calls](https://github.com/user-attachments/assets/28225f6e-0c93-4bc6-a2bc-6a6467f4e138) | ![Expanded activity displaying nested calls](https://github.com/user-attachments/assets/81afcf4b-f661-4e61-a923-c6fbfed2ad58) |
| ![Opened lone step missing nested calls](https://github.com/user-attachments/assets/8858d53c-456e-4f6f-91e2-326a0a586a61) | ![Opened lone step displaying nested calls](https://github.com/user-attachments/assets/d12fce94-8055-4483-bf4a-db81ef527a03) |

<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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
Flush Solid after the fixture reconnects its transcript, matching the existing chat render helper. Main's presentation-gated images now commit after connection, so the immediate query saw a valid intermediate state. Preserve every custody, sender, image identity and promotion assertion.

Reproduced all four failures on the CI merge base and clean current main without the plugin repair in openclaw#169346. Exact Bun UI check now passes all seven cases (9.302s wall); pnpm test file --maxWorkers=1 passes in 25.122s. Scoped format, typed lint and independent P0-P2 review pass.
The resolved tree exactly matches independently reviewed candidate 9d5f9ada5d7331fac7689e4ccfe6455d8b0a65a2. This preserves the published PR ancestry; no new source changes.
Hold the initial descriptor while publishing complete placement snapshots from the existing Gateway event builder. Assert visible provisioning, workspace preparation and startup phases without premature sends. This replaces the obsolete assumption that each event performs another parent describe read.

Refresh the generated boot inventory after main component migrations and retain the shared tool-result selector export used by the lazy Solid path. Latest main integration passes 30 mounted owner cases and all 15 browser boot-boundary cases, plus UI production/test types and scoped checks. Fresh full-candidate P2 review is clean.
Complete the direct Solid component cutover by removing two obsolete re-export facades and migrating every caller. Preserve mock exports and all assertions. Strict Chat startup returns from 37 JavaScript requests to the existing 35-request budget; 315 affected tests, UI types, scoped checks and fresh independent review pass.
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
The one-shot session action helper hit-tests without scrolling or waiting
for an actionable control. A visible enabled button below the viewport is
therefore rejected before activation. Use Playwright's actionability-only
trial before the unchanged synchronous guard and one real activation.

The new browser regression fails on the old helper and passes in 278ms;
12 archive and sibling action cases pass in 56.850s wall. UI E2E types,
scoped typed lint, formatting and diff checks pass.

Independent review raised an immediate-readiness timing concern. Rejected
after inspecting the introducing change and callers: this helper performs
a user action, while permission tests assert denial independently. Bounded
native readiness waiting is intended; no timeout or retry setting changes.

The hosted archived-session guard failure lacked diagnostics identifying
which condition failed. Its exact branch was not reproduced; the offscreen
regression proves the helper defect without claiming that CI was offscreen.
Wait for the real detail-panel custom element and its first update before
checking pasted-text fetch, download and content behavior. The rendered tag
can exist while its module is still loading; no assertion or timeout changes.

A controlled real-module gate fails the original one-second predicate before
registration, then preserves all 11 existing cases after release. The candidate
file passes 11/11 in 8.707s wall with the pinned CI Bun. Fresh P2 review is clean.
The exact cold-load cause of the original hosted timeout remains unproven.
Baseline-Refresh: b6cd37b6d37242181ba99e22e3c9c7144faf55e4
Regenerate through the canonical manifest owner after combining the lazy plugin repair with current main chunk grouping. UI build and strict performance pass at31 Chat and28 New Session requests. All49 affected plugin, interop, composer and preview tests pass; fresh complete P2 review is clean.
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 12, 2026
@steipete
steipete merged commit 9b97574 into main Oct 12, 2026
93 checks passed
@steipete
steipete deleted the codex/qa1055-latest-runtime branch October 12, 2026 06:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…penclaw#169346)

* fix(ui): keep tool replacements lazy across Solid boundaries

Render ordinary tool output through its synchronous built-in owner and mount the plugin host only for a selected replacement. Resolve plugin context from retained Solid ranges, preserve selected view state while parked, and reacquire current context before reconnecting.

Regenerate the boot graph, including already-landed Solid owner moves. Chat meets the unchanged 35-request budget. Mounted lifecycle and sibling tests: 29 passed; changed-file wall 12.206s, added case 101ms. Desktop/mobile bundled Code Mode proof, production/test types, scoped checks, and independent P2 review pass.

* build(ui): refresh boot inventory after main repairs

* test(ui): drive cloud placement through admitted snapshots

Hold the initial descriptor while publishing complete placement snapshots from the existing Gateway event builder. Assert visible provisioning, workspace preparation and startup phases without premature sends. This replaces the obsolete assumption that each event performs another parent describe read.

Refresh the generated boot inventory after main component migrations and retain the shared tool-result selector export used by the lazy Solid path. Latest main integration passes 30 mounted owner cases and all 15 browser boot-boundary cases, plus UI production/test types and scoped checks. Fresh full-candidate P2 review is clean.

* fix(ui): avoid loading new-session chunks for ordinary chat

Complete the direct Solid component cutover by removing two obsolete re-export facades and migrating every caller. Preserve mock exports and all assertions. Strict Chat startup returns from 37 JavaScript requests to the existing 35-request budget; 315 affected tests, UI types, scoped checks and fresh independent review pass.

* test(ui): wait for actionable self-removing session controls

The one-shot session action helper hit-tests without scrolling or waiting
for an actionable control. A visible enabled button below the viewport is
therefore rejected before activation. Use Playwright's actionability-only
trial before the unchanged synchronous guard and one real activation.

The new browser regression fails on the old helper and passes in 278ms;
12 archive and sibling action cases pass in 56.850s wall. UI E2E types,
scoped typed lint, formatting and diff checks pass.

Independent review raised an immediate-readiness timing concern. Rejected
after inspecting the introducing change and callers: this helper performs
a user action, while permission tests assert denial independently. Bounded
native readiness waiting is intended; no timeout or retry setting changes.

The hosted archived-session guard failure lacked diagnostics identifying
which condition failed. Its exact branch was not reproduced; the offscreen
regression proves the helper defect without claiming that CI was offscreen.

* test(ui): await lazy preview registration before assertions

Wait for the real detail-panel custom element and its first update before
checking pasted-text fetch, download and content behavior. The rendered tag
can exist while its module is still loading; no assertion or timeout changes.

A controlled real-module gate fails the original one-second predicate before
registration, then preserves all 11 existing cases after release. The candidate
file passes 11/11 in 8.707s wall with the pinned CI Bun. Fresh P2 review is clean.
The exact cold-load cause of the original hosted timeout remains unproven.

* build(ui): regenerate boot membership after integration

Regenerate through the canonical manifest owner after combining the lazy plugin repair with current main chunk grouping. UI build and strict performance pass at31 Chat and28 New Session requests. All49 affected plugin, interop, composer and preview tests pass; fresh complete P2 review is clean.
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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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