Skip to content

fix: load chat widgets behind authenticated gateways - #138074

Merged
steipete merged 9 commits into
mainfrom
codex/unify-widget-loading
Sep 4, 2026
Merged

steipete merged 9 commits into
mainfrom
codex/unify-widget-loading

Conversation

@steipete

@steipete steipete commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Interactive chat widgets showed Chrome’s blocked-page error behind an authentication proxy even when the same widget rendered in the dashboard sidebar. Direct iframe navigation was reaching an unframeable login page.

Why This Change Was Made

Chat now reads managed scripted Canvas HTML through its authenticated Gateway connection and uses the same sandbox loader as dashboards. Loading and pinning share the effective sandbox policy, including documented [embed ref="…" /] messages with no explicit sandbox field. Strict previews stay script-free. The loader overlaps source retrieval with sandbox startup, deduplicates concurrent inline reads within a connection generation, preserves mounted state, and exposes retry after a failed load.

The dedicated sandbox keeps widget content in an opaque-origin inner frame. Inline views receive only their prompt channel; dashboard tickets and grants remain with the dashboard. Saved A2UI widgets load declared public static renderer assets from the sandbox origin. Public asset paths are globally exclusive across all registered content kinds, including private registrations; existing private/private capability-scoped paths retain their contract. Public reader paths must match their URL pathname exactly and cannot claim the sandbox endpoint; private capability URL encoding remains unchanged. The additive Canvas RPC is appended to preserve existing advertised method indices. Canvas reads are bounded and reject filesystem aliases.

Production grows by 698 lines for the missing authenticated renderer/RPC and explicit public asset boundary; the shared board host removes 86 lines. Tests/support grow by 1,372 lines. No dependency, configuration option, stored-data schema, or protocol version is added.

User Impact

Default shortcode and explicitly scripted widgets load behind authentication proxies and retain input, size, and theme during streaming updates and Chat/Dashboard swaps. Dashboard source retrieval no longer waits for sandbox readiness, and ticket renewal keeps its existing behavior.

Evidence

  • Confirmed pre-fix failures for protected inline navigation, eager source loading, filesystem alias/bounds checks, omitted sandbox policy, and public/private resource collisions in both registration orders.
  • Fresh pnpm build:ci-artifacts passed on 8b5e682f081 in 2m11.7s: runtime, all 90 local plugins, public SDK declarations/exports, and paired UI. Startup JavaScript is 349,348 bytes gzip, within the 350,141-byte limit.
  • Final Chromium proof passed all 14 cases across five files in 42.94s on that fresh build: actual [embed ref] input, authenticated reads, persisted HTML/A2UI, opaque isolation, separate prompt/dashboard authority, tall sizing, theme/streaming retention, both Chat/Dashboard swaps, and history reload without duplicate previews.
  • The final 696f166efdb follow-up only regenerates Android method ordering; all web/Gateway sources are byte-identical to the live-tested build. pnpm protocol:check passes, including Swift/Kotlin generation, registry coverage, and release-train checks.
  • Integration with main's restored widget-frame lifecycle passed 598 focused tests. The final namespace/order repair passed 66 tests, including seven public-path rejections that failed before repair, both ordering regressions, and positive private-resource compatibility cases. Targeted type-aware lint passes. Whole-candidate and focused follow-up independent reviews are scoped-clean at P0.
  • Earlier full UI proof passed 5,149 tests across 301 files; the inherited Code Mode fixture and E2E configuration checks passed all 43 cases. Main's independent fixture repair in fix(ci): restore lifecycle test reliability #138238 replaces our duplicate test-only follow-up. Main's fix(ui): keep Canvas previews stable after history hydration #138155 frame adoption, capability rotation, and history deduplication behavior is preserved.
  • Exact-head CI 33877578554 passed on 696f166efdb (attempt 2). One test shard never acquired its self-hosted runner; that shard alone was retried on a GitHub-hosted runner and passed, along with the aggregate gate. All other executing jobs passed on the first attempt. The preceding run caught the stale generated Android enum after the advertised-order correction; regeneration and the complete protocol check resolve it. The real-Gateway regression is registered once in the existing CI group.

The stored document manifest, writer, paths, and serialization are unchanged. Existing-style persisted HTML and A2UI are covered by real isolated-Gateway browser proof. This is live local testing; no Team deployment was performed.

Follow-ups

The successful CI-artifact build covers runtime and public SDK declarations. An earlier full-profile build’s global non-SDK declaration pass exited 1 without a compiler diagnostic; that separate profile was not rerun. Follow-up: preserve raw child exit status, signal, and process-group state in the declaration runner.

An earlier CI attempt exposed a timing-sensitive Codex app-inventory diagnostic: a swallowed RPC timeout can be reported as unavailable scheduled apps before the total startup deadline classifies it. The operation still rejects, and the unchanged full test file passed all 31 cases locally and subsequently passed hosted CI. Follow-up: preserve timeout provenance and add deterministic timer-order coverage, retaining the denial and binding assertions.

Before/after captures below contain synthetic data and were fully inspected.

Before: authentication redirect blocks the inline widget

After: the same widget loads in chat and the dashboard

Input survives panel swaps, streaming, and theme changes

@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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android app: web-ui App: web-ui gateway Gateway runtime docker Docker and sandbox tooling agents Agent runtime and tooling extensions: canvas size: XL maintainer Maintainer-authored PR labels Sep 4, 2026
@steipete
steipete force-pushed the codex/unify-widget-loading branch from ab7982e to 93c5344 Compare September 4, 2026 08:25
@steipete
steipete marked this pull request as ready for review September 4, 2026 08:25
@steipete
steipete requested a review from a team as a code owner September 4, 2026 08:25
@steipete steipete self-assigned this Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 4, 2026
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper 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:

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

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 9:48 AM ET / 13:48 UTC.

ClawSweeper review

What this changes

This PR loads managed scripted Canvas chat widgets through the authenticated Gateway and renders them in the isolated sandbox while preserving declared public renderer assets.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: the authenticated widget-loading repair remains necessary, and the reviewed gateway, sandbox, UI, and browser-proof paths contain no concrete introduced defect.

Priority: P2
Reviewed head: 696f166efdb917237c81b56e9602c0fe33e0e5ee

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A well-scoped architectural repair with strong source-level boundary coverage and credible real-Gateway browser proof.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The changed production owner is exercised by a real isolated Gateway and browser test that persists documents, observes authenticated document reads, renders both HTML and A2UI content, retains interactive state, and verifies opaque frame isolation.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed production owner is exercised by a real isolated Gateway and browser test that persists documents, observes authenticated document reads, renders both HTML and A2UI content, retains interactive state, and verifies opaque frame isolation.
Evidence reviewed 6 items Authenticated owner boundary: The new Gateway method reads the document only after validating the request, revalidates the Gateway and client after asynchronous work, bounds HTML at 2 MiB, and returns an opaque sandbox endpoint plus port.
Public-resource isolation: The sandbox listener accepts only GET/HEAD, maps only registered public-resource readers, and rejects results if the plugin registry lifecycle changed while a reader awaited.
Plugin API contract: Public renderer readers are optional, require canonical non-reserved paths, and reserve those paths across content kinds to prevent cross-plugin collisions.
Findings None None.
Security None None.

How this fits together

Canvas documents are persisted by OpenClaw and shown in the Control UI as chat widgets. This change routes protected document bytes through an authenticated Gateway request before passing them to the existing isolated browser sandbox.

flowchart LR
  A[Persisted Canvas document] --> B[Authenticated Gateway request]
  B --> C[Size and liveness checks]
  C --> D[Isolated sandbox host]
  D --> E[Chat widget frame]
  E --> F[Widget prompt bridge]
Loading

Before merge

  • Resolve merge risk (P1) - The repair adds 739 net production lines across the Gateway, sandbox, protocol, plugin, and UI boundaries; that growth is justified by moving protected document bytes off direct iframe navigation, but it merits normal exact-head merge scrutiny.
  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +698, Tests +1372, Docs +58, Config +1, Other +41. Total +2170 across 57 files.

View PR surface stats
Area Files Added Removed Net
Source 23 907 209 +698
Tests 26 1721 349 +1372
Docs 3 75 17 +58
Config 1 1 0 +1
Generated 0 0 0 0
Other 4 44 3 +41
Total 57 2748 578 +2170

Review metrics

Metric Value Why it matters
Production versus test delta production +948/-209; tests +1719/-349; support/docs/config +81/-20 The substantial production growth implements new authenticated retrieval and isolation owners, while most changed lines are boundary and browser regressions.
Changed surfaces 57 files affected The repair spans protocol clients, Gateway admission, plugin resource registration, sandbox hosting, and Control UI rendering.

Stored data model

Persistent data-model change detected: serialized state: extensions/canvas/src/host/a2ui.ts, serialized state: src/canvas/documents.ts, unknown-data-model-change: src/canvas/documents.ts, unknown-data-model-change: src/plugins/board-widget-content-kinds.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one authenticated document-read path and one restricted public-renderer seam; the new owner boundaries are required to avoid re-exposing protected document URLs through direct iframe navigation.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one authenticated document-read path and one restricted public-renderer seam; the new owner boundaries are required to avoid re-exposing protected document URLs through direct iframe navigation.

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

Yes—an isolated real-Gateway browser scenario is defined in source and exercises persisted Canvas and A2UI documents through the authenticated Control UI path, although this read-only review did not execute it.

Is this the best way to solve the issue?

Yes—the authenticated RPC preserves the existing widget capability without granting the iframe direct access to protected Gateway document URLs, and the isolated sandbox retains the required prompt boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 068ef71bd20e.

Labels

Label changes:

  • add P2: This repairs authenticated inline widget rendering with a bounded user-facing blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is exercised by a real isolated Gateway and browser test that persists documents, observes authenticated document reads, renders both HTML and A2UI content, retains interactive state, and verifies opaque frame isolation.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed production owner is exercised by a real isolated Gateway and browser test that persists documents, observes authenticated document reads, renders both HTML and A2UI content, retains interactive state, and verifies opaque frame isolation.
  • remove P1: Current review triage priority is P2, so this older priority label is no longer current.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs authenticated inline widget rendering with a bounded user-facing blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed production owner is exercised by a real isolated Gateway and browser test that persists documents, observes authenticated document reads, renders both HTML and A2UI content, retains interactive state, and verifies opaque frame isolation.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is exercised by a real isolated Gateway and browser test that persists documents, observes authenticated document reads, renders both HTML and A2UI content, retains interactive state, and verifies opaque frame isolation.

Evidence

Acceptance criteria:

  • [P1] The branch defines an isolated real-Gateway browser regression at ui/src/e2e/chat-widget-sandbox.real-gateway.e2e.test.ts.
  • [P1] The branch includes Gateway, sandbox-resource, document-reader, plugin-registration, and Control UI boundary tests.

What I checked:

Likely related people:

  • unknown: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • JosephNatsu: 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 (4 earlier review cycles)
  • reviewed 2026-09-04T10:03:24.217Z sha d928782806ab9204a0ea654a046398f4796a338c :: blocked before merge. :: none
  • reviewed 2026-09-04T11:02:22.137Z sha b79f3ccedde2e1a5bd7ad1f314947f2b39c680c7 :: blocked before merge. :: [P1] Route default-script embeds through the authenticated loader | [P2] Reject mixed public/private renderer path collisions
  • reviewed 2026-09-04T12:00:32.177Z sha 02b6500dbea6fa669b8b5fad572cc21d3dacaced :: blocked before merge. :: [P1] Append the advertised Canvas method | [P2] Reserve the sandbox endpoint from public resources
  • reviewed 2026-09-04T12:46:17.212Z sha 6a6719bb264f4c4f005bc1e49c841fee9eb088e0 :: blocked before merge. :: [P1] Append the advertised Canvas method | [P2] Reject reserved and non-canonical public resource paths

@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Addressing the remaining ClawSweeper items:

  • The reviewed production delta is +884/-206 (net +678), excluding tests, generated DTOs and documentation. This supplies the missing authenticated Canvas RPC and inline sandbox renderer. Both inline and dashboard rendering use one document-loading lifecycle; the dashboard host removes 86 lines. The review likewise found no smaller net-neutral implementation that supplies the missing capability without mixing dashboard grants into inline widgets.
  • There is no stored-data schema or migration change. CanvasDocumentManifest, document paths and the document writer remain unchanged; the reader opens the same manifest/entrypoint through the bounded rooted reader. readPublicA2uiResource reads static renderer bundles and writes no persistent state. The real-Gateway regression persists HTML and an existing-style A2UI bootstrap, then renders both through authenticated reads and confirms opaque frame isolation. This passed locally and in hosted CI on runtime-identical head 1374b890508; final head d928782806a changes only one release-train test inventory entry. The reader's 2 MiB bound and alias rejection are intentional read-boundary checks, not a new storage format.
  • Exact-head CI on d928782806a is still running; I will wait for successful CI before native prepare/merge. The artifact build has passed. The npm audit timed out without clearance, and an unchanged Codex timeout-diagnostic test failed intermittently; its complete 31-test file passes locally. Those failures will be retried through the existing workflow after it completes, with the timeout-provenance follow-up recorded in the PR.

@steipete
steipete force-pushed the codex/unify-widget-loading branch from d928782 to dc9e8ad Compare September 4, 2026 10:35
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto the interchangeable task panels after resolving the dashboard test's import conflict. The widget runtime patch is unchanged; the final test extension adds two toolbar swaps and verifies that inline/sidebar frame identities and unsaved inputs survive.

Fresh pnpm build:ci-artifacts passed in 3m24s, including public SDK checks and the UI budget (349,474 bytes gzip, limit 350,141). The fresh runtime build is b04137b3f75; final commit dc9e8ad4a9f adds only the browser proof extension. All 11 Chromium cases across four files passed in 61.25s, including real-Gateway persisted HTML/A2UI, authenticated reads, isolation, prompt/dashboard authority, sizing, theme/streaming retention, and panel swaps. Independent review of the integrated candidate is scoped-clean at P0.

The prior CI attempt was superseded by this necessary rebase. Final-head hosted CI must pass before native prepare/merge. The image below is newly captured synthetic proof and has been fully inspected.

Inline and dashboard widget state survives panel swaps, streaming, and theme changes

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed P2 Normal backlog priority with limited blast radius. 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 Sep 4, 2026
@steipete
steipete force-pushed the codex/unify-widget-loading branch from 6a6719b to 8b5e682 Compare September 4, 2026 13:15
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 4, 2026
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Review closeout for 696f166efdb917237c81b56e9602c0fe33e0e5ee:

The latest ClawSweeper review finds no introduced defect and judges the authenticated RPC plus restricted renderer seam to be the best solution. I accept the documented growth for those missing boundaries: production +698, generated native DTOs +41. Chat and dashboard use one shared sandbox lifecycle; there is no parallel document-loading fallback.

The stored-data flag does not represent a schema or serialization change. The diff in src/canvas/documents.ts changes the read boundary only; document creation, manifest fields, writer, paths, and serialization are unchanged. extensions/canvas/src/host/a2ui.ts adds a read-only static asset callback, and renderer registration is runtime metadata. Existing-style persisted HTML and A2UI both rendered against the real isolated Gateway, so no migration is required.

Review confidence is supported by direct owner/sibling inspection, clean independent reviews, the canonical build, 598 integration tests, 66 final boundary tests, the complete protocol check, and 14 passing Chromium cases. The final commit only synchronizes generated Android ordering; web/Gateway sources match the live-tested build. The public-path and method-order regressions demonstrably failed before repair.

CI is still completing its iOS jobs. All executed test jobs have passed so far; one Node shard never acquired a runner and will be retried through the normal workflow recovery after the current run finishes. Native prepare/merge remains gated on completed green CI. No Team deployment was performed.

@steipete
steipete merged commit 428e479 into main Sep 4, 2026
354 of 359 checks passed
@steipete
steipete deleted the codex/unify-widget-loading branch September 4, 2026 14:50
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 4, 2026
…9-prep

* commit '407a8f453c0f0306af1ddc0aafa8697c1d49a9e7': (312 commits)
  perf(ui): coalesce automation event refreshes (#138065)
  fix: reject incomplete Skill Workshop directory reads (#138082)
  test(ui): decouple rendering checks from generated wording (#138283)
  perf: avoid temporary entries in bounded JSON traversal (#138017)
  fix(irc): render complete messages before splitting (#138328)
  perf: prepare worker trajectory payloads only for recorded events (#138086)
  fix(mcp): paginated listings no longer time out after a forward clock step (#137206)
  fix(codex): page native transcripts and bound UI previews (#136282)
  feat(gateway): apply more settings without restarting (#138112)
  fix(docs): preserve mirrored ClawHub maturity links (#138241)
  fix(test): own UI animation and legacy database setup (#138296)
  fix(tts): preserve literal directives in Markdown code (#138319)
  fix: load chat widgets behind authenticated gateways (#138074)
  chore(ui): cover native approval finalization (#137259)
  fix(cron): cancel conditions before main-session handoff (#138313)
  fix(backup): preserve text after embedded NUL characters (#138327)
  fix(android): align composer control sheets (#137442)
  fix(ci): wait for replacement PR runs instead of stale failures (#138307)
  fix(sessions): keep Gateway responsive with long transcripts (#138094)
  fix(computer): map window inputs to delivered image coordinates (#138271)
  ...

# Conflicts:
#	scripts/release-check.ts
#	test/release-check.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
* fix: load chat widgets behind authenticated gateways

Read managed scripted Canvas documents through the authenticated Gateway
connection and share the isolated document loader with dashboard widgets.
Keep inline prompt authority separate from dashboard grants, reject stale
connection results, and preserve mounted input and theme state.

Serve only declared public renderer assets on the sandbox origin so saved
A2UI documents retain their existing source contract. Bound Canvas source
reads and reject filesystem aliases at the common document reader.

Verified the original Chrome auth-redirect failure, then passed the full
production build and 11 Chromium regressions including a real isolated
Gateway with persisted HTML and A2UI. Add regression coverage for source
lifecycle, private prompts, auth boundaries, exports, sizing and theme.

* fix: complete widget protocol and CI registration

* fix: use supported normalization export in widget loader

* test: register Canvas document reads in the release train

* test: preserve widget state across task panel swaps

* fix: cover default widgets and renderer path ownership

Resolve effective sandbox policy once for authenticated loading and pinning, including default shortcode embeds. Reject any cross-kind renderer path collision involving a public reader while retaining private capability-scoped sharing. Document the namespace contract and exercise actual shortcode messages in both browser fixtures.

Default-loader and mixed-order registration regressions failed before the repair. Focused UI and plugin/sandbox suites pass141 tests; targeted lint and independent review pass.

* test: align widget assertions with authenticated rendering

Assert the authenticated widget host, forwarded document identity, placement, and strict-policy transitions. Keep URL-only prompt bridge coverage without an accidental matching document ID, and make renderer fixture identities explicit for checked indexing.

The full failing UI shard now passes all 5,149 tests across 301 files. Registrar tests, both original core test-type stripes, targeted lint, and independent review pass.

* fix: preserve widget discovery and resource contracts

* chore(android): regenerate gateway method ordering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: web-ui App: web-ui docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: canvas gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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.

2 participants