#21353 asks every web desktop app to open a working view, each loaded on its app's first open and sized for its content. Its intake on 2026-11-18 found that the route it prescribes does not exist yet, for two reasons:
Neo.desktop.Container builds every window's config in its protected getWindowConfig(record), so a consumer cannot give one app its own content or size without subclassing the container.
A lazy item, {module: () => import('...')}, loads only in a card layout. In a window's body it stays parked and invisible.
This leaf adds the seam, and examples/desktop/basic's three apps become its first consumer. #21353 then builds the demo's eleven apps on it.
The Problem
src/desktop/Container.mjs:204: getWindowConfig(record) returns the same keys for every app (the animate target, the boundary, the record and the browser window). Nothing in it varies per app.
src/container/Base.mjs:463-485: an item whose module is a function is parked (vdom.removeDom: true). Only layout.Card#loadModule (src/layout/Card.mjs:264) loads one, when its card activates. apps/form/view/FormContainer.mjs:66 works because its pages are cards.
The example's three apps each show one sentence (examples/desktop/basic/AppWindow.mjs), and the demo's eleven all open the same AppView card.
The Architectural Reality
Neo.desktop.WindowManager#createWindow (src/desktop/WindowManager.mjs:226) awaits #loadWindowClass(), checks the open's ticket (#admits), and then calls windowConfig?.(record) synchronously. A rejected load rejects the open, and openApp's finally (:427-432) clears the in-flight entry so the next open retries. A second open of the same app joins the first one's load.
Neo.desktop.Container#windowClass already takes a class or a loader (src/desktop/Container.mjs:116-122), and an app's view fits the same shape.
The window's record stays its only public input (#21198). Which view an app opens is the consumer's catalog knowledge.
Design authority: #21198, the window manager's intended shape: "one window per app id, created on first open through a configurable window class". #21353 AC-1: "Each view's module loads on its app's first open".
The Fix
Neo.desktop.Container#appWindowConfigs: each app window's own config, keyed by app id. An entry takes any window config, such as width and height, plus view: the app's content, as a class or as a loader such as () => import('./apps/Mail.mjs'). getWindowConfig(record) becomes async, resolves view, and returns it as the window's one item, filling the window.
Neo.desktop.WindowManager#createWindow awaits the window config together with the window class, before the ticket check. An open that ends during either load creates no window, and a failed load lets the next open retry, as a failed class load does today.
In examples/desktop/basic, Notes edits a note in a TextArea, Calculator calculates, and Music lists its tracks in a grid, each at its own size. examples/desktop/basic/AppWindow.mjs and its CSS go.
may return a Promise, awaited together with the window class before the ticket check
a config returned as an object works as today
JSDoc
unit arm: an open that ends during the load creates no window
Neo.desktop.Container#getWindowConfig (protected)
src/desktop/Container.mjs:198-219
async
a subclass that returns an object still works, since the manager awaits either
JSDoc
unit arm
Acceptance Criteria
AC-1: An app with an appWindowConfigs entry opens at that size, with its view as the window's content. An app without an entry opens the window class as it is.
AC-2: A loader view runs on its app's first open, not when the desktop is constructed, and a second open during the load creates no second window.
AC-3: An open that ends during the view's load (a close, a reset or a destroy) creates no window, and a failed load lets the next open retry.
AC-4: In examples/desktop/basic, a typed note is still there after the window closes and reopens, a sum computes, and the track list shows. Each window opens at its own size inside the workspace at 1440 × 900 and at 390 × 844.
AC-5: e2e/desktop/Basic.spec.mjs and unit/desktop/* pass, and the example logs no console error.
AC-6 (Look): before and after frames of the example with two apps open, and a cold look at the after frame.
Out of Scope
The demo's eleven apps (#21353, which builds on this leaf), lazy items in layouts other than the card layout (an engine-wide change), and the tear-out (D#21204).
Avoided Traps
A lazy item in the window's body: only a card layout loads one.
A one-card card layout, borrowed for its lazy loading: it works, but it reads as an accident.
A container subclass in each consumer to override the protected getWindowConfig.
A window class per app (#21353's trap): one window class, with one view per app.
The name windowConfigs:Neo.windowConfigs already holds each browser window's config, and #21198's naming rule keeps "window" for the browser window unless the name says app window.
Related
Parent #21198. Blocks #21353. #21202 (the desktop guide documents appWindowConfigs), #21348 (the family's extraction).
Live latest-open + closed sweep: latest 20 open, plus open and closed searches (window config desktop, lazy load window, per-app window, desktop app view) at 2026-11-18T17:33Z. Out of Scope read on the closed #21199 and #21201; neither excludes per-app window config. No equivalent found. Backlog band: 84 open (red); filed under its owning epic #21198.
A2A claim sweep: the 20 newest messages in all read states, with no claim on this scope. MC sweep: "desktop app window cannot get its own content or size; lazy item never loads outside a card layout", no prior decision. Own-assignment sweep: #21353 is the consumer this leaf unblocks.
Owner: Grace, self-assigned. No curated labels: this is engine API on the lock's path, and the demo leaf waits on it.
Retrieval Hint: "desktop appWindowConfigs per-app view size lazy load first open window manager awaits config"
Context
#21353 asks every web desktop app to open a working view, each loaded on its app's first open and sized for its content. Its intake on 2026-11-18 found that the route it prescribes does not exist yet, for two reasons:
Neo.desktop.Containerbuilds every window's config in its protectedgetWindowConfig(record), so a consumer cannot give one app its own content or size without subclassing the container.{module: () => import('...')}, loads only in a card layout. In a window's body it stays parked and invisible.This leaf adds the seam, and
examples/desktop/basic's three apps become its first consumer. #21353 then builds the demo's eleven apps on it.The Problem
src/desktop/Container.mjs:204:getWindowConfig(record)returns the same keys for every app (the animate target, the boundary, the record and the browser window). Nothing in it varies per app.src/container/Base.mjs:463-485: an item whosemoduleis a function is parked (vdom.removeDom: true). Onlylayout.Card#loadModule(src/layout/Card.mjs:264) loads one, when its card activates.apps/form/view/FormContainer.mjs:66works because its pages are cards.examples/desktop/basic/AppWindow.mjs), and the demo's eleven all open the sameAppViewcard.The Architectural Reality
Neo.desktop.WindowManager#createWindow(src/desktop/WindowManager.mjs:226) awaits#loadWindowClass(), checks the open's ticket (#admits), and then callswindowConfig?.(record)synchronously. A rejected load rejects the open, andopenApp'sfinally(:427-432) clears the in-flight entry so the next open retries. A second open of the same app joins the first one's load.Neo.desktop.Container#windowClassalready takes a class or a loader (src/desktop/Container.mjs:116-122), and an app's view fits the same shape.recordstays its only public input (#21198). Which view an app opens is the consumer's catalog knowledge.Design authority: #21198, the window manager's intended shape: "one window per app id, created on first open through a configurable window class". #21353 AC-1: "Each view's module loads on its app's first open".
The Fix
Neo.desktop.Container#appWindowConfigs: each app window's own config, keyed by app id. An entry takes any window config, such aswidthandheight, plusview: the app's content, as a class or as a loader such as() => import('./apps/Mail.mjs').getWindowConfig(record)becomes async, resolvesview, and returns it as the window's one item, filling the window.Neo.desktop.WindowManager#createWindowawaits the window config together with the window class, before the ticket check. An open that ends during either load creates no window, and a failed load lets the next open retry, as a failed class load does today.examples/desktop/basic, Notes edits a note in aTextArea, Calculator calculates, and Music lists its tracks in a grid, each at its own size.examples/desktop/basic/AppWindow.mjsand its CSS go.Contract Ledger
Neo.desktop.Container#appWindowConfigs(new)viewas a class or loader resolved on the app's first openNeo.desktop.WindowManager#windowConfigsrc/desktop/WindowManager.mjs:61-66Neo.desktop.Container#getWindowConfig(protected)src/desktop/Container.mjs:198-219Acceptance Criteria
appWindowConfigsentry opens at that size, with itsviewas the window's content. An app without an entry opens the window class as it is.viewruns on its app's first open, not when the desktop is constructed, and a second open during the load creates no second window.examples/desktop/basic, a typed note is still there after the window closes and reopens, a sum computes, and the track list shows. Each window opens at its own size inside the workspace at 1440 × 900 and at 390 × 844.e2e/desktop/Basic.spec.mjsandunit/desktop/*pass, and the example logs no console error.Out of Scope
The demo's eleven apps (#21353, which builds on this leaf), lazy items in layouts other than the card layout (an engine-wide change), and the tear-out (D#21204).
Avoided Traps
getWindowConfig.windowConfigs:Neo.windowConfigsalready holds each browser window's config, and #21198's naming rule keeps "window" for the browser window unless the name says app window.Related
Parent #21198. Blocks #21353. #21202 (the desktop guide documents
appWindowConfigs), #21348 (the family's extraction).Live latest-open + closed sweep: latest 20 open, plus open and closed searches (
window config desktop,lazy load window,per-app window,desktop app view) at 2026-11-18T17:33Z. Out of Scope read on the closed #21199 and #21201; neither excludes per-app window config. No equivalent found. Backlog band: 84 open (red); filed under its owning epic #21198. A2A claim sweep: the 20 newest messages in all read states, with no claim on this scope. MC sweep: "desktop app window cannot get its own content or size; lazy item never loads outside a card layout", no prior decision. Own-assignment sweep: #21353 is the consumer this leaf unblocks.Owner: Grace, self-assigned. No curated labels: this is engine API on the lock's path, and the demo leaf waits on it.
Retrieval Hint: "desktop appWindowConfigs per-app view size lazy load first open window manager awaits config"