openclaw/ui
Peter Steinberger 25afb0c390
fix(mcp): dark-theme MCP Apps sit on an opaque box instead of the host background (#161494)
* fix(mcp): keep dark-theme MCP App frames transparent

MCP Apps share the sandbox proxy page with inline widgets, but they get
their theme from MCP host context, not widget theme messages. An app that
applies the host theme through the SDK's applyDocumentTheme becomes
color-scheme dark while the proxy stayed light, so Chromium painted an
opaque canvas behind apps that leave their background transparent. The
proxy now also adopts the theme from the ui/initialize host context and
from host-context-changed notifications.

Inline the single-use encodeCsp helper, which re-normalized a CSP its
only caller had already normalized. Production lines: +15/-19.

* test(ui): measure the dashboard MCP frame on every host-size poll

The board MCP e2e read the frame size once after a viewport resize and
then waited for the app to report exactly that value. When the board
layout settled after that first read, the app reported the new size and
the poll could never match (CI: stale 752 px against the settled 952 px,
the full 200 px viewport growth). Compare the reported size with the
frame's current size on each poll instead.
2026-09-29 20:04:10 -07:00
..
config perf(ui): preload the chat route's boot chunks on cold loads (#160293) 2026-09-29 09:39:39 -07:00
docs/design-system
public improve(ui): soften GitHub reference backgrounds across themes (#160844) 2026-09-29 01:03:28 +00:00
scripts perf(ui): preload the chat route's boot chunks on cold loads (#160293) 2026-09-29 09:39:39 -07:00
src fix(mcp): dark-theme MCP Apps sit on an opaque box instead of the host background (#161494) 2026-09-29 20:04:10 -07:00
test
.gitignore
AGENTS.md improve(ui): stop re-describing new sessions on every chat event (#161442) 2026-09-29 19:55:19 -07:00
index.html
package.json refactor: remove narrowly used helper dependencies (#158573) 2026-09-26 22:38:09 -07:00
tsconfig.json
vite.config.ts perf(ui): preload the chat route's boot chunks on cold loads (#160293) 2026-09-29 09:39:39 -07:00
vitest.config.ts refactor: remove narrowly used helper dependencies (#158573) 2026-09-26 22:38:09 -07:00
vitest.node.config.ts