LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 17, 2026, 1:01 AM
updatedAtNov 23, 2026, 5:02 PM
githubUrlhttps://github.com/neomjs/neo/issues/21198
authorneo-opus-grace
commentsCount6
parentIssuenull
subIssues
21199 A desktop window manager in src owns app windows and their tasks
21200 The desktop launcher and its apps tree move into src
21201 The desktop container, taskbar and app window move into src
21202 A guide shows how to build a web desktop from src/desktop
21205 The desktop family looks right in the cyberpunk, dark and light themes
21271 Preserve user-sized windows and only constrain them when desktop bounds change
21353 Each web desktop app opens a working engine view, not a placeholder
21361 The desktop launcher shows each group as a captioned icon column
21374 A dialog''s minimize, maximize and close read as one modern set
21379 Each desktop app''s window opens its own view, loaded on first open
21385 The web desktop says what it is, with a name and a widget area
21428 The Web Desktop cover shows a placeholder Mail window the demo no longer has
21603 Exercise a desktop window leaving and returning during one held drag
21853 Desktop app test can click Close while its window is opening
22104 Detached desktop windows follow the selected theme and running tasks have a readable indicator
22105 Return a detached Web Desktop app after its native window dwells over the desktop
22106 Desktop launcher icons accept drops only within their group
22112 Web Desktop loses the second tear-out in one held drag
subIssuesCompleted18
subIssuesTotal18
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]

A web desktop shell joins the engine as src/desktop

Open Backlog/active-chunk-1 epicaiarchitecture
neo-opus-grace
neo-opus-grace commented on Nov 17, 2026, 1:01 AM

Terminal predicate: a developer builds a web desktop (a launcher, a taskbar with a start menu and the open windows, app windows that open, minimize, restore and close) from src/desktop/, and apps/webdesktop is that family's first consumer, keeping only its demo's accounts, sign-in, permission panel and data.

Context

#21061 built the web desktop demo from engine primitives and deferred this step in its Out of Scope: "A window manager in src/: the demo composes existing primitives; promoting any part into the engine is a later decision." On 2026-11-16 the operator asked for that decision: the desktop's parts should be reusable by others who build web desktops.

The engine gaps the demo hit already went into src/: menus that honor a tree-store filter (#21062, #21070), TreeStore#isKept() (#21068) and a plugin.Resizable boundary fix (#21073). The shell itself did not. On dev it is about 760 of the app's 1,700 lines: Launcher 190, AppWindow 128, Desktop 70, TaskList 58, Taskbar 56, the task model and store 61, and the window-manager half of the 384-line ViewportController.

The Problem

Anyone who wants a web desktop on Neo today copies the demo's views and a controller that interleaves window management with the demo's sign-in and permission code. A copy receives no engine fix: the sign-out race that #21100 fixed lives only in the demo's controller. The work needs an Epic because the shell is several pieces with one shared API (the window manager, the launcher and its store, the shell container with its taskbar and window, its themes, and a guide), each one pull request, with the demo migrating piece by piece.

Intended solution shape

A new family, Neo.desktop.*, composed from existing primitives: dialog.Base for windows, list.Base with draggable.list.SortZone for the launcher and the task list, toolbar.Base with a menu.List over a TreeStore for the taskbar and start menu, and state.Provider between a window and its desktop.

  • Window manager (core.Base, owned by the desktop container): one window per app id, created on first open through a configurable window class and kept. It keeps open, restore, minimize and close in step with a tasks store, and closes the windows whose app the apps store's filter drops (TreeStore#isKept()). reset() cancels in-flight opens and hides every window (the demo's sign-out). It destroys what it created. Composition, not a base controller: consumers keep their own controllers.
  • Order belongs to the manager. dialog.Base has one fixed z-index and no order among dialogs; the demo keeps its order as module state in AppWindow.mjs, which would be shared by every desktop on one App worker. Each manager keeps its own stack and sets the z-index of the windows it created, so any dialog.Base works as the window class.
  • Apps tree: a TreeModel and TreeStore with generic fields, sorted by order, with the arrangement API the demo's store has (arrange(), getArrangement()). A consumer subclasses for its own fields; the demo adds permission.
  • Launcher: icon grid; drag and keyboard reordering inside a group; opens on double-click and Enter, on a tap on touch devices; arrangement persistence behind one key, with localStorage as the default.
  • Taskbar, task list and task model: the start button with its menu.List over the apps store, and the open windows.
  • App window: a dialog.Base that grows out of its launcher icon, with minimize, maximize and close. Its public input is a record config; any state provider stays internal to it.
  • Desktop container: workspace, launcher and taskbar; owns the window manager.
  • A second consumer: examples/desktop/basic (three apps, no sign-in) ships with the container. It tests the seam, and the guide's blocks come from it.
  • Stays in the demo: accounts, sign-in, the permission panel, the data, and the role-based filter. That filter is a recipe (one included filter with includeEmptyValues: false, written by the state provider), documented in the guide rather than built into the shell.
  • Naming: inside src/desktop, a window is an app window addressed by appId. windowId keeps its engine meaning, a browser window. The @summary of the window manager and of the app window says so and points at Neo.manager.Window.
  • Theming: resources/scss/src/desktop/ with the neo-dark and neo-light variables the demo has, moved by each refactoring leaf. The cyberpunk, dark and light themes are new looks and get a leaf of their own.
  • Docs: a guide, and a Structural Inventory row for src/desktop/ in the Architecture Overview, in the first pull request that creates the folder.

Placement (structural pre-flight, full): considered src/dashboard/, src/dialog/ and a new src/desktop/; read the Architecture Overview's Runtime Engine inventory. dashboard is DockLayouts under ADR 0029: docked panels, not free-floating app windows. dialog is the window primitive the shell composes. Chose src/desktop/ because the shell's role matches no existing family. Map maintenance: needed (new inventory row). Scalability: the family has room for model, store and view classes. ADR conflict: none, since 0029 governs docking and this stays out of it. ADR genesis: not now; revisit with the tear-out of D#21204. Future-self risk: low, because the window-class seam keeps another embodiment possible.

Timing: the leaves go into Engine 14 as far as review carries them by Thursday 2026-11-19, 24:00 UTC, the line ROADMAP.md gives its four new families: Friday's check packs dev as it is then. A leaf that misses merges after the cut. The Engine 14 lead ruled this on 2026-11-18 (Mnemosyne, A2A 378de169), on the operator's direction for 14 that she relayed (A2A 1120e66f): the date is fixed, the scope is not, and the engine is the team's to enhance. If Vega, who holds the cut (#21033), names a later line for an additive family, hers holds. Each leaf drops its blocked_by #21033 edge when its pull request opens.

Out of Scope

  • Tearing an app window out into its own browser window: explored in D#21204, and follow-on leaves of this epic once it graduates. The window-class seam keeps it possible.
  • Order among all floating dialogs of the engine: the manager orders only the windows it created.
  • Authentication or authorization. Hiding UI is not authorization.
  • Docking, which is src/dashboard.
  • More than one window per app.

Avoided Traps

  • Moving the demo wholesale: accounts and permissions in src/ would bake one authorization model into the engine.
  • A base controller that consumers extend: it forces one controller hierarchy. The container owns a window manager instead.
  • A permission field or filter in the generic app model: the filter belongs to the consumer.
  • Module state for an order an instance owns: two desktops, or two browser windows of one app on a shared App worker, would share one stack.
  • "Window" without its meaning: windowId names a browser window across src/; an app window without that rule makes a knowledge-base query for "window manager" return two unrelated classes.
  • A test fixture as the proof of reuse: a shipped example is the second consumer.
  • A provider's data key as an unlisted public input: the window takes a record.
  • A family announced on one consumer: if only #21199 makes the line, 14.0 carries Neo.desktop.WindowManager with the demo as its only consumer. The lead recommends for the notes (#21032) that the family is announced in 14.0 only with examples/desktop/basic, and otherwise whole at the next cut.

Related

#21061 (the demo epic and its deferral) · #21063, #21064, #21065, #21075, #21100 (the demo's leaves) · #21062, #21068, #21073 (engine gaps already in src/) · #21139 (open checks on the demo, which this must not regress) · #21074 (the role-based navigation post) · #20874 (the families joining the engine in 14) · D#21204 (the tear-out).

Decision Record impact: aligned-with ADR 0029, by staying out of docking. Structure map: N/A. It is Brain-hosted; engine placement is covered by the structural pre-flight above. Live latest-open + closed sweep: latest 20 open, plus open and closed search (desktop shell, window manager, taskbar, launcher), at 2026-11-16T23:59Z. #21061's Out of Scope and Avoided Traps read; it is the predecessor whose deferral this answers. No equivalent found. Backlog: 78 open (red); no open owner to fold into. Epic sweep: all 9 open predicates read; closed search (desktop, shell, window) read. No open predicate finishes this sentence; #20874 adds board, scheduler and Gantt, and #20667 covers external packages. A2A claim sweep: the 30 newest messages in all read states; no claim on this scope. MC sweep: "no reusable web desktop window manager taskbar launcher in the engine", no prior decision beyond #21061's. Own-assignment sweep: 4 open, none overlapping. Revised 2026-11-17 after Mnemosyne's epic review (stacking, record input, a shipped example, a theme leaf, the naming rule, four avoided traps). Revised 2026-11-18: Timing and the last Avoided Trap follow the Engine 14 lead's ruling (A2A 378de169).

Origin Session ID: 99757ce4-c1d9-4801-83f2-e2f545246917 Retrieval Hint: "web desktop shell src/desktop window manager launcher taskbar extraction from apps/webdesktop"