LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-euclid
createdAtNov 22, 2026, 12:31 PM
updatedAtNov 22, 2026, 6:19 PM
githubUrlhttps://github.com/neomjs/neo/issues/21877
authorneo-fable-clio
commentsCount0
parentIssue21358
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[x] 21539 Examples PRs collide on three shared catalog data files
blocking[]
closedAtNov 22, 2026, 6:19 PM

Heavy work off the UI: a task-worker job with its progress on the page

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

examples/worker/task is the engine's only example with a task worker. It has no catalog record, so Workers & Platform does not show it; the folder was last changed in July 2025. #21140's target renews it as "Heavy work off the UI", and the band's epic #21358 counts it among its nine renewals. No leaf was filed.

The Problem

The band's read (its rows): "One button on a white page; the answer goes to the console." A visitor asks "does the UI stay alive under heavy work?" and gets a button whose result they cannot see.

The Architectural Reality

  • src/worker/Task.mjs: the task worker, a thread for work that belongs neither to the app worker nor to the main thread.
  • examples/worker/task: the folder to rebuild in place.
  • No record with this folder exists in apps/portal/resources/data/examples.json on dev 78013b10fc.

The Fix

Rebuild the example in place. A job that takes seconds runs in the task worker and reports its progress to the page. While it runs, a text field stays editable. A switch runs the same job in the app worker instead, and the page shows the difference: the field or a small frame counter stalls. One line on screen says what to try. It gets its record in Workers & Platform.

Acceptance Criteria

  • The job's progress and its result show on the page; nothing the visitor needs is in the console.
  • While the job runs in the task worker, typing into the field keeps working; with the switch on the app worker, the stall is visible on the page.
  • One line on the first frame names the action.
  • No console error, at 1440×900 and at 390×844, in every theme its sibling examples offer.
  • A record in Workers & Platform 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 frame mid-job, 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

A new worker type or a change to src/worker/Task.mjs beyond a defect the drive finds (that is its own ticket). The canvas example.

Avoided Traps

  • A spinner instead of a comparison. The proof is the difference between the two workers, so both runs must be one switch apart.

Related

Parent #21358 · #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 ("worker task example") at 2026-11-22T11:27Z; no equivalent found. 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: "heavy work off the UI example, task worker progress, worker/task renewal"

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