Skip to content

chore(themes): sync the built-in Gateway theme table with the packaged Gateway release - #2220

Closed
paulcam206 wants to merge 4 commits into
openclaw:mainfrom
paulcam206:paulcam206-gateway-theme-sync
Closed

paulcam206 wants to merge 4 commits into
openclaw:mainfrom
paulcam206:paulcam206-gateway-theme-sync

Conversation

@paulcam206

@paulcam206 paulcam206 commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

This adds a daily workflow that keeps the Companion's built-in Gateway theme table current with the Gateway people actually run. It finds the latest stable openclaw-windows-packaging release (for example v2026.11.1-msix.0), downloads and verifies its x64 MSIX, reads the openclaw commit the bundled Gateway was built from (app/dist/build-info.json) and compares it with BuiltinGatewayThemes.UpstreamRef. When they differ it regenerates the table with scripts/Update-GatewayThemeTable.ps1, runs the theme tests and opens or updates one pull request from the fixed branch automation/gateway-theme-sync. When they match it exits without changes.

A theme that names a font the Companion does not bundle fails the run before any pull request is opened (EveryBuiltinThemeTypefaceIsBundledWithTheCompanion), with a job summary pointing at scripts/Update-ThemeFonts.ps1. Adding a font and its license stays a human step. An unknown or non-literal branding value fails the generator the same way. New upstream themes with bundled fonts sync normally: the built-in table test checks invariants rather than a pinned theme list.

This PR is stacked on #2219 (theme branding), which is stacked on #2218 (Gateway themes). It contains their three commits plus one of its own; review scope is only ci(themes): sync the built-in Gateway theme table with the packaged Gateway release (78aabbe9, patch-identical to 13c328b3, where the evidence below was taken). A maintainer must provision the App before it opens pull requests: a GitHub App with Contents and Pull requests read/write on this repository, its id in the repository variable GATEWAY_THEME_SYNC_APP_ID, its private key in the secret GATEWAY_THEME_SYNC_APP_PRIVATE_KEY, and the variable GATEWAY_THEME_SYNC_ENABLED=true. Until then each run still regenerates and tests a stale table but publishes nothing. An App token is needed because pull requests opened with GITHUB_TOKEN do not start CI.

What Problem This Solves

The built-in theme palettes are generated from a pinned upstream commit. Without automation the table drifts as new Gateway releases change or add themes, and nobody notices until a user picks a theme that renders differently from the dashboard.

User Impact

User impact: none directly; maintainers get a reviewed pull request whenever a new stable packaged Gateway changes the built-in themes, instead of drift.

Why This Change Was Made

  • Users run the MSIX-packaged Gateway, so the source of truth is the latest stable packaging release, not upstream main or npm. Drafts and prereleases are refused, reusing Resolve-PackagedGatewayRelease, Save-PackagedGatewayArchive and Get-PackagedGatewayMetadata (stable release, canonical tag and asset, SHA-256 and payload identity checks).
  • The commit comes from the verified payload rather than the packaging tag, because a packaging release may bundle an earlier Gateway than its own version (docs/RELEASING.md; test-gateway-packaged-release.ps1 pairs v2026.9.9-msix.0 with Gateway 2026.8.20). It must also be a public openclaw/openclaw commit, since the generator reads upstream sources there. Every unresolvable step fails with a clear message instead of guessing.
  • BuiltinTableHasEveryUpstreamThemeInBothModes checks invariants of any regenerated table (claw present, unique ids, both modes, fonts named, dark darker than light) instead of the 11 pinned ids; Update-GatewayThemeTable.ps1 already checks the table against upstream BUILTIN_THEME_IDS.
  • Resolution lives in scripts/GatewayThemeUpstream.psm1 so CI can test it offline; publishing lives in scripts/Publish-GatewayThemeSync.ps1 rather than inline YAML.
  • The bot branch is force-updated only when the regenerated table, or the default branch's copy of it, differs from what it holds, and an open pull request that already carries the table is not edited, so a daily run does not restart CI or review while the default branch merely moves. Closing the sync pull request without merging skips that commit until the packaged Gateway moves again; fork pull requests that reuse the branch name are ignored.
Implementation notes
  • .github/workflows/gateway-theme-sync.yml: schedule (daily) and workflow_dispatch, windows-latest (has Edge and gh, which the generator needs), permissions: {} with contents: read for the job, a repository guard and a full-ref default-branch guard (refs/heads/<default>, so a same-named tag is refused), per-repository concurrency, persist-credentials: false.
  • scripts/Resolve-GatewayThemeUpstream.ps1 writes packaging_release, gateway_version, upstream_ref and up_to_date to GITHUB_OUTPUT; the 257 MB MSIX download takes about 18 s.
  • Checkout uses fetch-depth: 0 because GitVersion.MsBuild needs full history to build the test projects.
  • scripts/Publish-GatewayThemeSync.ps1 commits only the table as the App's bot user, passes the token to git as a per-command header and uses --force-with-lease against the branch head it observed.
  • ci.yml runs scripts/test-gateway-theme-upstream.ps1 and scripts/test-gateway-theme-sync-publish.ps1 beside the packaged-release provenance test.

Evidence

Local dry run at 13c328b3 against the real packaging release (./scripts/Resolve-GatewayThemeUpstream.ps1 -CacheDirectory <temp> -GitHubOutput <file>, 18 s including the verified 257 MB download):

packagingRelease : v2026.11.1-msix.0
gatewayVersion   : 2026.11.1
upstreamRef      : 4ffdd2047d192dd65554de3c8c46c0e0197c6e2a
currentRef       : 220ca12e0732ab599c5a9b6434ac699f6750728f
upToDate         : False

packaging_release=v2026.11.1-msix.0
gateway_version=2026.11.1
upstream_ref=4ffdd2047d192dd65554de3c8c46c0e0197c6e2a
up_to_date=false

The workflow's next steps, run locally on that result:

  • ./scripts/Update-GatewayThemeTable.ps1 -UpstreamRef 4ffdd204… wrote all 11 built-in themes (223 changed table lines against the main-based pin). This first failed because the release predates root definitions of --chat-composer-surface and a dark --bg-content; the generator now uses the same fallbacks that release's own CSS reads (var(--bg-content, var(--bg)), --chat-composer-surface: var(--popover)), and regenerating at 220ca12e is still byte-identical to the committed table.
  • With that regenerated table in place, dotnet test tests/OpenClaw.Shared.Tests -c Debug --filter FullyQualifiedName~GatewayTheme: 61 passed; dotnet test tests/OpenClaw.Tray.Tests -c Debug -r win-x64 --filter FullyQualifiedName~GatewayTheme: 23 passed, including EveryBuiltinThemeTypefaceIsBundledWithTheCompanion. The table was then restored; this PR does not change it.
  • actionlint 1.7.12: no findings for gateway-theme-sync.yml and ci.yml.

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

  • none: repository automation only; no shipped runtime behavior changes. Proven with the offline resolution tests, a dry run against the real packaging release and actionlint.

Validation

Local runs on 13c328b3 unless stated. This layer's commit is patch-identical on 78aabbe9; the layers beneath took #2218's and #2219's fixes, and the local build and unit tests were rerun on 0464e61b (same tree as 78aabbe9 apart from #2218's GatewayThemeRestoreTests.cs):

  • ./build.ps1: all builds succeeded (0464e61b).
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 5937 passed, 0 failed, 29 skipped (existing opt-in integration skips) (0464e61b)
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 6692 passed, 0 failed (0464e61b)
  • ./scripts/test-gateway-theme-upstream.ps1: 8 assertions passed (latest stable release maps to the commit in its payload, not its tag; annotated and matching cases; prerelease, unknown commit, unreadable payload and missing UpstreamRef fail clearly).
  • ./scripts/test-gateway-theme-sync-publish.ps1: 11 assertions passed (git and gh faked as PowerShell functions: first publish, an unchanged open pull request left untouched, a changed table pushed with a lease and the pull request updated, a declined commit and a fork pull request ignored, a current branch without an open pull request).
  • ./scripts/test-gateway-packaged-release.ps1: 62 passed (the reused release and payload checks).
  • Local reviews on this layer: local ClawSweeper (last run before the rebase onto current main: patch correct, no findings; proof limited by the unprovisioned App) and a two-model Hanselman review (Claude Opus 5.5, GPT-6 Astra). Fixed: shallow checkout breaking GitVersion; deriving the commit from the packaging tag (a release may bundle an earlier Gateway); a pinned theme list and branding pin that would block every sync of a new theme; daily force-push churn and pull-request edits; reopening declined PRs; fork PRs reusing the branch name; a same-named tag passing the default-branch guard.
  • CI on 78aabbe9 (run 43588172542): 16 jobs passed, including the new-test soak (10 of 10 runs), the UI and accessibility tests and fixture shard B. Two UI jobs failed in tests this layer does not touch, and feat(appearance): follow dashboard theme branding in the Companion #2219 passed both jobs on the same product code (its run 43588169328, all 19 jobs green): ReactorChatLayoutProofTests.ProductionRoot_AlignsColumnAndKeepsEveryComposerActionReachable (the send button's inner disc was not yet in the tree) and GatewayFixtureUiTests.SharedRootDialog_DefersNavigationAndRejectsNativeBinding (ElementNotAvailableException reading an element's name, in the mock Gateway application job). Rerunning failed jobs needs repository admin rights, so they are recorded here.
  • The new-test soak failures the hosted review saw are explained in the layers that own them: at 13c328b3, feat(appearance): follow dashboard theme branding in the Companion #2219's branding test compared a single-precision opacity exactly (fixed in feat(appearance): follow dashboard theme branding in the Companion #2219); at 0464e61b, feat(appearance): apply OpenClaw dashboard themes to the Companion #2218's startup restore test failed its first run (see feat(appearance): apply OpenClaw dashboard themes to the Companion #2218's Validation; all 10 runs passed on 78aabbe9).
  • Stored settings compatibility is feat(appearance): apply OpenClaw dashboard themes to the Companion #2218's and feat(appearance): follow dashboard theme branding in the Companion #2219's: this layer only regenerates the built-in table. feat(appearance): apply OpenClaw dashboard themes to the Companion #2218's upgrade run shows a profile written by stable 2026.11.1 loading unchanged on the themes head and gaining only Appearance when a theme is picked (stable, first launch, after a restart). A regenerated table changes built-in palettes and branding, not saved fields: a built-in selection stores only its id and display name, and resolves from the table at load.
  • Hosted ClawSweeper on 78aabbe9: proof 4/6 and patch quality 4/6, no findings, nothing listed before merge ("Ready, awaiting maintainer decision"). Overall readiness stays at 3/6 because adopting the stack and the App-backed synchronization needs a maintainer decision (the review's Decision needed); the two external UI failures above are the other reason it names.

Real Behavior Proof

  • Environment tested: Windows 11 developer machine, PowerShell 7.6, gh authenticated to github.com, Microsoft Edge; read-only GitHub API and release download (no repository writes).
  • PR head or commit tested: 13c328b3.
  • Exact steps or command run: ./scripts/Resolve-GatewayThemeUpstream.ps1, ./scripts/Update-GatewayThemeTable.ps1 -UpstreamRef <resolved commit>, then the workflow's two dotnet test commands against the regenerated table, as listed in Evidence.
  • Evidence after fix: see Evidence above.
  • Observed result: the latest stable packaged Gateway (v2026.11.1-msix.0) resolves to openclaw 2026.11.1 at 4ffdd204, which differs from the current table, so an enabled run would regenerate, pass the theme tests and open a sync pull request.
  • Screenshot or artifact links verified? (Yes/No/N/A) N/A
  • Not verified or blocked: the scheduled run itself and pull-request creation cannot run until a maintainer provisions the App and variables; Publish-GatewayThemeSync.ps1 has not executed against GitHub.

Security Impact

  • New permissions or capabilities? (Yes/No) Yes
  • Secrets or tokens handling changed? (Yes/No) Yes
  • 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 workflow reads public release metadata and downloads the public packaged Gateway MSIX (SHA-256 verified against the release digest, never installed or executed) with GITHUB_TOKEN (contents: read). The App token (Contents and Pull requests write) is minted only after the table regenerates and its tests pass, only on this repository's default branch (compared as a full refs/heads/ ref) and only when GATEWAY_THEME_SYNC_ENABLED is true. It is never written to git config or logged, and it can write only to the bot branch and its pull request; the change still needs normal review and CI to merge.

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: to enable pull requests, create the App and set GATEWAY_THEME_SYNC_APP_ID, GATEWAY_THEME_SYNC_APP_PRIVATE_KEY and GATEWAY_THEME_SYNC_ENABLED=true. Without them the workflow publishes nothing.

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 14, 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.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 14, 2026
@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Codex review: ready, awaiting a maintainer decision.

What this changes

Adds daily synchronization of built-in themes with the stable packaged Gateway, alongside the stacked Companion theme and branding features.

Example: The packaged Gateway v2026.11.1-msix.0 contains upstream commit 4ffdd2047d192dd65554de3c8c46c0e0197c6e2a.

  • Before: The built-in table remains pinned to 220ca12e0732ab599c5a9b6434ac699f6750728f until manually regenerated.
  • After: The workflow detects the difference, regenerates and tests the table, and publishes one update PR when explicitly enabled.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, supported implementation with the prior finding resolved; overall readiness remains conditional on product direction, draft dependencies, and unresolved required CI results.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Companion screenshots exercise theme selection, branding, and stable-profile restart; verified source equivalence supports their reuse, while terminal evidence exercises real packaged-release resolution and regeneration. Scheduled publishing remains explicitly untested automation, which requires no shipped-entry-point proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Companion themes can differ from the dashboard, and a manually pinned palette table can drift from the packaged Gateway.
Reason: The implementation has a coherent maintenance benefit, but the new appearance controls and ongoing App-backed automation require an owner decision.

Merge readiness

⏳ Ready, awaiting maintainer decision

Keep open: this PR contains distinct work absent from main and depends on two open theme PRs; no actionable correctness finding remains, but adopting the feature and automation needs maintainer direction.

Priority: P3
Reviewed head: 78aabbe9119712345b3d63d8d5ec3142397047f0
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should Companion adopt the stacked Gateway appearance feature and daily App-backed theme-table synchronization?
  • Recommendation: Adopt the stack and opt-in synchronization: Approve the appearance direction, land its prerequisite layers, and provision publishing when ready.
  • Why: This introduces appearance settings, persisted theme snapshots, and repository automation; no written maintainer approval of that direction was found.

Before merge

None.

Findings

None.

Agent review details

How this fits together

Release-resolution scripts read verified Gateway package metadata, the generator converts upstream theme definitions and CSS into bundled palettes, and Companion applies those palettes through its appearance settings and WinUI resources.

flowchart LR
  A[Stable packaged Gateway] --> B[Verified payload metadata]
  B --> C[Upstream theme generator]
  C --> D[Generated palette table]
  D --> E[Theme validation]
  E --> F[Optional bot pull request]
  D --> G[Companion appearance]
Loading

Technical review

Best possible solution:

After approving the theme stack, retain the existing verified release resolver and table-only synchronization workflow with publishing disabled until maintainers enable it.

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

This proposes new functionality; the supplied real-release dry run demonstrates a mismatch between the packaged Gateway commit and the generated table's pin.

Is this the best way to solve the issue?

The maintenance problem is palette drift, and the invariant is that generated palettes match verified packaged sources without changing user choices; reusing the existing package resolver and publishing only the generated table is a focused solution.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Packaged release resolution keeps the original intent (66343f7: Provide a reproducible packaged Gateway channel with verified payload provenance.)
  • Windows theme preference keeps the original intent (1fb28ee: Apply the saved light, dark, or system preference through the native theme helper.)
  • Native chat typography changes intended behavior with a stated reason (243f9cf: Align native conversation typography and presentation with web chat.)
  • Companion brand mark changes intended behavior with a stated reason (0d11a8a: Use one shared OpenClaw red-bot brand control across native surfaces.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced change and current-main boundary: Reviewed the pinned introduction and isolated the final automation commit from its branding parent; fetched main contains neither the theme directory nor the sync workflow. (.github/workflows/gateway-theme-sync.yml:1, 78aabbe91197)
  • Open stacked dependencies: The body explicitly stacks this PR on feat(appearance): follow dashboard theme branding in the Companion #2219 and feat(appearance): apply OpenClaw dashboard themes to the Companion #2218; both remain open drafts by the same author. (78aabbe91197)
  • Workflow authority and publishing: Publishing credentials are available only on the repository default branch, after regeneration and tests succeed, with explicit enablement; publishing stages only the generated table and pushes with an observed-head lease. (.github/workflows/gateway-theme-sync.yml:94, 78aabbe91197)
  • Prior finding resolved: The Gateway theme, follow, and Mica controls now use AutomationProperties.LabeledBy with localized headers; the added UI test checks their automation peers. (src/OpenClaw.Tray.WinUI/Pages/SettingsPage.xaml:110, 78aabbe91197)
  • Inspected runtime and upgrade evidence: Inspected native Windows-default/Tide settings, default/CRT running chat, and stable-release/first-launch/restart upgrade screenshots linked by the stacked PRs. The upgrade retains Dark mode and notifications, then restores Manuscript after restart. GitHub tree comparisons confirm the upgrade-tested production sources match the themes parent and the branding-tested owners match the branding parent. (src/OpenClaw.Shared/Themes/AppearanceSettings.cs:14, 78aabbe91197)
  • Validation and inspection limits: Current-head CI has two failed UI jobs and a failed aggregate gate. The same UI jobs passed on the branding parent, but that alone does not establish an unrelated cause; log retrieval was blocked at productionresultssa1.blob.core.windows.net. Earlier review/proof commits were unavailable locally, so proof-source equivalence was checked through GitHub trees instead. No builds, tests, or review helpers were run. (78aabbe91197)

Likely related people:

  • Karen: Raw commit 66343f7 adds scripts/GatewayPackagedRelease.psm1:10 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 66343f741134; files: scripts/GatewayPackagedRelease.psm1)

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.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on maintainer.

Label justifications:

  • P3: Optional appearance features and maintenance automation have no demonstrated urgent user regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • 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 (1 earlier review cycle)
  • reviewed 2026-11-14T06:12:21.782Z sha 13c328b :: needs real behavior proof before merge. :: [P3] Localize the appearance controls' accessible names

Reviewed November 14, 2026, 6:50 AM ET / 11:50 UTC (Revision 2).

@paulcam206
paulcam206 force-pushed the paulcam206-gateway-theme-sync branch 5 times, most recently from 0464e61 to 6b17ba1 Compare November 14, 2026 10:55
General settings can apply one of the Gateway's dashboard themes: the
built-in themes, plus plugin and imported themes read from the connected
Gateway through themes.list and themes.get. A separate "Mica backdrop"
setting chooses tinted Mica or the theme's opaque canvas, and "Follow
Gateway theme" (off by default) shows the theme selected in the
dashboard instead of the Companion's own choice.

- OpenClaw.Shared models themes, expands palettes and persists the
  appearance choice; BuiltinGatewayThemes is generated from the upstream
  dashboard table, and the OFL fonts the themes name are bundled.
- AppThemeApplicator recolors the bound Fluent, App and chat brushes in
  the Default and Light dictionaries and swaps the UI, chat and code
  fonts. App brushes and gradients bound to a Windows accent shade (the
  Hub navigation indicator, usage, systems, automations and voice
  visuals) take the theme's matching accent shade and return to the
  Windows accent with the Windows look. High Contrast dictionaries are
  never changed.
- GatewayThemeFollower records the Gateway's selected theme from
  themes.list (re-read on users.prefs.changed) while following. A theme
  the Companion can't render keeps the last followed theme, then the
  manual choice. The Companion never calls themes.set or writes prefs.
- Theme fonts reach all text: TypographyResources.xaml re-declares the
  Fluent type ramp (WinUI's styles hard-code XamlAutoFontFamily) and
  anchors pages, flyouts, menus and dialogs, ThemeHelper anchors window
  roots, and the chat user bubble follows the chat font.
- BackdropPolicy tints Mica or paints the opaque canvas in Mica windows
  and dialogs. A window keeps its themed backdrop once adopted and resets
  the tint for the Windows look, because swapping backdrops across the
  theme refresh made WinUI raise ArgumentException("target").
- The gateway-themes fixture scenario serves a synthetic catalog for
  proof and UI tests, and its select command changes the reported
  selection.
A LayoutCycleException reaches the unhandled-exception handler with no
managed stack, which left a model-picker hang on a themed install with
nothing to trace. Log the active theme, the focused element and the open
popups alongside the crash entry, and have Dev builds keep WinUI's
layout-cycle trace (native debugger output and stowed exceptions).
Themes that drop the claw mascot (Phosphor and CRT among the built-ins)
now look that way in the Companion too: the chat working indicator and
the Companion's own brand spots follow the applied theme's branding.

- ThemeBranding resolves the mascot, brand icon and working indicator
  with upstream resolveThemeBranding's defaults; unknown values count as
  missing. Built-in branding comes from the generated table (the
  generator now reads BUILTIN_THEMES' branding and fails on unknown
  values); plugin and imported themes take it from their descriptor, and
  snapshots keep it for offline restarts.
- The working indicator shows the claw (Windows default), three pulsing
  dots in the theme accent, the brand mark, or no glyph with the run
  status words visible instead.
- BrandMark shows the OpenClaw claw image or the dashboard's neutral mark
  in the theme's primary colors, in dialogs and the tray menu header,
  switching live. Plugin artwork brand icons fall back to the mark.
  Window, taskbar, tray and package icons stay the OpenClaw identity.
…ateway release

A daily workflow reads the openclaw commit that the latest stable openclaw-windows-packaging release ships from its verified payload, regenerates BuiltinGatewayThemes.g.cs when it moved, runs the theme tests (including the bundled-font check) and opens or updates one pull request from automation/gateway-theme-sync with a GitHub App token. Resolution lives in scripts/GatewayThemeUpstream.psm1 with offline tests in CI; the built-in table test now checks invariants instead of a pinned theme list so new upstream themes can sync.
@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 14, 2026
@paulcam206 paulcam206 closed this Nov 17, 2026
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant