LearnNewsExamplesServices
Frontmatter
id19638
titleMedium-ready multi-window post: the update triangle, title, film
stateClosed
labels
documentationenhancementai
assigneesneo-opus-grace
createdAtOct 12, 2026, 1:47 AM
updatedAtOct 12, 2026, 2:24 AM
githubUrlhttps://github.com/neomjs/neo/issues/19638
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 12, 2026, 2:24 AM

Medium-ready multi-window post: the update triangle, title, film

Closed Backlog/active-chunk-8 documentationenhancementai
neo-opus-grace
neo-opus-grace commented on Oct 12, 2026, 1:47 AM

Context

@tobiu read learn/blog/a-workspace-that-can-leave-its-window.md (#19507, resolves #9854) for Medium on 2026-10-11 and named three gaps:

  • The first Mermaid is not truthful. A DOM update is a triangle: App Worker → VDom Worker → main thread → App Worker. The diagram instead has the App Worker send DOM deltas to the windows.
  • A Medium reader does not know what Neo.mjs is, so the post needs a better title and subtitle.
  • The 13.2 film belongs in the post, as it is in the README.

The Problem

The diagram under "Move the application, not the messages" draws App Worker -- "DOM deltas" --> Window three times. No such edge exists while the VDom Worker is on, and it is on by default (useVdomWorker: true, src/DefaultConfig.mjs:360). The triangle is documented in learn/benefits/body/OffTheMainThread.md (Virtual DOM Worker, steps 1–6) and learn/guides/fundamentals/WorkerArchitecture.md (Triangular Communication). The operator corrected the same mistake in an implementation plan on 2026-03-31.

The H1 ("A workspace that can leave its window: multi-window apps in Neo.mjs 13.2.") and the 90-word bold standfirst do not fit Medium's title and subtitle fields. #13383 asks for a title that hooks a reader who has never heard of Neo.mjs.

The Architectural Reality

  • App → VDom. VdomLifecycle calls Neo.vdom.Helper.updateBatch(batchData) (src/mixin/VdomLifecycle.mjs:429). The VDom Worker exposes this method to app (src/vdom/Helper.mjs:28-32).
  • VDom → Main. The reply carries {deltas, updateVdom: true, vnodes} (src/vdom/Helper.mjs:907-910). Main's worker.Manager#onWorkerMessage intercepts it (src/worker/Manager.mjs:542-561). handleDomUpdate (:426) queues the deltas for the next animation frame and forwards the reply to the App Worker only after they are applied.
  • Main → App. Besides that reply, Main sends the App Worker the DOM events.
  • Only without a VDom Worker does the App Worker send deltas to Main itself (VdomLifecycle.mjs:451-453).
  • With useSharedWorkers, Manager#createWorker starts every worker as a SharedWorker (src/worker/Manager.mjs:264-265). The windows therefore share one App Worker and one VDom Worker.
  • The Portal lists the post under the name in apps/portal/resources/data/blog.json, and that name repeats the H1.

The Fix

In the post:

  1. Diagram. Replace the first Mermaid with the triangle: the App Worker sends vdom + vnode trees to the VDom Worker; the VDom Worker sends deltas + the new vnode to the component's window; the window's main thread applies them and forwards the reply, then sends DOM events, to the App Worker. Draw both workers as shared by all windows, and name the VDom Worker in the prose before the diagram.
  2. Title and subtitle. Give the post a title that hooks a reader with no Neo.mjs knowledge, and a short bold subtitle (the TL;DR thesis, which fills Medium's subtitle field) that says what Neo.mjs is. The current standfirst becomes the opening paragraph.
  3. Film. Embed the film in the README's shape: the cover linked to YouTube, plus a watch link. The cover becomes the post's first image, so Medium uses it as the featured image. The dock-d1-cross-zone.png still moves into "What 13.2 adds".

In blog.json, the entry's name follows the new H1. Its id and path stay, so links keep working.

Acceptance Criteria

  • The first Mermaid draws the update triangle and agrees with OffTheMainThread.md and the source lines above; no App Worker → window delta edge remains.
  • The title and subtitle pass the blog guide's title test (§3) and #13383's cold-reader rule, and the subtitle says what Neo.mjs is.
  • The film cover links to https://www.youtube.com/watch?v=KESyjFmOz0k, with a Markdown watch link, as in the README.
  • Both Mermaids render in the Portal (blog guide §1).
  • blog.json parses, and its name equals the new H1.
  • A cross-family review happens before merge (blog guide §4).

Out of Scope

  • The 13.2 release notes' link text ("A workspace that can leave its window"). The notes are a released artifact, and the URL does not change.
  • Images of the Mermaids for Medium. Medium does not render Mermaid, and the images are not repository files.
  • The publication-profile design (#15699, #15700).

Related

#9854 (the post's ticket) · #19507 (the post) · #13383 (blog epic) · #14790 (launch playbook)

Sweeps:

  • Live latest-open: the latest 20 open issues at 2026-10-11T23:45Z, no equivalent.
  • A2A claims: 30 messages across all states, none on this post.
  • Memory Core: the operator's 2026-03-31 correction of the same diagram error.
  • Own assignments: #19637, #15000 and #14800, none of which covers the post.

Origin Session ID: 87a71479-e634-40ad-9609-c54cf18ab83a Retrieval Hint: "worker update triangle Mermaid, multi-window blog post, Medium title subtitle film"

tobiu referenced in commit 809f9ff - "docs(blog): the multi-window post draws the update triangle, opens for cold readers and leads with the film (#19638) (#19639) on Oct 12, 2026, 2:24 AM
tobiu closed this issue on Oct 12, 2026, 2:24 AM