Skip to content

feat(themes): offer Gateway themes and follow the dashboard's theme - #2294

Merged
bkudiess merged 8 commits into
paulcam206-themes-03-micafrom
paulcam206-themes-04-gateway
Nov 26, 2026
Merged

bkudiess merged 8 commits into
paulcam206-themes-03-micafrom
paulcam206-themes-04-gateway

Conversation

@paulcam206

@paulcam206 paulcam206 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

While the Companion is connected, the Gateway theme picker also offers the Gateway's plugin and imported themes, read with themes.list and themes.get (operator.read, Gateway 2026.9+). A new Follow Gateway theme setting (off by default) shows whatever theme is selected in the dashboard and switches live when it changes there, driven by the Gateway's users.prefs.changed and plugins.changed events.

A chosen Gateway theme is saved as a validated definition snapshot, so it still renders when the Gateway is offline or gone. Themes whose text falls below 3:1 contrast are neither offered nor applied. If the dashboard selects a theme the Companion can't render, the last followed theme stays, then the manual choice. The Companion only reads: it never calls themes.set or writes preferences. The fixture Gateway gains a gateway-themes scenario (synthetic catalog plus a select <id> control that publishes users.prefs.changed) for tests and proof.

This is part 4 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, 6ebe234d feat(themes): offer Gateway themes and follow the dashboard's theme. It depends on #2293 (the Mica setting).

This commit is 7a2b6cb0 rebased onto main 1af25869, and git range-diff shows the same patch, apart from hunk context beside the agent.identity.changed case that #2277 added to OpenClawGatewayClient, and the corrected High Contrast sentence in DESIGN.md carried from the Mica layer. Evidence and validation below name the heads they ran on; in this stack 7a2b6cb0 is now 2fe3da1d, 783b9ed7 is now 3f14cc1f and 2e98953a is now 3c4cacae.

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

Themes architecture

Layer 4 of 11 in the Companion themes stack. This layer reads the Gateway's theme catalog (themes.list and themes.get) so plugin and imported themes can be picked, and adds the follower that tracks the dashboard's selected theme. 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 CAT,FOL layer
Loading

What Problem This Solves

The Companion can't use plugin or imported dashboard themes, and it can't stay in step with the theme someone picks in the dashboard.

User Impact

User impact: people can apply any theme their Gateway offers, or turn on Follow Gateway theme to keep the Companion matching the dashboard automatically. Nothing changes until they opt in.

Why This Change Was Made

  • The catalog is connection-scoped: it re-reads on reconnect and on the Gateway's change events, runs at most four definition reads at once, and publishes the selection as soon as themes.list returns, before slower definition reads finish.
  • Snapshots keep a chosen theme usable offline, and every definition is validated against upstream's limits and the legibility floor before use or storage.
  • Following never writes back, so the Companion can't change someone's dashboard.

Evidence

The picker at this PR's head, connected to the fixture Gateway, lists the eleven built-ins and the fixture's plugin themes: Windows default | Claw | Knot | Dash | Absolutely | Tide | Beacon | Phosphor | CRT | Manuscript | Rosé | Miami | Fixture Neon Night | Fixture Paper Mint | Fixture Sunset.

Follow Gateway theme, built and run at this PR's head (7a2b6cb0) on a Windows 11 guest (Crabbox Hyper-V, build 29683) in light mode with the App theme Dark, OpenClaw.GatewayFixtureHost --scenario gateway-themes. A script used UI Automation in Settings and typed select into the fixture Gateway's console:

Manual Tide Follow on, dashboard selects Manuscript Manuscript in chat Dashboard switches to Claw Claw in chat Follow off, then Windows default
Manual Tide Following Manuscript Manuscript chat Following Claw Claw chat Windows default

The saved Appearance after each step (from the run's log):

Tide:               {"Theme":{"Id":"tide",…},"UseMica":true,"FollowGatewayTheme":false}
select manuscript:  {"Theme":{"Id":"tide",…},"FollowGatewayTheme":true,"FollowedTheme":{"Id":"manuscript",…}}
select claw:        {"Theme":{"Id":"tide",…},"FollowGatewayTheme":true,"FollowedTheme":{"Id":"claw",…}}
Follow off:         {"Theme":{"Id":"tide",…},"FollowGatewayTheme":false,…}
Windows default:    {"UseMica":true,"FollowGatewayTheme":false,…}

Standalone dialogs at this head, captured by GatewayThemeBackdropTests (5 passed, OPENCLAW_UI_PROOF_DIR set) on the same guest: the pairing dialog with Tide applied, the same dialog after the theme is cleared to Windows default with Mica on and off, and a dark-only plugin theme that pins the dialog to its mode:

Tide applied Cleared, Mica on Cleared, Mica off Dark-only theme
Tide dialog Cleared, Mica on Cleared, Mica off Dark-only theme

Upgrade from the released Companion, run on a Windows 11 guest in light mode for the runtime-palette PR stacked on this one (#2301, at its earlier head 2e98953a, which contained this stack's previous top 783b9ed7): the latest stable Companion, v2026.11.3 (portable zip, SHA-256 verified against the release digest, the artifact CI's released-profile check uses), was paired to a real Gateway 2026.11.4 on an isolated profile, then that build opened the same profile. Notification settings, App theme Dark, the gateway record, device id and device token were preserved, with no new pairing request. Manuscript, picked in Settings, stayed applied in dark mode after a restart (canvas #211E18), and the only settings.json change was the added Appearance block. Capture after the upgrade and restart; the settings diff and full record are in #2301's description.

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: the picker and follow behavior change visible Settings and chat surfaces; proven with native UI tests and screenshots on an interactive Windows guest against the fixture Gateway.

Validation

  • After rebasing onto main 30cfe593 (fix: match inline code chips to the chat theme #2307), on the new stack top 601932d6, which contains this commit: ./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.
  • On 6c585201, this layer's first native head (this layer's own change matches this head's apart from one DESIGN.md sentence): ./build.ps1 succeeded; Shared tests with --filter "FullyQualifiedName~Theme|FullyQualifiedName~Appearance": 70 passed, 0 failed; Tray tests with --filter "FullyQualifiedName~Theme|FullyQualifiedName~Settings|FullyQualifiedName~Appearance|FullyQualifiedName~DesktopCompanion|FullyQualifiedName~Chat": 2576 passed, 0 failed; UI tests with --filter "FullyQualifiedName~GatewayTheme": 18 passed, 0 failed.

On 7a2b6cb0:

  • ./build.ps1: all builds succeeded.
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore --filter "FullyQualifiedName~Theme|FullyQualifiedName~Appearance": 70 passed, 0 failed.
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter "FullyQualifiedName~Theme|FullyQualifiedName~Settings|FullyQualifiedName~Appearance|FullyQualifiedName~DesktopCompanion|FullyQualifiedName~Chat": 2576 passed, 0 failed.
  • dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj -r win-x64 --filter "FullyQualifiedName~GatewayTheme" (developer machine, Windows dark mode): 18 passed, 0 failed.
  • Full suites on the stack top 783b9ed7, which contains this commit: ./build.ps1 succeeded; dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 5982 passed, 0 failed, 29 skipped (existing opt-in integration skips); dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 6791 passed, 0 failed.
  • Guest UI tests on the stack top 016f6e1b (Crabbox Hyper-V Windows 11 build 29683, interactive desktop, isolated tray profile, proof captures on), once with Windows in light mode and once in dark: dotnet test tests\OpenClaw.Tray.UITests -c Debug -r win-x64 --filter "Category!=Accessibility&...&(FullyQualifiedName~GatewayTheme|FullyQualifiedName~DesktopCompanionWindowTests|FullyQualifiedName~ChatThemeProofScope|FullyQualifiedName~SettingsPageInsetTests|FullyQualifiedName~ChatMarkdown)": 53 passed, 4 skipped (opt-in pointer tests), 1 failed in each mode. The failure, DesktopCompanionWindowTests.MascotScale_UpdatesLayoutAndHitRegionWithoutScalingOrReplacingPopup(chatOpen: True), needs a larger work area than the guest's 1024x720 at 200% scale.
  • On the stack top ac745c6a, same guest, Windows light then dark: --filter "FullyQualifiedName~GatewayThemeBackdropTests": 5 passed, 0 failed in each mode.

Real Behavior Proof

  • Environment tested: Crabbox Hyper-V guest, Windows 11 Insider Preview build 29683, interactive desktop; OpenClaw.GatewayFixtureHost --scenario gateway-themes (synthetic read-only Gateway serving the built-ins and fixture plugin themes).
  • PR head or commit tested: 7a2b6cb0 for the build, unit tests (including the authenticated wire test), the picker listing, the follow run and the dialog captures; 016f6e1b for the guest UI tests in both Windows modes.
  • Exact steps or command run: UI Automation reads the picker's items while connected and picks Tide; Follow Gateway theme on, then fixture select manuscript and select claw; Follow off and Windows default; dotnet test tests\OpenClaw.Tray.UITests -c Debug -r win-x64 --filter FullyQualifiedName~GatewayThemeBackdropTests with OPENCLAW_UI_PROOF_DIR set.
  • Evidence after fix: the listing and screenshots above; GatewayThemeCatalogWireTests.FollowingCompanionTracksTheGatewaySelectionPushedByPrefsEvents runs the same flow over an authenticated fixture socket on this head.
  • Observed result: plugin themes appear while connected; following switches Settings and chat live from Manuscript to Claw when the Gateway's selection changes, with the manual picker disabled and showing the followed theme; Follow off and Windows default restore the Windows look; dialogs take the applied theme and drop it when it's cleared.
  • Screenshot or artifact links verified? (Yes/No/N/A) Yes
  • Not verified or blocked: following a real dashboard selection through a live Gateway on this head (proven against the fixture Gateway and the wire test instead).

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 sends themes.list and themes.get over its existing authenticated operator connection, only when the Gateway advertises them and granted operator read. Definitions are validated against upstream's limits and a 3:1 legibility floor before use or storage. No writes, no new endpoints, no artwork or URL fetches.

Compatibility and Migration

  • Backward compatible? (Yes/No) Yes
  • Config or environment changes? (Yes/No) No
  • Migration needed? (Yes/No) No
  • If yes, list the exact upgrade steps: none. Gateways without the theme methods (before 2026.9) offer only the built-ins.

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

Adds Gateway plugin and imported themes, optional dashboard-theme following, and saved snapshots for offline appearance.

Example: The dashboard changes from Manuscript to Claw with Follow Gateway theme enabled.

  • Before: Companion keeps its manually selected theme.
  • After: Settings and chat switch to Claw while preserving the manual choice for when following is disabled.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Useful opt-in feature with inspected native-app evidence, released-profile compatibility evidence, passing exact-head CI, and no actionable findings; no builds or tests were run during this read-only review.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Windows screenshots and the supplied native-app run show manual selection and live following through the fixture Gateway; authenticated wire coverage supports catalog refresh and plugin definitions, while live-dashboard following is explicitly outside the supplied proof.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Companion cannot select Gateway plugin or imported themes or follow dashboard theme changes.
Reason: Maintainer-authored direction adds an opt-in capability with useful offline behavior and preserves existing appearance defaults.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR adds useful theme support absent from current main, and review found no actionable defect.

Priority: P3
Reviewed head: 6ebe234d9f3cc34ee8c7d36036e5d0eacb29cd61

Before merge

None.

Findings

None.

Agent review details

How this fits together

The existing authenticated operator client supplies theme catalogs and change events to a connection-scoped catalog; the follower saves validated appearance selections for the existing WinUI theme applicator.

flowchart LR
  Gateway[Gateway themes and events] --> Client[Operator client]
  Client --> Catalog[Theme catalog]
  Catalog --> Settings[Settings picker]
  Catalog --> Follower[Theme follower]
  Settings --> Appearance[Persisted appearance]
  Follower --> Appearance
  Appearance --> UI[WinUI theme applicator]
Loading

Technical review

Best possible solution:

Land this layer after its stack dependencies while retaining manual choices, validated offline snapshots, and existing Windows mode and High Contrast ownership.

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

This is a feature addition; source inspection confirms current main lacks the requested Gateway catalog and following behavior.

Is this the best way to solve the issue?

The catalog and follower have distinct connection and persistence responsibilities, reuse existing transport and settings owners, and form a coherent implementation without identifiable unnecessary machinery.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Manual appearance selection and persistence keeps the original intent (bbdefc6: Model dashboard themes with tolerant persisted appearance settings.)
  • Settings picker and theme application keeps the original intent (8c28942: Apply dashboard palettes through existing WinUI resource and window owners while preserving Windows default and High Contrast.)
  • Mica preference keeps the original intent (f0ce273: Provide a live backdrop preference for Windows default without changing themed opacity.)
  • Settings state ownership keeps the original intent (d2638dd: Keep Settings presentation WinUI-free and persist changes through the shared settings store.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Distinct from current main: Current main has AppTheme but no Appearance setting or theme subsystem; the introduced catalog and follower remain unique work. (src/OpenClaw.Shared/SettingsData.cs:198, c38dbcc53e7d)
  • Pinned implementation: The introduced diff adds read-only catalog discovery, connection invalidation, optional following, tolerant persistence, localized controls, and focused fixture coverage. (src/OpenClaw.Tray.WinUI/Theming/GatewayThemeCatalog.cs:80, 6ebe234d9f3c)
  • Authoritative producer contract: The PR directly consumes this repository's themes.list and themes.get protocol, establishing dependency-policy applicability; the inspected handler returns the selected descriptor and optional definition alongside the catalog. (src/gateway/server-methods/themes.ts, 4ffdd2047d19)
  • Visible behavior inspected: Downloaded screenshots show manual Tide, followed Manuscript in Settings and chat, then followed Claw; the supplied run uses the shipped Companion against the gateway-themes fixture on Windows 11. (6ebe234d9f3c)
  • Proof reuse verified: Catalog, follower, appearance persistence, and Settings view-model blobs match the original photographed head. The earlier reviewed SHA was unavailable locally, so GitHub blob identities supplied the comparison. (src/OpenClaw.Tray.WinUI/Theming/GatewayThemeCatalog.cs, 7a2b6cb02ab4)
  • Released-profile compatibility: The linked stack-top upgrade record reports opening a v2026.11.3 profile, retaining notification settings, AppTheme, Gateway and device credentials without re-pairing, and preserving Manuscript after restart; the recorded settings diff only adds Appearance. (src/OpenClaw.Shared/Themes/AppearanceSettings.cs:68, 6ebe234d9f3c)

Likely related people:

  • Barbara Kudiess: Raw commit d2638dd adds src/OpenClaw.Tray.WinUI/Presentation/SettingsPageViewModel.cs:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d2638ddbef57; files: src/OpenClaw.Tray.WinUI/Presentation/SettingsPageViewModel.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.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: Optional appearance functionality with unchanged defaults and no demonstrated urgent user regression.
  • 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:16:41.978Z sha 6c58520 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-18T01:56:13.421Z sha e5988bb :: needs maintainer review before merge. :: none
  • reviewed 2026-11-18T03:21:04.821Z sha 2fe3da1 :: needs maintainer review before merge. :: none

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

@paulcam206
paulcam206 force-pushed the paulcam206-themes-04-gateway branch from 6c58520 to e5988bb Compare November 18, 2026 01:20
@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-04-gateway branch from e5988bb to 2fe3da1 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:

@paulcam206
paulcam206 marked this pull request as ready for review November 18, 2026 03:38
While connected, the theme picker also offers the Gateway's plugin and
imported themes (themes.list and themes.get, operator.read, Gateway
2026.9+), re-read on plugins.changed and users.prefs.changed. A chosen
Gateway theme is saved as a validated definition snapshot, so it still
renders offline; themes below a 3:1 text contrast are neither offered
nor applied. A new "Follow Gateway theme" setting (off by default) shows
the theme selected in the dashboard and updates live; a theme the
Companion can't render keeps the last followed one, then the manual
choice. The Companion never calls themes.set or writes preferences. The
fixture Gateway gains a themes scenario for tests and proof.
@paulcam206
paulcam206 force-pushed the paulcam206-themes-04-gateway branch from 2fe3da1 to 6ebe234 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 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. labels Nov 18, 2026
bkudiess and others added 2 commits November 25, 2026 09:53
…sce catalog reads

A Gateway theme reply with an escaped unpaired surrogate made JsonElement.GetString throw, which aborted the whole catalog refresh. Such a value now rejects only that theme, and parsing a themes.get reply is guarded per theme.

Push events (users.prefs.changed arrives for every preference key) each started a full overlapping catalog read. Reads now run one at a time per connection with a single merged follow-up, and definition reads still queued when the connection changes are not sent.

Restore the layer-3 UseMica and Appearance documentation that the merge overwrote.

Co-authored-by: Copilot App <[email protected]>
@bkudiess
bkudiess merged commit 2ac4958 into main Nov 26, 2026
32 checks passed
@bkudiess
bkudiess deleted the paulcam206-themes-04-gateway 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