Repository navigation
fix: desktop lobster notification test races mascot rendering - #2178
Conversation
Wait for notification and dismissal state across both Reactor hosts instead of treating bubble layout as mascot readiness. Preserve severity, literal-text, dismissal, and retained-mascot assertions without sleeps or retries. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 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 changesThis PR waits for notification text, bubble visibility, and mascot mood together during presentation and dismissal. Example: A Warning notification displays “<b>Literal text</b> & a lobster”.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR fixes a concrete test synchronization race still present on main, without weakening coverage or changing production behavior. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherDesktopCompanionWindow sends presentation state to separate Reactor hosts for the mascot and notification bubble; the native UI test observes both rendered results. flowchart TD
A[Native UI test] --> B[DesktopCompanionWindow]
B --> C[Presentation state]
C --> D[Mascot Reactor host]
C --> E[Bubble Reactor host]
D --> F[Combined readiness assertion]
E --> F
Technical reviewBest possible solution: Use the existing bounded render wait to observe both hosts while preserving severity, literal-text, dismissal and mascot-identity contracts. Do we have a high-confidence way to reproduce the issue? Source establishes independent rendering and premature assertions; the PR cites a Warning/Attentive failure with Actual Idle, but this review could not independently inspect the redirected failure log or execute the test. Is this the best way to solve the issue? The patch addresses the incorrect readiness condition directly using the existing helper, preserves every behavioral assertion, and introduces no additional machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e33f70dfe311. Provenance checked
TestingProof path: in-process harness. 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. 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 Reviewed November 13, 2026, 2:04 PM ET / 19:04 UTC. |
… mood before it renders (#2181) The mascot and the notification bubble reconcile on separate Reactor hosts, so bubble layout or message text does not mean the mascot has rendered the arrival mood. MascotScale captured its original mood too early and could then count the arrival as a scaling change; the Reactor reconcile test read the first-arrival mood and the second arrival's two mood changes once. Wait for the combined bubble and mascot condition with diagnostics, as #2178 does for the notification test. Test-only. Co-authored-by: Copilot App <[email protected]>
Related: #1681 (feat: add an animated desktop lobster with notification bubbles)
What Problem This Solves
Fixes: the desktop lobster notification UI test intermittently fails when the bubble renders before the mascot mood.
User Impact
User impact: no user-visible change; CI no longer assumes the popup and mascot finish rendering together.
Why This Change Was Made
The popup and mascot reconcile on separate Reactor hosts. Wait for the expected mood, bubble visibility and literal text together on presentation and dismissal, rather than using bubble layout as a proxy for mascot readiness. Assert that the original mascot is retained. No sleeps, retries, timeout increases or production changes.
Evidence
Main CI run 43479032853, attempt 1 recorded
Warning / Attentivefailing at 151 ms withActual: Idle. After the fix, all four severity cases passed on native Windows ARM64, including warning at 81 ms. Full build and required managed suites passed.Change Type
Scope
winnodeRequired proof pools
none: test synchronization only in the hosted framework UI lane; no product behavior, native input, visual design, accessibility or platform contract changes.Validation
.\build.ps1: passed, all five build targets.dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-arm64 --filter 'FullyQualifiedName~DesktopCompanionWindowTests.Notification_UsesExistingMascot_ShowsLiteralText_AndDismissesLocally': passed, 4/4, no skips.dotnet build .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --verbosity quiet: passed.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --verbosity quiet: passed, 5,863 passed, 28 skipped, 0 failed.dotnet build .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --verbosity quiet: passed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --verbosity quiet: passed, 6,482 passed, 0 skipped or failed..\scripts\validate-test-timing-patterns.ps1: passed; unrelated existing baseline-lowering warnings only.git diff --check: passed.Test commands used isolated profile roots and
OPENCLAW_REPO_ROOT; inherited integration, E2E, GPU-proof and state-directory overrides were cleared. Console/TRX logging arguments were also supplied, and retained reports were checked for actual execution counts.Real Behavior Proof
fa123b0cef9b3eeb9efc78ab11aafda7041e2afa; tests ran on the unchanged uncommitted patch based on90653249bd8a6729a423d308928c4728655ff08f, then that exact patch was committed without further code edits.Test Run Successful. Total tests: 4. Passed: 4.Warning/Attentive passed in 81 ms.Yes/No/N/A) N/A; no visual changes or public artifact links.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