Skip to content

fix(ui): keep Canvas previews stable after history hydration - #138155

Merged
obviyus merged 3 commits into
openclaw:mainfrom
JosephNatsu:fix/control-ui-widget-history-stability
Sep 4, 2026
Merged

obviyus merged 3 commits into
openclaw:mainfrom
JosephNatsu:fix/control-ui-widget-history-stability

Conversation

@JosephNatsu

@JosephNatsu JosephNatsu commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #138102
Related: #27085

What Problem This Solves

One inline Canvas view could appear more than once when Control UI hydrated history. A separate startup race could leave restored cards showing an HTTP 401 document instead of the widget.

The shipped show_widget contract promises direct inline rendering and restoration after reload.

Why This Change Was Made

The same view can reach the UI through its tool result, an assistant embed shortcode, and a structured Canvas block added by Gateway history projection. Message normalization now keeps the structured representation, including its sandbox and dashboard metadata. The chat-item builder does not lift another tool-result preview when that turn already contains the matching assistant preview. ID and URL comparisons remain separate.

The iframe owner also follows renewed URLs while a frame is pending or failed. Once the trusted widget bridge initializes, it preserves that loaded document and its interactive state. An HTTP error page firing load is not treated as a working widget.

Gateway history projection remains intact for other clients. The repair does not impose a separate assistant-group layout, change persistence or schemas, change the protocol or product configuration, or alter authentication, capability expiry, or MCP App grants. Bridge-disabled frames remain refreshable; no sandbox permission is added to detect initialization.

User Impact

Each intended inline view renders once after hydration, reload, and Gateway restart. Restored HTML remains visible and usable. Existing persisted widgets reopen without a migration.

This builds on @JosephNatsu's report, identity matching, and regression coverage. Contributor commits remain in the branch history. The additional repair and verification are AI-assisted.

Evidence

Real configured agent, built-in show_widget, harmless inline HTML, pin:false, and presentation.target:"assistant_message". Runs finished normally. No mock Gateway, mock provider, synthetic transcript, or direct tool invocation supplied this product proof.

  • Baseline main: e4bba0813e7a12bc23294c60193002750df4c792.
  • Candidate: 62251095249732eac1807694e82ebef2a9cfa6a0.
  • Isolated Blacksmith proof: run 33863839245.
Real product scenario Baseline Candidate
One returned view, settled 2 rendered cards 1 working card
One returned view, reload 3 cards, denied content 1 working, interactive card
Two returned views, settled 4 cards 2 working cards
Two returned views, reload 6 cards, denied content 2 working cards
Two views, isolated restart and reload 6 cards, denied content 2 working cards; detail control works

Counts are rendered widget frames, not raw tool disclosures. Actual tool arguments, returned view identities, and history responses were retained privately. A baseline-created widget was also reopened successfully on the candidate.

Before: one view produced two cards.

One returned widget rendered twice before the fix

After reload: one working card, with its detail control open.

One working widget after reload

After an isolated Gateway restart and reload: two working cards, with the second detail control open.

Two working widgets after Gateway restart and reload

The access policy remains enforced: a loaded document can retain an expired URL, while new document loads use the current capability. Refetching an expired URL is not used as a test of an already loaded widget.

Validation:

  • Focused UI unit tests: 354 passed, including existing prompt-channel tests.
  • Existing browser suite: 3 passed.
  • New duplicate and pending/failed-frame regressions failed before the repair.
  • Exact candidate pnpm build: passed, including Control UI and bundle limits.
  • Selected changed-file checks: passed, including all 16 core-test type groups, UI type checking, dead-export scans, core lint, script lint, formatting, and guards.
  • Fresh pre-commit Autoreview: no actionable findings at its P0 threshold.
  • Exact-head LandPR review: passed with no actionable P0 findings.
  • Exact-head CI run 33870926434 failed only checks-node-compact-large-2. Its three unchanged Code Mode denial tests also fail on main run 33871141796. The same cases report the same missing manager.getAppendParentId and agents errors. These agent-runner files are outside this UI diff; no unrelated test or authorization behavior was changed.

Production: +149/-97 (net +52). Tests: +377/-4. One shrink-only assertion-baseline entry is separate test-tool accounting. The added production code owns normalization of the three observed representations and pending-versus-initialized frame lifetime; duplicate identity helpers and special grouping paths were removed.

The stored-data-model warning does not describe this diff: stored data, schemas, and migrations are unchanged, and the existing persisted-session reopen was exercised. The MCP App host and grants were not changed; no external MCP server was needed for the built-in HTML proof.

Commands run on the isolated proof worker
pnpm build

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui.config.ts --configLoader runner \
  ui/src/pages/chat/chat-thread.test.ts \
  ui/src/lib/chat/message-normalizer.test.ts \
  ui/src/pages/chat/components/widget-card.test.ts \
  ui/src/pages/chat/components/chat-tool-cards.widget-prompts.test.ts

PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium \
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner \
  ui/src/e2e/chat-live-final-order.e2e.test.ts

node scripts/check-changed.mjs --timed -- \
  config/assertion-safety-baseline.txt \
  ui/src/e2e/chat-live-final-order.e2e.test.ts \
  ui/src/lib/chat/message-normalizer.test.ts \
  ui/src/lib/chat/message-normalizer.ts \
  ui/src/pages/chat/chat-thread-build.ts \
  ui/src/pages/chat/chat-thread-items.ts \
  ui/src/pages/chat/chat-thread.test.ts \
  ui/src/pages/chat/components/widget-card.test.ts \
  ui/src/pages/chat/components/widget-card.ts

@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 7:03 AM ET / 11:03 UTC.

ClawSweeper review

What this changes

The PR keeps persisted Canvas and MCP App previews at their producing tool positions, removes the matching assistant-message copy, and preserves preview identity across history hydration.

Merge readiness

⛔ Blocked before merge - 2 items remain

The updated head addresses the prior Canvas-equivalence finding and remains a focused, useful fix for the linked Control UI bug. No blocking correctness or security finding was identified; the PR should remain open for normal exact-head CI and maintainer flow.

Priority: P2
Reviewed head: ea4adf4da659bbedb96ead46e23750258b24e78e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary fix with strong targeted regression coverage and supplied after-fix UI evidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed production owner is the Control UI chat-item builder and grouping path. The contributor supplied before/after captures of the built Control UI with an asserted isolated real Gateway, showing the two Canvas rows before the final reply across reload; the checked-in mock-Gateway browser test and unit fixtures supplement that behavior. DNS prevented this reviewer from opening the linked captures, but that environment limitation does not invalidate the supplied after-fix evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed production owner is the Control UI chat-item builder and grouping path. The contributor supplied before/after captures of the built Control UI with an asserted isolated real Gateway, showing the two Canvas rows before the final reply across reload; the checked-in mock-Gateway browser test and unit fixtures supplement that behavior. DNS prevented this reviewer from opening the linked captures, but that environment limitation does not invalidate the supplied after-fix evidence.
Evidence reviewed 7 items UI owner-boundary repair: The builder lifts a persisted Canvas tool result into its own assistant row, records its namespaced view-ID and URL identities, and removes only matching Canvas blocks from the next assistant message.
Stable grouping boundary: Synthetic Canvas assistant messages are marked at creation and split from neighboring assistant rows, while ordinary assistant-authored Canvas blocks retain their former grouping behavior.
Gateway contract checked: Gateway history intentionally appends pending Canvas previews to the next renderable assistant message and already treats matching view IDs or URLs as the same preview; the UI change consumes that projection rather than altering persistence or protocol behavior.
Findings None None.
Security None None.

How this fits together

Control UI converts Gateway history and live tool results into ordered chat transcript rows. Canvas previews can be represented by a tool-result row and by a Gateway-added assistant-message block, so the UI builder must deduplicate them without changing their causal position.

flowchart LR
  A[Gateway chat history] --> B[Chat item builder]
  C[Live tool results] --> B
  B --> D[Canvas identity and deduplication]
  D --> E[Assistant row grouping]
  E --> F[Control UI transcript]
Loading

Before merge

  • Resolve merge risk (P1) - The two linked after-fix captures could not be independently opened because this review environment cannot resolve github.com; their stated real-Gateway setup remains the only unavailable-to-this-reviewer portion of otherwise focused proof.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +85, Tests +239. Total +324 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 94 9 +85
Tests 2 239 0 +239
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 333 9 +324

Review metrics

Metric Value Why it matters
Production versus regression coverage production +94/-9 (net +85); tests +239/-0 The production growth is confined to Canvas identity, duplicate removal, and grouping ownership, with unit and browser regressions for the affected hydration path.

Stored data model

Persistent data-model change detected: unknown-data-model-change: ui/src/pages/chat/chat-thread-items.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #138102
Summary: This PR is the concrete candidate repair for the Canvas-specific hydration defect reported by the canonical issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Accept the supplied UI captures (recommended)
    The contributor has supplied redacted before/after real-Gateway Control UI evidence; the remaining inability to fetch it is local reviewer infrastructure, not a demonstrated product defect.

Technical review

Best possible solution:

Keep Canvas equivalence, transcript-row identity, and synthetic-row grouping together in the Control UI projection path, with the existing focused regressions protecting the Gateway-produced history shape.

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

Yes—source and focused regression fixtures reconstruct the multi-preview persisted-history shape that creates duplicated and regrouped Canvas rows; this external contributor branch was not executed locally.

Is this the best way to solve the issue?

Yes—the patch repairs the Control UI projection and grouping owners while preserving Gateway history projection, protocol, persistence, and ordinary assistant-authored Canvas grouping.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 98b1a1fcb5e4.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the Control UI chat-item builder and grouping path. The contributor supplied before/after captures of the built Control UI with an asserted isolated real Gateway, showing the two Canvas rows before the final reply across reload; the checked-in mock-Gateway browser test and unit fixtures supplement that behavior. DNS prevented this reviewer from opening the linked captures, but that environment limitation does not invalidate the supplied after-fix evidence.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed production owner is the Control UI chat-item builder and grouping path. The contributor supplied before/after captures of the built Control UI with an asserted isolated real Gateway, showing the two Canvas rows before the final reply across reload; the checked-in mock-Gateway browser test and unit fixtures supplement that behavior. DNS prevented this reviewer from opening the linked captures, but that environment limitation does not invalidate the supplied after-fix evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed production owner is the Control UI chat-item builder and grouping path. The contributor supplied before/after captures of the built Control UI with an asserted isolated real Gateway, showing the two Canvas rows before the final reply across reload; the checked-in mock-Gateway browser test and unit fixtures supplement that behavior. DNS prevented this reviewer from opening the linked captures, but that environment limitation does not invalidate the supplied after-fix evidence.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded fix for duplicate and reordered Canvas previews in the Control UI transcript.
  • merge-risk: 🚨 other: The only remaining merge-relevant uncertainty is independent access to the contributor's linked real-Gateway visual captures.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed production owner is the Control UI chat-item builder and grouping path. The contributor supplied before/after captures of the built Control UI with an asserted isolated real Gateway, showing the two Canvas rows before the final reply across reload; the checked-in mock-Gateway browser test and unit fixtures supplement that behavior. DNS prevented this reviewer from opening the linked captures, but that environment limitation does not invalidate the supplied after-fix evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the Control UI chat-item builder and grouping path. The contributor supplied before/after captures of the built Control UI with an asserted isolated real Gateway, showing the two Canvas rows before the final reply across reload; the checked-in mock-Gateway browser test and unit fixtures supplement that behavior. DNS prevented this reviewer from opening the linked captures, but that environment limitation does not invalidate the supplied after-fix evidence.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed production owner is the Control UI chat-item builder and grouping path. The contributor supplied before/after captures of the built Control UI with an asserted isolated real Gateway, showing the two Canvas rows before the final reply across reload; the checked-in mock-Gateway browser test and unit fixtures supplement that behavior. DNS prevented this reviewer from opening the linked captures, but that environment limitation does not invalidate the supplied after-fix evidence.

Evidence

What I checked:

  • UI owner-boundary repair: The builder lifts a persisted Canvas tool result into its own assistant row, records its namespaced view-ID and URL identities, and removes only matching Canvas blocks from the next assistant message. (ui/src/pages/chat/chat-thread-build.ts:203, ea4adf4da659)
  • Stable grouping boundary: Synthetic Canvas assistant messages are marked at creation and split from neighboring assistant rows, while ordinary assistant-authored Canvas blocks retain their former grouping behavior. (ui/src/pages/chat/chat-thread-grouping.ts:101, ea4adf4da659)
  • Gateway contract checked: Gateway history intentionally appends pending Canvas previews to the next renderable assistant message and already treats matching view IDs or URLs as the same preview; the UI change consumes that projection rather than altering persistence or protocol behavior. (src/gateway/chat-display-projection.canvas.ts:295, ea4adf4da659)
  • Regression coverage: Added unit coverage checks two persisted previews plus an assistant-only preview, URL-only duplicate identity, and live-to-history key stability; the browser regression checks layout before and after reload. (ui/src/pages/chat/chat-thread.test.ts:4501, ea4adf4da659)
  • Current-main provenance: The PR head is not an ancestor of fetched main; both branches share merge base c861706, and the path-limited main history from that base to fetched main contains no changes to the five reviewed UI paths. The fix is therefore not already implemented on main. (98b1a1fcb5e4)
  • Area history: Recent merged history shows Peter Steinberger repeatedly maintaining Control UI transcript composition, grouping, and history handoff before this contributor branch. (ui/src/pages/chat/chat-thread-build.ts:157, 3661c68500d3)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-04T10:00:49.741Z sha 7f8dd45d1b27234a29733216854a2d6d136385c1 :: needs real behavior proof before merge. :: [P2] Match Gateway's Canvas duplicate equivalence

Keep tool-result Canvas previews at their causal transcript positions, remove only matching Gateway-embedded copies, and preserve row identity across live-to-history hydration. Add unit and browser reload regressions for multiple previews.\n\nRefs openclaw#138102
Treat matching Canvas view IDs or URLs as the same artifact when removing the Gateway's assistant-message history copy. Keep identifier namespaces distinct and cover the URL-only history shape reported in review.\n\nRefs openclaw#138102
@JosephNatsu
JosephNatsu force-pushed the fix/control-ui-widget-history-stability branch from 7f8dd45 to ea4adf4 Compare September 4, 2026 10:50
@JosephNatsu

Copy link
Copy Markdown
Contributor Author

Addressed the P2 Canvas equivalence finding in ea4adf4:

  • Control UI now compares both namespaced viewId and URL identities, matching Gateway behavior without cross-field collisions.
  • Added a regression where the tool preview carries viewId + URL while the assistant history copy carries only the matching URL.
  • Unit suite: 246/246 passed. Browser regression: 3/3 passed. check:changed passed. Fresh autoreview through P2 found no actionable findings.

Real behavior proof used the actual built Control UI and an isolated real Gateway on localhost; only the model provider was deterministic. The same persisted session was checked before reload and after history hydration. Both captures have exactly two Canvas previews in Canvas → Canvas → final reply order.

Before reload:
Real Gateway Control UI before reload

After reload:
Real Gateway Control UI after reload

The stored-data-model warning is a false positive: this PR changes only ephemeral Control UI projection helpers and does not add or modify a persisted schema or migration.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 4, 2026
@obviyus

obviyus commented Sep 4, 2026 •

Copy link
Copy Markdown
Collaborator

Thanks @JosephNatsu — I kept both contributor commits and completed the real-agent restoration proof on 62251095249732eac1807694e82ebef2a9cfa6a0.

The real flow also exposed an assistant embed-text copy and a pending iframe retaining an expired capability. The repair now normalizes those view representations and refreshes uninitialized frames, without adding a grouping policy or changing authentication, grants, or stored data.

  • One returned view: one working card after reload; its detail control works.
  • Two returned views: two working cards after reload and an isolated Gateway restart; the second detail control works.
  • A baseline-created widget also reopens on this head.
  • Exact build, selected checks, 354 unit tests, and 3 browser tests passed on Blacksmith run 33863839245.

The PR body now contains the inspected, cropped before/after images, exact commands, and the baseline/head evidence. This also addresses the unavailable-image concern and the stored-data-model warning: there is no schema or migration change.

Exact-head LandPR review passed. CI run 33870926434 failed only checks-node-compact-large-2, on three unchanged cases in src/agents/embedded-agent-runner/run/attempt.tool-search-catalog-abort.test.ts. The same cases and errors are present on main run 33871141796. No unrelated agent-runner tests or authorization behavior were changed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deduplication is at the right identity boundary. Keeping the structured Canvas block while suppressing matching shortcode/tool previews avoids losing sandbox metadata.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@obviyus
obviyus merged commit 6b25e18 into openclaw:main Sep 4, 2026
174 of 177 checks passed
@obviyus

obviyus commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Thanks @JosephNatsu!

Landed in 6b25e1840775 from verified head 622510952497. Contributor authorship and Ayaan's co-author credit are preserved.

Proof: A real configured agent called built-in show_widget with harmless inline HTML. One- and two-widget cases passed reload; the two-widget case also passed an isolated Gateway restart. Detail controls worked after reload and restart.

  • Bug: Tool results, embed text, and structured history could render extra copies; a pending frame could retain an expired URL.
  • Fix: Normalize each view's representation and refresh uninitialized frames while preserving initialized documents.
Before After
One/two views produced 3/6 cards after reload, with denied content. One card per view, with working content and detail controls after reload/restart.

Validation: 354 unit tests, 3 browser tests, exact build, selected checks, and exact-head LandPR review passed.

LandPR used its verified-unrelated-CI exception for this unchanged agent-runner failure:

failed: checks-node-compact-large-2 job=101017009269 conclusion=failure

The same three Code Mode cases and errors also fail on main run 33871141796. No unrelated test or authorization behavior was changed.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
…138155)

Restore one inline Canvas preview per view after history hydration, reload, and Gateway restart.

Prefer the structured assistant preview over equivalent tool-result and embed-text representations. Refresh a pending or failed iframe when its capability renews, while preserving an initialized widget's document and interactive state.

Keep authentication, grants, persistence, protocol, configuration, and ordinary assistant grouping unchanged.

Closes openclaw#138102.

Co-authored-by: Ayaan Zaidi <[email protected]>
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 merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

[Bug]: Control UI duplicates and regroups assistant-message Canvas previews after history hydration

3 participants