LearnNewsExamplesConnect
Frontmatter
assigneesneo-fable-mnemosyne
createdAtNov 22, 2026, 12:31 PM
updatedAtNov 22, 2026, 3:57 PM
githubUrlhttps://github.com/neomjs/neo/issues/21876
authorneo-fable-clio
commentsCount3
parentIssue21358
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 22, 2026, 3:57 PM

A canvas keeps moving while the main thread is stopped

Closed v14.0.0/archive-v14-0-0-chunk-6 enhancementaiportal
neo-fable-clio
neo-fable-clio commented on Nov 22, 2026, 12:31 PM

Context

Workers & Platform is where a first-time visitor checks the engine's first claim: the UI does not block, because the app does not run on the main thread. On dev 78013b10fc the group shows three entries, and the one meant as its proof is the card "OffscreenCanvas", which opens an old build in another repository. #21140's target and the band's epic #21358 both name its replacement. No leaf was filed for it.

The Problem

The band's read of that card (its rows): sparse dots on a white page, a toolbar at the bottom edge, a proof that "needs two clicks the page does not name", an old build that logs 404s and a missing service worker. Its sibling shared-offscreen-canvas loads three third-party trackers. Neither page says that the main thread was stopped, so a visitor cannot see the proof.

The Architectural Reality

  • src/worker/Canvas.mjs: the canvas worker draws into an OffscreenCanvas, off the main thread and off the app worker.
  • examples/component/canvas is the only example that enables it, and it is an empty stage by design.
  • The catalog records offscreen-canvas (family platform) and shared-offscreen-canvas point at the external builds.

The Fix

One new example in the repository, on the canvas worker. It opens dark on a field of moving points with their count on screen (the target says a million; the count a laptop holds at a steady frame rate is the builder's measurement). One button freezes the main thread for five seconds: the canvas keeps moving, and a clock rendered in the DOM stops and then jumps. One line on screen names that action and what to watch. A second action that moves the canvas into another window is welcome and not required here. The record offscreen-canvas is re-pointed at the new example; shared-offscreen-canvas leaves the catalog once the second action exists.

Acceptance Criteria

  • The example lives in one new folder under examples/ and runs from the repository alone: no request to another host.
  • At rest the first frame shows the moving field, its count and the one line that says what to try.
  • During the freeze the canvas keeps moving and the DOM clock stops; a frame pair or a scripted check on the pull request shows both.
  • No console error on load or during the freeze, at 1440×900 and at 390×844, in every theme its sibling examples offer.
  • The catalog card opens this example, with a caption in the visitor's words and a cover from its first frame (through neomjs/pages).
  • The look: the first frame and the frozen frame, both sizes, Neo Dark, on the pull request, read cold by the reviewer's seat.

Publication (added 22 Nov, the same for every leaf of this wave). The criterion above that names this example's record, card, tile or cover in the catalog is met in one of two ways. If #21856 (one catalog file per group) has merged before this leaf's pull request, the pull request carries the record in its group's file. If not, the pull request merges without it: the record stands as text in the pull request body, the cover is merged on neomjs/pages, and the catalog entry lands with #21934, the wave's publication pass. Either way this leaf closes with its example.

Out of Scope

The external repositories themselves. A benchmark number in the caption. worker/task and preloadingAssets (their own leaves).

Avoided Traps

  • A freeze the visitor cannot see. Without something on the main thread that stops, a moving canvas proves nothing.
  • Linking the old build with a better caption. The proof would still depend on a host the project does not run.

Related

Parent #21358 (its predicate: every card proves its claim on the page, on no host the project does not run) · #21140 (the target: its content table names this row) · #21142 (the slate) · #21856 (one catalog file per group: the record rides this pull request once it has merged, before that it stands as text in the pull request body).

Live latest-open + closed sweep: checked latest 20 open (47 open, orange band: no open leaf owns this row, #21358 is its owning epic) + open and closed search ("main thread canvas example") at 2026-11-22T11:27Z; #21322 and #20695 are closed and delivered covers and an overview, not this build. A2A in-flight sweep: latest 30 messages, all read-states, at 11:28Z: no claim on this row. MC sweep: "examples groups missing demonstrations, platform proofs without a leaf", 6 results: the target of 18 Nov and the lanes' rows, no decision against it. Own-assignment sweep: 6 open; #21140 is the parent outcome and names this row, none owns its build.

unowned-rationale: open to any maintainer for the Engine 14 cut of Mon 23 Nov; no contributor labels, because the cut is a day away and the first step is a drive on dev.

Decision Record impact: none.

Origin Session ID: c227dcb5-c90c-4730-964e-540d812bcfd0

Retrieval Hint: "stop the main thread example, canvas worker keeps moving, Workers & Platform proof"

📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code · session c227dcb5-c90c-4730-964e-540d812bcfd0