Skip to content

feat(themes): resolve built-in palettes from the connected Gateway - #2301

Merged
bkudiess merged 8 commits into
paulcam206-themes-10-syncfrom
paulcam206-themes-11-runtime
Nov 26, 2026
Merged

bkudiess merged 8 commits into
paulcam206-themes-10-syncfrom
paulcam206-themes-11-runtime

Conversation

@paulcam206

@paulcam206 paulcam206 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Related: the Companion themes stack, layers 1 to 10: #2291, #2292, #2293, #2294, #2295, #2296, #2297, #2298, #2299, #2300.

This is part 11 of 11 in the Companion themes stack, opened as a native GitHub stack: each PR is based on the layer below it, so this diff is only this layer's commit, 601932d6 feat(themes): resolve built-in palettes from the connected Gateway. It depends on the table-sync layer #2300 (paulcam206-themes-10-sync).

This commit is 2e98953a rebased onto main 1af25869, and git range-diff shows the same patch. Evidence and validation below name the heads they ran on; in this stack 2e98953a is now 3c4cacae and 783b9ed7 is now 3f14cc1f.

Rebased again onto main 30cfe593, which includes #2307 and #2308: this commit is now 601932d6 (was 3c4cacae), and git range-diff shows the same patch. Evidence below that names 3c4cacae or an earlier head ran on this same patch.

Themes architecture

Layer 11 of 11 in the Companion themes stack. This layer resolves built-in palettes from the connected Gateway's own stylesheets in an offscreen WebView2 probe, caches the result per Gateway build, and falls back to the bundled table. The nodes this pull request adds are highlighted below. For the full write-up, with code links, see OpenClaw Windows Companion: theme architecture.

flowchart TD
  subgraph src["Sources"]
    GW["Gateway"]
    UI["Settings page"]
    WIN["Windows settings"]
    SYNC["Daily table sync"]
    TBL["Built-in table"]
    FNT["Bundled fonts"]
    ARTA["Artwork images"]
  end
  subgraph proc["Processing"]
    CAT["Theme catalog"]
    FOL["Follower"]
    RES["Palette resolver"]
    PRB["WebView2 probe"]
    CCH["Palette cache"]
    MOD["Theme model"]
    SET["Appearance setting"]
    SEL["Theme selection"]
    ACC["Accent overlay"]
  end
  subgraph app["Application"]
    APL["Theme applicator"]
    PRJ["WinUI brushes"]
    RAD["Corner radii"]
    BKP["Mica backdrop"]
    ART["Chat artwork"]
    BUB["Lobster bubble"]
    BRD["Branding"]
  end
  GW -->|catalog and prefs| CAT
  GW -->|Control UI CSS| RES
  SYNC -->|regenerates| TBL
  TBL -->|fallback| RES
  RES --> PRB
  PRB --> CCH
  CCH -->|reuse| RES
  CAT -->|built-in names| RES
  CAT -->|plugin themes| MOD
  CAT -->|dashboard choice| FOL
  FOL -->|followed values| SET
  UI -->|manual choice| SET
  MOD --> SEL
  RES -->|built-in palettes| SEL
  SET --> SEL
  SEL --> ACC
  ACC --> APL
  WIN --> APL
  WIN --> BKP
  FNT --> PRJ
  APL --> PRJ
  APL --> RAD
  APL --> BKP
  APL --> BRD
  APL --> ART
  ARTA --> ART
  BKP --> BUB
  classDef layer fill:#ffd866,stroke:#7a5200,stroke-width:3px,color:#000000
  class RES,PRB,CCH layer
Loading

What Problem This Solves

Fixes: built-in Gateway themes show the Companion's bundled palettes instead of the connected Gateway's when that Gateway is older or newer than the release the bundled table was generated from.

User Impact

User impact: with a built-in theme selected (or followed), the Companion now paints the same colors, fonts and radii as the connected Gateway's own dashboard, including Gateways released after this Companion build. When the Gateway's palettes cannot be read, it keeps the bundled table exactly as before. Existing settings, pairing and device identity carry over from the released Companion unchanged.

Why This Change Was Made

Built-in palettes are a color-mix() cascade in the Control UI's CSS, so only a CSS engine can resolve them. The table generator already resolves them with a probe in headless Edge; that probe is now one shared file (ThemeProbe.js) that both the generator and the Companion run.

On each operator connection the Companion reads the Control UI's index.html, the stylesheets it links and themes/<id>.css over the existing Gateway HTTP base (no credentials, no redirects, mount-confined, size and time bounded), runs the probe in an offscreen in-private WebView2 that answers every other request with 404, validates the result, and caches it per Gateway build id. Names and branding come from the Gateway's themes.list built-in descriptors when it sends them, and the Settings picker lists the Gateway's built-ins by those names.

Fallback order: Gateway palettes, then the bundled table, then the Windows default for an id neither styles. A disabled Control UI, missing WebView2, timeout or invalid result keeps the table; a theme whose own stylesheet did not load keeps the table and is retried on the next connection; only the newest connection publishes; reconnecting to the same build or starting offline reuses the cache without a probe, and the startup theme (which fixes control geometry for the session) already comes from it. The cache is optional: malformed or stale content only costs a fresh probe. The table and the daily sync workflow stay as the fallback; the fonts stay bundled.

Evidence

Before/after on a Crabbox Hyper-V guest against a real npm Gateway [email protected] (whose built-in surfaces were retuned after the table's pinned release), Manuscript, light mode, chat home:

Manuscript light: before, the bundled table (left); after, the Gateway's palettes (right)

Left: 783b9ed7 (the layer below), bundled table. Right: 2e98953a (this PR), the Gateway's palettes.

Window canvas pixel: before #f6f1e5 (table), after #edece7 (the beta.4 dashboard paints #edece6). App log after: [Themes] Built-in palettes from the Gateway (11 themes, resolved, build 2026.11.5-beta.4-release-2c173a37a48f-…).

Upgrade from the latest stable release: a profile created and paired by the released Companion v2026.11.3 (portable zip, SHA-256 verified against the release digest, the same artifact CI's released-profile check uses) was opened by this PR's build. Settings, gateway record, device id and device token were preserved with no new pairing request. A Gateway theme was then chosen in Settings and kept across a restart. The App theme was Dark on a light-mode Windows guest:

After upgrade and restart: Settings shows App theme Dark and Gateway theme Manuscript, painted in Manuscript's dark palette

settings.json written by v2026.11.3, compared with the same file after the upgrade, theme choice and restart. The only change is the added appearance block:

   "AppTheme": "Dark",
+  "Appearance": {
+    "Theme": {
+      "Id": "manuscript",
+      "Name": "Manuscript",
+      "Source": "builtin"
+    },
+    "UseMica": true,
+    "FollowGatewayTheme": false
+  },
   "OpenTelemetryProtocol": "grpc",

Recorded-dashboard tests: scripts/Record-ControlUiThemeFixture.ps1 recorded what real 2026.9.7, 2026.11.4 and 2026.11.5-beta.4 Gateways served and what their own dashboards computed (headless Edge, each theme selected through the dashboard's saved settings, probed in place). The real WebView2 probe reproduces every token of 2026.11.4 and 2026.9.7 exactly (11 themes × 2 modes × 33 tokens, plus painted canvas). For beta.4 one token differs by one step (dash light inline code): the dashboard's page-load link order lets an equal-specificity core rule beat dash.css, while a live theme switch lets dash.css win; the probe, like the generator, follows the theme file. The test names that single known difference.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-winui-interactive: built-in theme colors applied to WinUI windows now come from the connected Gateway.

Validation

  • After rebasing onto main 30cfe593 (fix: match inline code chips to the chat theme #2307), on this commit, the new stack top 601932d6: ./build.ps1 succeeded; dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 6016 passed, 0 failed, 29 skipped (existing opt-in integration skips); dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 6807 passed, 0 failed; dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj -r win-x64 --filter "FullyQualifiedName~GatewayTheme|FullyQualifiedName~GatewayBuiltinThemeProbe|FullyQualifiedName~DesktopCompanionWindowTests.OpenBubble|FullyQualifiedName~ReactorMarkdownWebParity|FullyQualifiedName~ReactorToolActivityProofTests|FullyQualifiedName~WorkAlignment": 63 passed, 0 failed.
  • After rebasing onto main 1af25869, on the new stack top 3c4cacae, which contains this commit: ./build.ps1 succeeded; dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 6012 passed, 0 failed, 29 skipped (existing opt-in integration skips); dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 6801 passed, 0 failed; dotnet test ./tests/OpenClaw.Tray.UITests -r win-x64 --filter "FullyQualifiedName~GatewayTheme|FullyQualifiedName~GatewayBuiltinThemeProbe|FullyQualifiedName~DesktopCompanionWindowTests.OpenBubble|FullyQualifiedName~ReactorMarkdownWebParity" (developer machine, Windows dark mode): 33 passed, 0 failed.

All on 2e98953a:

  • ./build.ps1: all builds succeeded (Shared, Cli, WinNodeCli, SetupEngine, WinUI); documentation validation passed.
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 6004 passed, 29 skipped, 0 failed
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 6801 passed, 0 failed
  • dotnet test ./tests/OpenClaw.Tray.UITests -c Debug -r win-x64 --filter FullyQualifiedName~GatewayBuiltinThemeProbeTests: 4 passed (real WebView2 probe vs the three recorded dashboards, plus a newly added built-in and an unstyled id).
  • scripts/Update-GatewayThemeTable.ps1 -UpstreamRef 4ffdd2047d192dd65554de3c8c46c0e0197c6e2a with the shared probe: output byte-identical to the committed BuiltinGatewayThemes.g.cs.

New focused coverage:

  • ServedGatewayThemeTests: index parsing of real served shapes; stylesheet reading; build-id and content-hash keys; probe validation that rejects path/URL font stacks, translucent window surfaces and out-of-range radii; descriptor branding; cache LRU, invalidation, corruption, malformed entries and repeated ids; and the Control UI HTTP read with no credentials, no redirects, type and size limits, and mount-confined paths.
  • GatewayBuiltinThemeResolverTests:
    • Gateway palettes replace the table and are reused for the same build, offline and at startup.
    • A probe failure or an unavailable Control UI keeps the table.
    • A theme the Gateway does not style keeps the table across a restart.
    • A theme stylesheet that failed to load keeps the table even when the probe reads it as styled, and is retried on the next connection.
    • A superseded connection never publishes and cannot make an older build the last cached one.
    • Catalog descriptors rebrand without a probe.
    • A built-in listed while a probe runs is probed once afterwards.
  • GatewayFixtureProtocolTests.ControlUiReads_AreRefusedLikeADisabledControlUi_WithoutCountingAsUnexpected: the fixture Gateway answers the client's real Control UI reads with 404, like a Gateway with its Control UI disabled, while any other plain HTTP stays a rejected upgrade.
  • GatewayThemeSettingsTests: the picker lists the Gateway's built-ins by its names and reselects a saved Gateway-only built-in once its palettes arrive.

Real Behavior Proof

  • Environment tested: Crabbox Hyper-V guest cbx_7bab69bddc8d, Windows 11 Insider 29683 primed template with the VC++ x64 14.52 redistributable (DiskIdentifier 5D83D17D), Windows in light mode. Isolated Companion profiles connected to real npm Gateways on loopback with token auth ([email protected], [email protected], and beta.4 with gateway.controlUi.enabled=false); each Companion device was approved with the Gateway's own openclaw devices approve. Earlier rounds on leases cbx_29742a00d1cf, cbx_9b585c653bdb, cbx_76a02555eb44 and cbx_bf1de6ac7b38 (same template) and cbx_4dc657ba6dc6 (clean template) showed the same results on previous heads.
  • PR head or commit tested: 2e98953a (after, this PR's head), 783b9ed7 (before, the layer below) and released Companion v2026.11.3 (upgrade source).
  • Exact steps or command run: seeded settings with Appearance.Theme = {Id: manuscript|tide, Source: builtin} and UseMica: false; launched each build; navigated with local MCP app.navigate to Settings and chat; captured the window and sampled pixels. For the upgrade, v2026.11.3 paired and changed settings through MCP app.settings.set, then this build opened the same profile, Manuscript was chosen through the Settings picker (UI Automation), and the app was restarted.
  • Evidence after fix:
    • beta.4, Manuscript light: before canvas #f6f1e5, after #edece7; log Built-in palettes from the Gateway (11 themes, resolved, build 2026.11.5-beta.4-…); cache written.
    • Offline restart of that profile with the Gateway unreachable: the first window opens with the cached beta.4 canvas (Backdrop WorkspaceWindow: Opaque ... root #FFEDECE7), so the startup theme and its control geometry come from the cache.
    • 2026.11.4, Manuscript light: palettes resolved from the Gateway; pixels identical to the table (#f6f1e5), so nothing changes where the Gateway matches the table.
    • beta.4, Tide dark: canvas #14191f and content #10151b (beta.4) instead of the table's #10161c.
    • beta.4 with the Control UI disabled (404): log Built-in palettes from the bundled table: the Gateway does not serve its Control UI here.; table pixels.
    • Upgrade from v2026.11.3: NotifyInfo, NotifyHealth, AppTheme, gateway id and url, device id and device token preserved; 0 pending device requests after the upgrade and after the restart; picker shows Manuscript after the restart; canvas #211e18.
  • Observed result: the Companion follows the connected Gateway's palettes, falls back to the table when the Control UI is not served, and keeps released profiles intact.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes. Both images are attached to this description and were read back after upload.
  • Not verified or blocked: remote Gateways behind an authenticating proxy on the Control UI path (inferred: the read fails closed to the table); WebView2 runtime absent (covered by the probe-failure test, not live); packaged (MSIX) build.

Security Impact

  • New permissions or capabilities? (Yes/No): No
  • Secrets or tokens handling changed? (Yes/No): No
  • New or changed network calls? (Yes/No): Yes
  • Command or tool execution surface changed? (Yes/No): No
  • Data access scope changed? (Yes/No): No
  • If any answer is Yes, explain the risk and mitigation: the Companion now GETs the connected Gateway's own unauthenticated Control UI files (index.html, linked assets/*.css, themes/<id>.css) over the HTTP base it already uses for media. Requests carry no credentials, never follow redirects, stay under the Gateway's mount (no .., //, scheme, query or off-origin paths), require the expected media type and are size and time bounded. The CSS is only evaluated in an offscreen in-private WebView2 whose every other request returns 404, so it cannot reach the network or run Gateway script. Resolved values are validated: colors must be hex and window surfaces opaque, font stacks must be plain family names (paths and URLs are rejected so a Gateway cannot make WinUI load a UNC font), radii are bounded.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes
  • Config or environment changes? (Yes/No): Yes
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps: none. Settings written by v2026.11.3 load unchanged; the only addition after a theme is chosen is the Appearance block shown above. The palette cache is a new, versioned, disposable file under the local data directory. Optional OPENCLAW_CONTROL_UI_ASSET_TIMEOUT_MS (per file, default 15000) and OPENCLAW_THEME_RESOLVE_TIMEOUT_MS (whole resolution, default 30000). Gateways with the Control UI disabled or serving an unexpected layout keep the bundled table.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@paulcam206
paulcam206 added this pull request to stack #2302 November 18, 2026 00:03
@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. 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 Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR resolves built-in theme palettes from the connected Gateway, caches them, and retains the bundled palettes as fallback.

Example: Manuscript light theme with Gateway 2026.11.5-beta.4.

  • Before: Companion paints the bundled canvas color #f6f1e5.
  • After: Companion paints #edece7 from the Gateway palette, closely matching its dashboard.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Useful, scoped runtime behavior has direct visual and Gateway proof, upgrade coverage, reported exact-head validation, and no open findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Windows Companion screenshots and accompanying real-Gateway output demonstrate palette replacement, bundled fallback, and offline reuse; matching production blobs preserve applicability after rebasing, and the v2026.11.3 upgrade preserves settings, gateway identity, and device credentials.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: A built-in theme can look different in Companion and the connected Gateway dashboard when their palette versions differ.
Reason: The maintainer-authored direction has demonstrated visual value, preserves existing fallback behavior, and adds no separate product approval requirement.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR adds useful behavior absent from current main, with sufficient live proof and no actionable introduced defects found.

Priority: P3
Reviewed head: 601932d6909e8acbc9a3edd51249cfd7f0e8d8bc

Before merge

None.

Findings

None.

Agent review details

How this fits together

The theme resolver reads CSS through the existing operator client's HTTP transport and supplies validated palettes to appearance selection, Settings, and the WinUI theme applicator.

flowchart LR
  Gateway[Connected Gateway] --> Reader[Bounded CSS reader]
  Reader --> Probe[Offscreen WebView2 probe]
  Probe --> Resolver[Validated palette resolver]
  Cache[Build palette cache] <--> Resolver
  Table[Bundled fallback table] --> Resolver
  Resolver --> Appearance[Appearance selection]
  Appearance --> WinUI[WinUI theme application]
Loading

Technical review

Best possible solution:

Retain one runtime palette resolver using the existing operator transport and shared probe, with validated caching and the bundled table as fallback.

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

The contributor's live before/after evidence demonstrates palette drift on the preceding theme-stack layer; current main does not yet offer this feature, and this review executed no target code.

Is this the best way to solve the issue?

Palette drift is the problem, preserving fallback and saved selections is the invariant, and extending the existing theme source with a shared CSS probe is a coherent complete solution whose added owners serve distinct boundaries.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Built-in palette selection and catalog presentation changes intended behavior with a stated reason (6ebe234: The earlier theme layer offered bundled built-ins and fetched definitions only for plugin and imported themes.)
  • Build-time palette probe keeps the original intent (bbdefc6: The generator resolved the Control UI CSS cascade in Edge rather than approximating derived colors.)
  • Startup control geometry keeps the original intent (dba53b2: WinUI controls retain startup-resolved corner geometry, so the first theme application must choose the session's radii.)
  • Settings ownership keeps the original intent (d2638dd: Settings persistence and observable state belong in the WinUI-free view model and settings store, with App remaining the composition root.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned scope and current-main comparison: The introduced diff is the single runtime-resolution layer above the table-sync branch; current main contains none of GatewayBuiltinThemeResolver, ServedBuiltinThemeCache, ReadControlUiTextAsync, or BuiltinGatewayThemes. (c38dbcc53e7d)
  • Fallback and cache ownership: The resolver uses the existing operator reader, bounds the whole resolution, rejects unavailable theme stylesheets, and prevents superseded connections from publishing or becoming the last cached build. (src/OpenClaw.Tray.WinUI/Theming/GatewayBuiltinThemeResolver.cs:144, 601932d6909e)
  • Network and browser isolation: HTTP reads send no authorization header, enforce origin and mount confinement, and bound response bodies; the in-private probe serves its document from memory and returns 404 for other requests. (src/OpenClaw.Tray.WinUI/Theming/WebViewBuiltinThemeProbe.cs:55, 601932d6909e)
  • Inspected live and upgrade proof: The full PR body and contributor comments were read through REST, and all four prepared images were inspected locally. The relevant images show the Manuscript before/after palette and persisted Dark/Manuscript selection after upgrading from v2026.11.3; accompanying logs cover resolution, offline restart, and disabled-Control-UI fallback. Captured body identity: 5f32c6b6ddc82788c3899894c94a0e21f584f3b44ebe141e0b9e927b1d59f8ab. (601932d6909e)
  • Proof remains applicable after rebasing: GitHub tree objects confirm that the HTTP reader, stylesheet reader, cache, palette validation, shared JavaScript probe, runtime resolver, and WebView2 adapter have identical blobs at the live-tested 2e98953 head and the reviewed head. The earlier review SHA was unavailable locally; GitHub supplied the historical tree comparison. (2e98953a7a47)
  • Validation and workflow state: The body reports the required build, 6016 Shared tests, 6807 Tray tests, and 63 focused UI tests passing at the reviewed head. Supplied check metadata reports 21 successful and nine skipped checks with no failures; REST confirms this remains a draft based on the open table-sync layer. Builds and tests were not rerun during this read-only review. (601932d6909e)

Likely related people:

  • Barbara Kudiess: Raw commit e59374c adds src/OpenClaw.Tray.WinUI/Dashboards/BoardWebViewEnvironment.cs:26 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e59374c064f4; files: src/OpenClaw.Tray.WinUI/Dashboards/BoardWebViewEnvironment.cs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production change +1430 / -35 lines Growth implements distinct HTTP, CSS-engine, validation, persistence, and presentation boundaries while sharing the generator's probe and existing WebView2 environment.

Root-cause cluster

Relationship: canonical
Canonical: #2301
Summary: This PR carries the runtime-resolution work previously submitted in a closed cumulative-stack PR.

Members:

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

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Label justifications:

  • P3: This is an optional appearance improvement with a retained bundled fallback and no demonstrated disruption to core workflows.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 (3 earlier review cycles)
  • reviewed 2026-11-18T00:17:42.752Z sha ac1ad87 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-18T01:57:32.618Z sha 539aa55 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-18T03:21:50.591Z sha 3c4caca :: needs maintainer review before merge. :: none

Reviewed November 18, 2026, 6:46 PM ET / 23:46 UTC (Revision 4).

@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@paulcam206
paulcam206 force-pushed the paulcam206-themes-11-runtime branch from 539aa55 to 3c4caca Compare November 18, 2026 02:51
@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 18, 2026
The Companion's built-in Gateway themes came only from the bundled table, so
a Gateway older or newer than the pinned release showed palettes its own
dashboard does not. The Companion now reads the stylesheets the connected
Gateway's Control UI serves, resolves them with the same probe the table
generator uses (ThemeProbe.js) in an offscreen WebView2, and applies them,
with names and branding from the Gateway's themes.list descriptors.

The bundled table stays the fallback: a disabled Control UI, a missing
WebView2 runtime, a timeout or an invalid result keeps it, and ids neither
source styles keep the Windows default look. Results are cached per Gateway
build, so reconnecting and starting offline need no probe.

Tests compare the probe with what real 2026.9.7, 2026.11.4 and
2026.11.5-beta.4 dashboards computed, recorded by
scripts/Record-ControlUiThemeFixture.ps1.
@paulcam206
paulcam206 force-pushed the paulcam206-themes-11-runtime branch from 3c4caca to 601932d Compare November 18, 2026 22:56
@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Nov 18, 2026
bkudiess and others added 6 commits November 25, 2026 14:30
…06-themes-11-runtime

# Conflicts:
#	src/OpenClaw.Tray.WinUI/Presentation/SettingsPageViewModel.cs
#	src/OpenClaw.Tray.WinUI/Theming/GatewayThemeCatalog.cs
…reads cookie-free

A WebView2 call that ignores cancellation, or a UI thread that never runs the
probe, no longer holds a connection's resolution open: the resolver and probe
both bound their waits to the resolution deadline, a controller created after
the deadline is closed with its window, and the connection falls back to the
bundled table and retries on the next connection.

The shared Gateway media HttpClient now sets UseCookies=false so Control UI
reads carry no cookie state. The recordings README states that the zips are
frozen captures of real builds, not live Gateway proof.

Co-authored-by: Copilot App <[email protected]>
…andoned probe calls

Review follow-ups for the probe deadline: the controller creation call is no
longer cancelled by the token, so a controller the runtime still creates after
the deadline reaches the closer; abandoned ExecuteScriptAsync calls have their
faults observed; the hung-probe test uses a larger budget and also asserts the
reconnect publishes exactly once.

Co-authored-by: Copilot App <[email protected]>
@bkudiess
bkudiess marked this pull request as ready for review November 26, 2026 01:36
@bkudiess
bkudiess merged commit 1bc146d into main Nov 26, 2026
32 checks passed
@bkudiess
bkudiess deleted the paulcam206-themes-11-runtime branch November 26, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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