Repository navigation
feat(themes): paint the desktop lobster's bubble with the Gateway theme - #2298
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesMakes the desktop lobster’s notification and quick-chat bubble follow the Companion’s theme, Mica setting, and light or dark mode. Example: Select Rosé dark while the desktop lobster’s bubble is open.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open for landing with the theme stack: this maintainer-authored PR has useful visual proof, successful current-head CI, and no actionable findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe desktop companion hosts Reactor bubble content in a separate windowed popup; appearance settings and resolved palettes enter its surface policy, which supplies the popup backdrop and rendered brushes. flowchart TD
A[Companion appearance] --> B[BackdropPolicy]
B --> C[DesktopCompanionWindow]
D[Popup light or dark mode] --> C
C --> E[PopoverSurfacePolicy]
E --> F[Reactor bubble brushes]
C --> G[PopoverAcrylicBackdrop]
Technical reviewBest possible solution: Land this focused popup appearance layer after its prerequisite theme layers while preserving Fluent and High Contrast behavior. Do we have a high-confidence way to reproduce the issue? The pinned base hard-codes the Fluent fill and stock acrylic path; supplied Windows captures demonstrate the repaired appearance, while this read-only review performed no runtime reproduction. Is this the best way to solve the issue? The change uses the existing backdrop decision owner and presentation state, with a justified native adapter for the popup’s independent light or dark mode. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c38dbcc53e7d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource 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
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)Reviewed November 18, 2026, 6:46 PM ET / 23:46 UTC (Revision 4). |
fc81def to
ae6875f
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
ae6875f to
1bf0dfa
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
The desktop lobster's notification and quick-chat bubble lives in a windowed popup that neither AppThemeApplicator nor BackdropPolicy reached. Its translucent Fluent fill, which the theme projection skips, stayed grey under every theme. PopoverSurfacePolicy chooses the bubble's backdrop, fill and stroke through ThemeBackdropPolicy, like Mica windows: a Gateway theme paints the dashboard toast's opaque --popover and --border with the acrylic removed, Windows default keeps Fluent's acrylic with the Mica setting on and its opaque flyout fill with it off, and High Contrast keeps Fluent's resources. DesktopCompanionWindow re-applies it on BackdropPolicy.Configured and when the bubble's light/dark mode changes, without replaying the entrance. The stock DesktopAcrylicBackdrop on a popup follows the application theme (the Windows app mode), so a dark Companion on light Windows drew white text on white acrylic. PopoverAcrylicBackdrop drives a DesktopAcrylicController with the bubble's own theme. A source-text test that grepped for the stock backdrop is replaced by behavioral UI tests.
1bf0dfa to
9a01d26
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Preserve the popup theme reentrancy guard alongside the parent visibility animation state. Retain both the lobster surface regression cases and the parent accent-resource inventory regression. Co-authored-by: Copilot App <[email protected]>
Use a local action foreground when projected accents collide with the popover, preserve native resource restoration, and restore Reactor ownership coverage. Co-authored-by: Copilot App <[email protected]>
Enumerate owned keys rather than inherited lookups and verify restored native hover and pressed foregrounds. Co-authored-by: Copilot App <[email protected]>
Capture rendered baseline foregrounds after native state animation completion so Light popovers remain independent of the test application mode. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Keep the native hyperlink and its state template. When a theme accent collides, set the visible label ink rather than replacing resources already captured by the presenter storyboards. Observe the live label and active state across theme switches. Co-authored-by: Copilot App <[email protected]>
Verify accessible naming and invoke support on the same control before driving its states, including after restoring Windows resources. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
The desktop lobster's notification and quick-chat bubble now follows the Companion's appearance. It lives in its own windowed popup, outside the windows the theme and backdrop code reached, and its translucent Fluent fill is one the theme projection deliberately skips, so it stayed grey (
#333333) under every theme. Under a Gateway theme the bubble now paints the dashboard toast's surface, an opaque--popoverfill with the--borderstroke and no acrylic, like Gateway-themed windows. Windows default keeps Fluent's acrylic with the Mica setting on and Fluent's opaque flyout fill with it off. High Contrast keeps Fluent's resources.The bubble re-applies live whenever the Companion reconfigures its appearance (
BackdropPolicy.Configured) and when its own light/dark mode changes, without replaying its entrance or re-announcing. A second issue surfaced in proof: the stockDesktopAcrylicBackdropon a popup follows the application theme, which tracks the Windows app mode, so a dark Companion on light Windows drew white text on white acrylic.PopoverAcrylicBackdropdrives aDesktopAcrylicControllerwith the bubble's own theme instead. The dashboard defines no per-theme lobster color, so the mascot keeps its own palettes.This is part 8 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,
9a01d269 feat(themes): paint the desktop lobster's bubble with the Gateway theme. It depends on #2297 (background artwork).This commit is
f01a05cdrebased onto main1af25869, andgit range-diffshows the same patch. Evidence and validation below name the heads they ran on; in this stackf01a05cdis now1bf0dfaa,783b9ed7is now3f14cc1fand2e98953ais now3c4cacae.Rebased again onto main
30cfe593, which includes #2307 and #2308: this commit is now9a01d269(was1bf0dfaa), andgit range-diffshows the same patch. Evidence below that names1bf0dfaaor an earlier head ran on this same patch.Themes architecture
Layer 8 of 11 in the Companion themes stack. This layer extends the appearance to the desktop lobster's bubble, which paints the theme's popover surface under a Gateway theme and keeps Fluent's acrylic with the Windows default look. 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 BUB layerWhat Problem This Solves
Fixes: the desktop lobster's chat bubble stays grey under a Gateway theme, and shows white text on white acrylic when the Companion is dark and Windows is light.
User Impact
User impact: the lobster's bubble matches the theme the rest of the Companion uses, and stays readable whatever the Windows app mode.
Why This Change Was Made
PopoverSurfacePolicydecides the bubble's backdrop, fill and stroke through the sameThemeBackdropPolicyas windows, so popovers can't drift from the window rule. A translucent plugin--popovertoken is composited onto the canvas first, so the desktop never shows through.BackdropPolicyexposes its current Mica setting and theme plus aConfiguredevent for surfaces it doesn't own; the window unsubscribes when it closes.Theme.Ref, the running Companion kept the frame on the app mode's fill: a dark Companion on light Windows that cleared a theme with Mica off showed a blank white bubble (captured below). The dictionary brushes for the mode the app isn't running in can carry the app mode's colors until that mode renders, so the color tokens are read instead.--popover-foreground. When that text can't be read on a theme's--popover(an imported theme whose popover expects its own foreground), the bubble uses the theme's--card, which the legibility floor checks with that text.new DesktopAcrylicBackdrop()is replaced by behavioral UI tests that cover its markers.Evidence
Lobster bubble over a stand-in canvas in each theme's shell color, captured by
DesktopCompanionWindowTests.OpenBubble_FollowsGatewayThemeMicaAndLightDarkLivein proof mode at this PR's head (f01a05cd) on a Windows 11 guest (Crabbox Hyper-V, build 29683) in light mode:The running Companion at this PR's head, same guest, App theme Dark on light Windows: the lobster's quick chat open over the Workspace, Gateway theme and Mica setting changed in Settings through UI Automation, the bubble's header and rim sampled from the screen after each change:
#333333(acrylic)#26233A#26233A#2C2C2C#26233A#26233A#333333(acrylic)The earlier head of this PR,
7042b665, run through the same sequence, drew the bubble blank#FFFFFFonce the theme was cleared with Mica off, under its white text, and stayed that way until Mica was turned back on:The mascot overlapping a maximized Workspace's send button is placement, not sizing: it spawns 16 px from the work area's bottom-right and its position isn't saved yet.
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 top783b9ed7): 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 addedAppearanceblock. Capture after the upgrade and restart; the settings diff and full record are in #2301's description.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: the desktop lobster's popup surface and backdrop change; proven with native UI tests and captures on an interactive Windows guest.Validation
30cfe593(fix: match inline code chips to the chat theme #2307), on the new stack top601932d6, which contains this commit:./build.ps1succeeded;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.1af25869, on the new stack top3c4cacae, which contains this commit:./build.ps1succeeded;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
f01a05cd:./build.ps1: all builds succeeded.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore --filter "FullyQualifiedName~Theme|FullyQualifiedName~Appearance": 86 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": 2586 passed, 0 failed.dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj -r win-x64 --filter "FullyQualifiedName~GatewayTheme"(developer machine, Windows dark mode): 24 passed, 0 failed.dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj -r win-x64 --filter "FullyQualifiedName~DesktopCompanionWindowTests"(developer machine, Windows dark mode): 26 passed, 0 failed, 4 skipped (opt-in pointer tests).783b9ed7, which contains this commit:./build.ps1succeeded;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.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.ac745c6a, same guest, Windows light then dark:--filter "FullyQualifiedName~GatewayThemeBackdropTests": 5 passed, 0 failed in each mode.Real Behavior Proof
f01a05cdfor the build, unit tests,DesktopCompanionWindowTestson the guest (25 passed, 4 skipped opt-in pointer tests, 1 failed: the work-area case below) and on the developer machine (26 passed, 4 skipped), and the captures;7042b665for the before-the-fix run;016f6e1bfor the guest UI tests in both Windows modes.dotnet test tests\OpenClaw.Tray.UITests -c Debug -r win-x64 --filter FullyQualifiedName~DesktopCompanionWindowTests, withOPENCLAW_UI_PROOF_DIRset for the captures; the real-app run starts the Companion underOpenClaw.GatewayFixtureHost --scenario chat-interactive --theme Darkwith an isolated profile, turns on the desktop lobster and opens its quick chat, then changes the Gateway theme and Mica setting in Settings through UI Automation and samples the bubble from the screen.GatewayThemeSettingsTests.LobsterBubbleTakesTheOpaqueThemePopoverAndYieldsToHighContrast(6 cases),LobsterBubbleKeepsTheWindowsLookExactlyWithoutATheme,OpaqueLobsterBubbleCompositesATranslucentPopoverOntoTheCanvas,LobsterBubbleKeepsItsTextReadableWhenAThemesPopoverExpectsAnotherForeground(white text and a#AAAAAApopover over a black card fall back to the card; it fails without the fallback).Yes/No/N/A) YesDesktopCompanionWindowTests.MascotScale_…(chatOpen: True)fails on the guest because its work area (1024×720) is smaller than the chat-open bubble at 200% scale (820 DIP), so clamping moves the anchor; it's environmental, unrelated to this change, and failed the same way before it.Security Impact
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain the risk and mitigation: N/ACompatibility and Migration
Yes/No) YesYes/No) NoYes/No) NoReview Conversations