Repository navigation
feat: add an animated desktop lobster with notification bubbles - #1681
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 changes before merge. What this changesAdds an optional animated desktop lobster that displays incoming OpenClaw notifications in speech bubbles and opens existing app surfaces. Example: The user enables Desktop lobster and sends a notification titled "Desktop lobster".
Review scores
ProductKind: Feature · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains This collaborator-authored PR provides a distinct capability absent from current main. The previously reported blocking finding remains unchanged. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherCompanion's existing notification service receives local and Gateway notifications and owns their history. The optional desktop window observes those notifications, displays literal text, and follows the user's Settings choices. flowchart TD
A[Local or Gateway notification] --> B[Existing notification service]
B --> C[Existing notification surfaces]
B --> D[Desktop arrival tracker]
E[Settings toggles] --> D
D --> F[Animated desktop window]
F --> G[Dismiss bubble or open app]
Technical reviewBest possible solution: Keep arrival chronology under the existing notification owner and let the optional overlay consume it without creating another notification queue. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the reported ordering failure: enqueue B, then coalesce existing A before flushing UI callbacks. The tracker selects B and consumes A's update; no runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Mostly yes: the implementation reuses existing notification, Settings, and mascot owners. Queue position must be replaced with actual arrival chronology to deliver the stated latest-notification behavior. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 037c17dcb581. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
Review metrics
LabelsLabel 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 (2 earlier review cycles)
Reviewed October 9, 2026, 3:27 PM ET / 19:27 UTC (Revision 3). |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Add an opt-in animated desktop mascot with notification speech bubbles, native transparent overlay, localization, and lifecycle coverage. Co-authored-by: Copilot App <[email protected]>
Observe handled WinUI pointer events, restore click behavior after drag cancellation, and add guarded native pointer regression tests. Co-authored-by: Copilot App <[email protected]>
Remove the stale Reactor preview pin and use the current isolated app launch command. Co-authored-by: Copilot App <[email protected]>
…urface Adds per-Gateway quick chat with attach and mic, notification Quick reply, a 50-200% size setting, default-on lobster with a Settings shortcut in the options menu, and the LayerOnAcrylic flyout fill and stroke for the bubble. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
56caf15 to
9ab8143
Compare
The overlay window stays transparent for the mascot. The bubble moves to a Popup with DesktopAcrylicBackdrop so the surface is legible over any wallpaper. Co-authored-by: Copilot App <[email protected]>
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
Anchor the popup from native window size and re-anchor on move or resize, hide it while a modal prompt or dialog is open, focus the chat on open, keep menu keys out of the composer, cancel Alt+F4 closes, cap compact chat height, windowed slash popup, and guard Windows 11 DWM attributes. Co-authored-by: Copilot App <[email protected]>
The lobster is on by default, so its overlay window can become the process main window and hide the Workspace window from these tests. Co-authored-by: Copilot App <[email protected]>
The step takes about 13.5 minutes on a healthy run, so runner variance pushes it past the 15 minute limit and fails the gate with no failing tests. Co-authored-by: Copilot App <[email protected]>
Resolve design, architecture and workflow conflicts, keep main's CI sharding, and bring the new tests in line with main's timing-pattern guard. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
Provides a Clippy-like OpenClaw companion that reacts to notifications while the main app is in the background.
User Impact
Users get an animated desktop lobster (on by default, controlled by Settings > General > Desktop lobster). It shows incoming notification text in speech bubbles, can be dragged, and opens a quick chat on click. Notification severity changes its expression. The right-click menu has a Desktop lobster settings shortcut instead of Hide. The mascot size is a dropdown (50% to 200%, default 100%). Chat notifications offer Quick reply, and quick chat keeps a dedicated conversation per Gateway with attach and mic. The bubble and quick chat live in a windowed popup with a
DesktopAcrylicBackdrop(flyout fillLayerOnAcrylicFillColorDefaultBrush, strokeSurfaceStrokeColorFlyoutBrush), so they are legible over any background; the mascot stays in the transparent overlay window.Privacy: the lobster is on by default and exposes notification text outside the app, including during screen sharing. Notifications still require Show notifications. Position is not persisted across app restarts. This is a stationary companion, not a roaming desktop pet or an independent startup process.
Draft: the final interactive pointer sweep and independent rubber-duck review remain incomplete; this PR is not presented as merge-ready.
Why This Change Was Made
Uses the existing Microsoft.UI.Reactor stack to declare the surface and retains the setup mascot through
XamlHostElement, reusing its animation engine, accessibility preferences, and artwork rather than introducing a browser renderer or sprite framework. The eSheep investigation and animation catalog are documented indocs/DESKTOP_LOBSTER.md; no eSheep code or artwork is copied.AppNotificationServiceretains notification/history ownership. The new controller tracks arrivals without replaying startup backlog; Reactor owns visual projection, and the native window adapter owns placement, pointer input, timeout, and disposal. The architecture ledger records these boundaries. The latest arrival replaces the bubble instead of creating a second queue.A shaped transparent, nonactivating topmost window excludes unused space from hit testing. DWM configuration plus
WM_NCCALCSIZEremove the outer frame/shadow. Drag handlers observe Button-handled pointer events, with click suppression limited to the drag gesture.Evidence
Branch rebased onto an earlier
mainand now merged with currentmain(origin/mainat3d5f1427). The full build and the required Shared and Tray suites pass on the merged head. In an isolated fixture app on the merged head, I enabled the lobster from Settings > General, sentsystem.notifythrough local MCP, and observed the bubble with its heading and message (also with no title, which falls back to "OpenClaw"). Earlier native input coverage passed dragging with and without a bubble, repeated repositioning, capture-loss cancellation, and accessible menu invocation afterward.Gaps: the final native pointer sweep and independent rubber-duck review are not done,. The acrylic popup has no speech tail, and its blur strength on varied wallpapers was checked on one machine only.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: transparent overlay, visible notification reactions, native pointer dragging, keyboard/accessibility behavior, and Settings opt-in. Final pointer sweep is blocked by a locked desktop.windows-11-arm64: native ARM64 build, launch, and WinUI/Win32 overlay behavior. ARM64 build and isolated launch were exercised; this does not substitute for the incomplete interactive pool.Validation
Local results from November 12, 2026 on the merged head (
9ab8143e), withOPENCLAW_REPO_ROOTset to this worktree and isolated tray data. The native UI suite (OpenClaw.Tray.UITests) was not re-run on this head..\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restoregit diff --checkReal Behavior Proof
chat-interactivescenario) with its local MCP endpoint.ab192dbb(acrylic popup on top of theorigin/mainmerge)..\scripts\run-gateway-fixture.ps1 -Scenario chat-interactive -AppPath <this build>; turned on Desktop lobster in Settings > General; thenwinnode --mcp-url <fixture-url> --command app.settings.set --params '{"name":"ShowNotifications","value":"true"}'andwinnode --mcp-url <fixture-url> --command system.notify --params '{"title":"Build finished","body":"..."}', with the fixture profile selected throughOPENCLAW_TRAY_DATA_DIR.system.notifyreturned{"sent":true}and the app exposed a separate "OpenClaw desktop lobster" window. On the previous head I also observed the bubble visually (heading, message, flyout fill and stroke) and verifiedWS_EX_TOPMOSTon the window; a notification without a title showed the heading "OpenClaw".Yes/No/N/A): Yes. Captured onab192dbbwithscreen.snapshotagainst the isolated fixture (screen capture enabled only in that profile), cropped to the lobster. Notification bubble, then quick chat opened by clicking the mascot:Security Impact
Yes/No): No.Yes/No): No.Yes/No): No.Yes/No): No.Yes/No): No; uses the existing admitted app notifications.Yes, explain the risk and mitigation: N/A. Display exposure does change: notification text can be visible on the desktop and in screen shares. The lobster is on by default; it only shows notifications while Show notifications is on, Settings discloses this, and disabling notifications or the lobster clears its bubble. Text is rendered literally, not as markup or executable actions.Compatibility and Migration
Yes/No): Yes.Yes/No): Yes. Adds the default-trueShowDesktopCompanionsetting and theDesktopCompanionScalePercentsetting (default 100). Native pointer proof requires the opt-inOPENCLAW_DESKTOP_COMPANION_POINTER_PROOF=1test environment variable.Yes/No): No.Review Conversations