Skip to content

fix(ui): prepare mascot inputs before drawing - #178644

Merged
steipete merged 3 commits into
mainfrom
solid2/w-zero-mascot
Oct 20, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-zero-mascot

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Rendering the mascot in Custodian and other lazy pages emits Solid strict-read warnings because its animation effect prepares reactive inputs, then its apply callback and native callbacks read those reactive values again.

User Impact

No visual or interaction change. The mascot retains mood and tease timing, high-DPI sizing, theme replacement, reduced motion, visibility pauses, and animation cleanup.

Why This Change Was Made

The existing effect now consumes its prepared inputs. Three plain committed values—drawing size, optional reduced-motion pose, and playback eligibility—serve the asynchronous canvas frame and observer callbacks. They are native animation inputs, not a second reactive presentation store. The animator remains the gesture/clock owner; visibility changes still resume playback without resetting tease timing.

The canvas effect remains an allowed external-system synchronization. No shared primitive owns this timestamp-driven drawing loop. No imports, lazy boundaries, tags, classes, CSS, or domain owners change.

Evidence

Proof Result
Native mascot suite on original production All three cases fail specifically on STRICT_READ_UNTRACKED; drawing/lifecycle assertions pass
Native mascot suite on fix 3/3 pass; after main integration: 56 ms cases, 2.87 s Vitest / 4.58 s wrapper
UI types (pnpm tsgo:ui) Pass
Test types (node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.ui-components.json --noEmit) Pass after the type-only fixture repair
Targeted lint, format, diff check Pass
Production Knip Files/dependencies pass. Full export check exits 1: only extensions/agentsapi/config.ts: DEFAULT_NATIVE_TOOLS, reproduced identically on clean merge base c7387f7f8bf1
Independent review Canonical isolated P0–P2 review: scoped-clean; no actionable findings
Wave-zero guard Pass; no baseline changes
Broad proof Full ci:full 39509539042 passed for 26004caaa380: all 65 jobs complete, no failures, including both real-Gateway shards
CI performance job 118927330861 Head startup 325708 B gzip / 7 JS requests, CSS 38445 B / 1 request. The passing job emits a startup warning above its 325166 B limit; this is not a strict-green claim
Same-runner route comparison Chat 1447466 → 1447512 B (+46); New 1005301 → 1005340 B (+39); startup CSS unchanged. Actual base startup-JS bytes are not printed by the report
Visual proof No visual/styling change; canvas inputs and lifecycle tested directly

Touched-file production LOC: 150 → 153 (+3); tests: 79 → 135 (+56). The small production increase makes the imperative callback boundary explicit. Checklist counts: effect 1 → 1 (canvas animation); controllers, render effects, untrack, direct listeners, queries, flush, and owner capture APIs 0 → 0. No guard baseline increase.

Related: #178593 (wave-zero survivor audit).

Initial CI run 39474603479 passed the UI suites but found TS2352 in the new canvas fixture: inferred Vitest mock members prevented its canvas-context assertion. The fixture now names the two canvas method signatures with Pick; no runtime values or assertions changed. The failed UI-components test-type graph passes locally. Replacement CI passed this repaired type graph.

Replacement run 39478166263 has one unresolved failure: Control UI catalog publication with a real Gateway > opens Settings pickers from publication and acquires only on Refresh or Retry, command-palette-catalog.real-gateway.e2e.test.ts:350, expected 3 acquisitions but received 4. Latest completed scheduled main run 39476345087 passes the matching job; this is not classified as inherited. Fixture repair #178735 publishes both configured catalog owners before recording the provider-wide acquisition baseline, retaining every existing assertion. Its full-label run 39487705697 passed and it landed as c7387f7f8bf163b89d4cee56f2fc7a43db3421be. This branch now includes that landed main commit. Both mascot files are byte-identical to the prior reviewed repair; a frozen install, UI typecheck, affected test-type graph, all three focused tests, and fresh independent P0–P2 review pass. Fresh full CI 39509539042 passed for the integration head at 23:14:01 UTC on 2026-10-20. The historical extra request’s owner remains unproven; no inherited-failure waiver is claimed.

Performance evidence: control-ui-performance job 118927330861 compared CI merge 5a8ef4b63860f34a9b514b55c71680b06d7720a2 with base 8496db795978e95001800d7971778357ed990054 on one runner (Node 24.21.0, Vite 8.3.4, Pako 3.0.2). The renderer stays in the deferred shared bundle; no local startup build was added.

The full production export check used pnpm dlx --package [email protected] knip --config config/knip.config.ts --production --no-progress --reporter compact --no-config-hints --exclude duplicates with NODE_DISABLE_COMPILE_CACHE=1. Both the final head and clean merge base c7387f7f8bf163b89d4cee56f2fc7a43db3421be report the same sole unused export. This is an inherited static-check failure, not a green Knip result or a CI waiver.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T22:41:08.850623Z 26004ca New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@steipete
steipete enabled auto-merge (squash) October 20, 2026 18:40
@steipete
steipete disabled auto-merge October 20, 2026 18:48
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR prepares mascot inputs in the tracked effect and passes committed values to canvas and observer callbacks.

Example: A 48-pixel working mascot changes to a 64-pixel happy mascot.

  • Before: Drawing and playback callbacks reread reactive values outside tracking and emit STRICT_READ_UNTRACKED warnings.
  • After: Callbacks use the committed size, pose, and playback eligibility without those reactive reads.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch and regression coverage are sound on inspection; behavioral evidence remains unit-level, and the required core test-type failure is unclassified.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its reported base/head results and inspected jsdom cases exercise the real component with mocked drawing and scheduling, but provide no direct shipped-browser evidence for the changed diagnostic behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Rendering the mascot emits Solid strict-read warnings from imperative animation and lifecycle callbacks.
Reason: The maintainer-authored direction repairs a repository-defined reactive boundary while preserving the existing user-facing mascot behavior.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this PR makes a focused repair to mascot reactive reads, with no actionable correctness or security findings; a failed required CI check still needs attribution.

Priority: P3
Reviewed head: 3672c25b9272f9a6fea7fda440be3ab10b20602d

Before merge

Findings

None.

Tests

  • Missing end-to-end proof: No supplied browser trace exercises mascot rendering and input updates while demonstrating removal of STRICT_READ_UNTRACKED through the shipped Control UI.
Agent review details

How this fits together

The shared Control UI mascot receives mood, size, branding, and visibility inputs and drives a canvas through the existing animator and browser lifecycle primitives.

flowchart LR
  A[Props and theme branding] --> C[Tracked input preparation]
  B[Motion and document visibility] --> C
  C --> D[Committed canvas inputs]
  D --> E[Animator and playback callbacks]
  F[Intersection observation] --> E
  E --> G[Canvas drawing]
Loading

Technical review

Best possible solution:

Keep the existing animator and lifecycle owners while feeding imperative callbacks only values prepared by the tracked effect.

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

Current main visibly reads reactive inputs in effect application and native callbacks, matching the documented strict-read contract and the PR's reported base failures; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is a small complete repair: it consumes already-prepared dependencies, preserves configuration identity and timing, and avoids suppression, another reactive store, or a parallel animation owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b6890b8 adds ui/src/components/openclaw-mascot.tsx:100 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b6890b8ae763; files: ui/src/components/openclaw-mascot.tsx)

PR surface

Source +3, Tests +53. Total +56 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 22 19 +3
Tests 1 53 0 +53
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 75 19 +56

Review metrics

Metric Value Why it matters
Production versus test growth Production +3 lines; tests +53 lines The small production increase makes the native callback boundary explicit; test growth covers stale drawing inputs and diagnostics across existing lifecycle cases.

Labels

Label changes:

  • add P3: This repairs development diagnostics and reactive ownership without an established visual, interaction, or availability failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This repairs development diagnostics and reactive ownership without an established visual, interaction, or availability failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide a browser console trace showing mascot rendering and mood, size, and reduced-motion updates without strict-read warnings.

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.

Reviewed October 20, 2026, 2:48 PM ET / 18:48 UTC.

@steipete
steipete merged commit d32a3b6 into main Oct 20, 2026
112 of 114 checks passed
@steipete
steipete deleted the solid2/w-zero-mascot branch October 20, 2026 23:23
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* fix(ui): prepare mascot inputs before drawing

* test(ui): type the mascot canvas fixture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant