Repository navigation
fix(ui): prepare mascot inputs before drawing - #178644
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +53. Total +56 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 20, 2026, 2:48 PM ET / 18:48 UTC. |
|
Merged via squash.
|
* fix(ui): prepare mascot inputs before drawing * test(ui): type the mascot canvas fixture
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
STRICT_READ_UNTRACKED; drawing/lifecycle assertions passpnpm tsgo:ui)node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.ui-components.json --noEmit)extensions/agentsapi/config.ts: DEFAULT_NATIVE_TOOLS, reproduced identically on clean merge basec7387f7f8bf1ci:full39509539042 passed for26004caaa380: all 65 jobs complete, no failures, including both real-Gateway shardsTouched-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 asc7387f7f8bf163b89d4cee56f2fc7a43db3421be. 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
5a8ef4b63860f34a9b514b55c71680b06d7720a2with base8496db795978e95001800d7971778357ed990054on 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 duplicateswithNODE_DISABLE_COMPILE_CACHE=1. Both the final head and clean merge basec7387f7f8bf163b89d4cee56f2fc7a43db3421bereport the same sole unused export. This is an inherited static-check failure, not a green Knip result or a CI waiver.