mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
* 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. |
||
|---|---|---|
| .. | ||
| config | ||
| docs/design-system | ||
| public | ||
| scripts | ||
| src | ||
| test | ||
| .gitignore | ||
| AGENTS.md | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
| vitest.node.config.ts | ||