Galaxy Shell / docs
Docs / Architecture and development

Custom compositor with Smithay

docs/smithay-development.md · Edit on GitHub ↗

On this page

Custom compositor with Smithay

Doc status: current contract. Smithay is the only compositor. The long staged log keeps dated stage evidence as history. Checked 2026-11-12.

The renderer of every output is wgpu. Since 2026-11-11 (step 6 of gles-removal-plan.md) there is no --renderer option (a usage error, no accept-and-ignore period) and the compositor does not read AGENT_NATIVE_RENDERER (ignored silently, because the recovery start still exports it for older releases). It is wgpu in every mode, --session (DRM), --headless and --nested, and in every build: since step 10 (2026-11-11) the renderer is a normal dependency, not a feature, and Smithay is built without backend_winit and renderer_gl (backend_egl is named directly, for the EGL device of nested.rs and the GL tests). Since step 8 the GLES backends, the reduced GLES scene and the renderer choice are deleted. A build without the session feature refuses --session before any socket or backend exists. Step 11 removed the empty wgpu-renderer feature name, so cargo refuses --features wgpu-renderer. The nested window is the compositor's own window on the wgpu renderer (wgpu_window.rs, docs/nested-qa.md, The wgpu window). A failure of the wgpu renderer or of its dma-buf self-test ends the start with an error: nothing replaces it within one run, and the recovery of the login asks for OpenGL and, for an older release, GLES (project-loading.md, Recovery). state --full has no renderer key; gpuApi (below) tells the API of the renderer. No IPC command or setting changes it. See the wgpu renderer plan, which also lists what only GLES drew.

The snapshot always reports windowEffectSlots ["window-close", "window-open"] and the capabilities as the wgpu renderer reports them; no capability is forced false any more. theme_check, theme_select and theme_reload act on the wgpu theme packs as themes.md describes.

Under the wgpu renderer the GPU API is chosen at startup too, --gpu-api auto|vulkan|gl (2026-11-10, gles-removal-plan.md, Step 5 result). auto, the default, opens the Vulkan device of the render node and falls to wgpu's OpenGL backend (EGL images) when that device does not open or fails its self-test, with the reason in the log; vulkan and gl force one API, and the failure of a forced API ends the start with an error. AGENT_NATIVE_GPU_API gives the same value when the option is absent, in every mode, and at login the file ~/.config/agent-native-os/gpu-api-gl adds --gpu-api gl. state --full reports gpuApi (vulkan or gl) and gpuApiFallback (why auto is not on Vulkan, else null); a fall also writes "Agent Native: --gpu-api auto fell to OpenGL ..." to stderr. No IPC command, core route or setting changes it. On OpenGL the DRM path binds the scanout buffers of DrmCompositor as EGL images; that path has not run at a physical login. The nested window on wgpu (--nested, its default) presents through Vulkan only: auto means vulkan there and --gpu-api gl is refused before a window opens.

--effects-backend and the wgpu-effects build feature were removed on 2026-11-10 (step 2 of gles-removal-plan.md, by owner decision with no accept-and-ignore period): the option is a usage error. They selected passes that the GLES scene drew through Vulkan, in a bridge crate (native/wgpu-bridge) that is deleted; until 2026-11-11 GLES composition still drew its GLSL passes, and those went in step 7. The shared WGSL that the plain scene uses lives in native/wgpu-renderer/src/effects/. The history of the bridge is in the removed integration record (git show 3f537fdc:docs/wgpu-integration-progress.md, section of 2026-11-07).

The historical shader experiment on the F9 grid is in css-window-effects.md. That view was withdrawn on 2026-10-29; the current overview is the workspaces overview. The v3 transition package stays active, as described in themes.md.

Implementation update: River was removed from the product. Login can now load the active checkout in the home directory, with build preparation and independent Smithay recovery. See the current loading and recovery contract. The descriptions below preserve earlier decisions and evidence; old releases can remain as known-good recovery, without bringing a River backend back into the product.

Decision of 2026-10-27: keep React + Electron in the shell and start a Rust compositor based on Smithay, to get control of composition and GPU effects. Switching the host to Tauri is not part of this direction. River remains available for recovery; direct experimental use of Smithay is recorded below. Discover the running backend; do not assume a VT or socket.

Later direction of 2026-10-27: the project owner approved removing River and continuing with Smithay only. The removal is still pending. References to River as recovery describe the earlier stage; future recovery must use a Smithay build known to work and external supervision. This revision does not change the runtime and does not add recovery proof on the real desktop.

Current state and reading the history

Area Implemented Validated and pending
Session Nested and DRM backends, login launcher and Unix bridge Direct use on GDM/TTY2 recorded; no parity with River and no new physical proof of VT resume
Presentation focus as the default, immersive mode, live thumbnail, palette and sidebar Geometry and transitions exercised in nested Electron/Foot; physical Windows key and recent DRM capture pending
Surfaces Web bar, chat and wallpaper; system Xcursor cursor Nested proofs and tests; web cursor atlas removed
Recovery Shell supervisor and one fallback attempt for the session Fallback tested with synthetic processes; no crash of the shared compositor was provoked
Local search / queries the catalog and opens applications without an LLM HTTP and browser validated; real opening through this flow still has no recorded proof
Outputs One primary output and any number of extra outputs in the direct session Unit and offscreen wgpu GPU tests; no real third monitor or cable hotplug
Session lock ext-session-lock-v1 and the shell lock on every output, see the lock screen Unit and offscreen wgpu GPU tests with two synthetic outputs; no real second monitor, hardware or password proof
Dialogs A toplevel with a parent (xdg_toplevel.set_parent, or xdg-foreign-unstable-v2 from another connection, as the GTK message box of an Electron window) shows with the window it belongs to: same workspace, output and visibility, above it, centered on it and clipped to it (to its tile outside the focus layout), in every layout and in workspace planes and previews. A move of that window to another workspace or output takes its dialogs, a move of a dialog moves that window, and a dialog that a lock kept on another output joins it at the unlock. It never takes a tile and is the focus application only after an explicit maximize or restore. It is hidden while that window is a scaled preview, so it never covers the protected chat. It takes the keyboard when it first comes into view only if the keyboard is already on that window or on another of its dialogs. Focusing that window gives the keyboard to its topmost dialog, and only the window with the keyboard is activated. A pointer click on that window gives the keyboard to the window itself, unless a visible dialog of it is modal: a dialog with the xdg-dialog-v1 modal hint, or a dialog linked through xdg-foreign (GTK 3 message boxes send no hint). A closed dialog gives the keyboard back to its visible window. A dialog chooses its own size, with the content area as xdg_toplevel bounds, also when its parent arrives after the map; a larger dialog is configured down to its window after it answers. A shell window is a window of the trusted host (the registered host pid and a Wayland connection newer than the host process, see "Shell window identity" below) with a shell title or the app id agent-native-os; a shell title or app id from any other client is an application. A window that the shell rules classify is a dialog only of a shell window, as the GTK message box of the shell's own Electron window on its own connection, and it then centers on the chat; a dialog is never a panel, bar, wallpaper or chat for the layout. A shell window is a parent only for the shell's own dialogs. The compositor implements xdg-foreign itself: every import keeps each link it made until the import or its export ends. Each client keeps at most 128 live exports, 128 imports and 128 links; one more is refused without a protocol error (an export without a handle, an import destroyed at once, a link that gives no parent). A child that is not an xdg toplevel, or a window that names itself or its own dialog as its parent, is a protocol error. A chain of dialogs has at most 16 parents above a window; a parent that makes a longer chain is ignored and the window stays an application window. A parent change moves the dialog to the workspace and output of its window at once; the next layout pass places it. At the unlock, the compositor replays each parent change that the lock kept, so each dialog goes to the output and workspace of its window. A child window that stops being the application of the focus layout, also after a change to another layout, chooses its own size again; a child window without its buffer for a moment keeps its size. The shell classification of each window is kept with the window and updated on each title or app id change and on each change of the host trust (sync_host_trust), which also checks the depth limit again, and the walks over dialogs use one index of children per pass: 50 parent changes of a window with 120 dialogs take about 20 ms in a debug build, against 19 s before. Each loop over every window asks once for the application of the focus layout: a layout pass with 112 plain windows takes about 4 ms in a debug build, against 23 ms with one request per window. The imports of one handle are kept by object, so the end of many imports costs no scan. A new xdg parent ends the link of an import, and a surface whose xdg toplevel is destroyed cannot be a foreign child. In the focus layout a dialog is centered inside the rectangle where the scene draws its window, also when the client is larger. A dialog with the title of a chat is still a dialog. Only an xdg toplevel can be exported, and a handle whose window is gone gives no parent. Each frame computes the preview state of the application once: with 1 application and 120 dialogs, presentations() went from 4.7 ms to 0.3 ms in a release build. Manual control holds a dialog and its window together Protocol tests with synthetic clients (focus, chat, sidebar, palette, tile and monocle layouts, workspace and output moves, lock, minimize, destroyed parent and dialog, late xdg-foreign link, export, import and link limits, a self parent that must not freeze the compositor, a child without a toplevel role, chains deeper than 16, a click on a window with a non-modal, a modal and a foreign dialog, a chat-titled dialog, an oversized chat in the sidebar, a released child window, a non-toplevel export, parent changes of a window with 120 dialogs and the end of 12800 imports within a time bound, a retitle that would make a chain deeper than 16, panel titles, a shell dialog on its own connection, workspace plane clip, a cached shell classification that follows the host trust) and a GTK 4 dialog on a private socket; no proof yet with Claude Desktop in the shared session

The following sections preserve the evolution and the evidence of each stage. Test counts, PIDs, releases and limitations are dated. The initial tile and the cursor atlas are historical; focus and Xcursor replace them. Published code or a prepared release does not prove activation on the current desktop.

First milestone

native/smithay/ is an independent crate with its own lockfile and Smithay 0.7.0 pinned. The historical Iced prototype was removed from the root. The Wayland states and handlers start from the smallvil example of the same version; the MIT license and attribution are in native/smithay/LICENSES/Smithay-MIT.txt.

The nested backend opens an experimental compositor window inside an existing desktop (the wgpu window; the Winit/EGL/GLES backend of the first milestone was deleted at step 8 of the GLES removal). The direct DRM/TTY backend is optional, built with --features session, and has a separate installation described below. The CLI requires exactly one backend (--nested or --session) and accepts --overview to start already in the grid; running without arguments fails before it creates sockets or windows. The Wayland socket is chosen automatically, without overwriting the desktop socket. The process WAYLAND_DISPLAY is not modified.

--headless draws the same frame into an offscreen texture on the wgpu device (the Headless backend of native/smithay/src/wgpu_output.rs; the GLES headless.rs was deleted at step 8), with no window and no parent display, for nested QA (docs/nested-qa.md, Headless).

xdg-shell clients receive an initial proposal of 960x600. F9 toggles between normal presentation and a grid of thumbnails of up to 320x200, which keeps the aspect ratio and does not enlarge smaller windows. Composition uses the current client buffers and rescaled GLES elements; it does not use a screenshot and does not ask the application for a thumbnail size. Popups and subsurfaces follow the window transformation. Layout and hit testing use the same computed positions. A left click on the thumbnail raises the window, restores scale 1 and gives it focus; the press and the release of that click are consumed so they do not trigger application controls by accident. F9 does not change the mode during a pointer grab.

Normal input is forwarded to the focused Wayland client. This does not add mouse/keyboard automation for the agent or HTML access to the tools. The compositor process does not access the profile, conversations, credentials or OpenCode; the full session starts the separate core with its existing profile.

Build and verify

Requires Rust 1.88+ with Cargo, rustfmt and Clippy; on Linux, a compiler/linker, pkg-config, headers for xkbcommon, Wayland and EGL/GLES libraries. The default build keeps only the nested backend. The session feature also enables libinput, libseat, GBM, DRM and udev.

cargo fmt --manifest-path native/smithay/Cargo.toml --check
cargo test --manifest-path native/smithay/Cargo.toml --locked
cargo clippy --manifest-path native/smithay/Cargo.toml --locked --all-targets -- -D warnings
cargo build --manifest-path native/smithay/Cargo.toml --locked

The compile-only gate of the compositor and its tests is python3 scripts/prepare-project.py --root "$PWD" --cargo check --locked --features session --tests.

In a worktree, run the tests, the check and Clippy through python3 scripts/prepare-project.py --root "$PWD" --cargo ..., which uses the shared cargo target (see the shared cache). When rustfmt or Clippy is not installed, run --cargo check --locked --all-targets --features session, require 0 warnings, and report that fmt and Clippy did not run.

Do not run the compositor on the shared desktop without following the AGENTS.md coordination. The general implementation authorization does not replace the explicit request that AGENTS.md requires to start a nested session. After authorization, read coordination.log, check loginctl/processes/unit and hold coordination.lock for the whole proof that uses the shared session. Record the start and the result by appending under flock in the log itself. Do not restart River to run this proof.

The standing exception is the nested QA launcher scripts/nested-qa.py (user authorization of 2026-11-01): a private nested session with its own profile, runtime and core, driven by the test_input control command that only the --nested backend accepts. It does not need the whole-proof lock. See Nested QA for usage, refusals and limits.

The experimental command, only after meeting these conditions, is:

cargo run --manifest-path native/smithay/Cargo.toml --locked -- --nested

The terminal prints the socket. To connect a QA client explicitly, use that socket only in the environment of that process, for example WAYLAND_DISPLAY=wayland-N foot. Do not reuse browser profiles or the production shell as a QA client. Closing the experiment window ends the compositor and disconnects its clients; also end the QA clients you are responsible for.

Graphical acceptance criteria

  1. Open a test Wayland application and confirm moving content or continuous editing.
  2. Press F9 and check proportional scaling with the content still updating.
  3. Confirm that the application did not receive a thumbnail size configuration.
  4. Click the thumbnail, check restoration/focus and no accidental click in the content.
  5. Repeat with two windows, a popup, a closed window and a resized output.
  6. Compare the shared desktop processes before/after and end the experiment.

Geometry and build tests do not prove these criteria. Performance requires measurement with the real driver/hardware. The GLES renderer can be implemented in software; the API alone does not prove physical acceleration.

Evidence from 2026-10-27

Rust 1.93.0 was made available in temporary tool directories, without changing the persistent PATH. cargo fmt --check, cargo test --locked (3 tests), cargo clippy --locked --all-targets -- -D warnings and cargo build --locked passed for the new crate. The CLI test with no arguments and no graphical variables refused to start before it opened the backend. In the existing shell, npm ci, format:check, check/build:check and the 82 Node tests passed, with no calls to the provider.

After explicit authorization from the user for the windowed test, the proof used the current GDM/TTY2 session, parent socket wayland-1 and experimental socket wayland-2, under coordination.lock during each run. The historical TTY4 and its unit no longer exist. River PID 2451, Electron PID 321708 and core PID 321729 kept the same PID and start time before/after. There was no installation, compositor swap, shell restart or change of model/profile. The QA terminals and compositors were ended and the lock was released.

Wayland captures by grim showed the real terminal in normal presentation, two terminals scaled down proportionally and the restoration after a click. The content counter kept updating. The Wayland log of the QA client confirmed configure(960, 600) both at opening and at activation after restoration, with no configure of thumbnail size. The click on the thumbnail produced keyboard focus and pointer enter after the release, with no wl_pointer.button received by the client. F9 toggled the composition using a virtual keyboard with the default XKB map. The first wtype client used a dynamic map incompatible with the reconstruction of physical codes in this nested backend, so its zero exit status was not treated as proof of interaction. Physical human input and other keyboard layouts still need evaluation.

The experiment showed EGL device discovery/initialization warnings before it continued rendering. Physical GPU acceleration, the chosen driver, consumption and smoothness were not proven. Popups, window closing and output resizing remain pending scenarios; the numeric layout tests do not replace these graphical proofs.

Browser: no new proof, because the web UI was not changed. Electron host: process continuity confirmed, with no new validation of voice or chat. Real system: nested Smithay composition, scaling, client update, F9 and restore click exercised on top of the existing River. Private QA captures and logs stayed outside Git.

Limits of the experiment

The desktop bridge and the per-conversation workspaces are described below. There is still no River protocol, Xwayland, custom decorations, portals, session lock, popup grabs, client-driven move/resize or suspension of the nested renderer when hidden. It is not a replacement for the shared desktop. Shadows, blur, animations and custom shaders will come after the composition is validated at scale. No promise of performance or parity with River is made. This list is the state of the first milestone (2026-10-27); several outputs, the session lock and pointer move/resize of windows exist now, see the table at the top and Pointer move and resize of windows.

Sources

Experimental login session

The second milestone adds --session, with libseat/logind for device ownership, libinput for mouse/keyboard and DRM/KMS + GBM + EGL/GLES for direct presentation. The composition of windows and thumbnails is the same as in the nested backend. The first version uses one primary GPU and drives the first connected connector as the primary output, in its preferred mode. Every other connected connector with a free CRTC becomes an extra output (see Several monitors). It requires an EGLDevice identified as hardware, with no silent fallback to software. Do not run --session on the existing desktop: the CLI and the launcher refuse inherited DISPLAY/WAYLAND_DISPLAY before they request the devices.

The libseat notifier pauses input and DRM when the session loses the VT; on resume, it reactivates the devices and discards the previous buffers. GPU removal ends the experimental session to return to login. A GPU change event probes the connectors again: it ends the session only when the primary connector is no longer connected, and otherwise it connects or disconnects the extra outputs without ending the session. SIGTERM, SIGINT, SIGHUP and Super+Escape end the loop; Ctrl+Alt+F1..F12 asks libseat to switch VT. The web wallpaper and the system cursor use the composition described below, in both backends.

Local shortcuts: F9 toggles thumbnails; Super+Enter opens Foot (or AGENT_NATIVE_TERMINAL_BIN); Alt+Tab switches windows by recency (a tap returns to the previous window; with Alt held, each Tab goes one further and Shift+Tab one back, native/smithay/src/switcher.rs, 2026-11-02; on a Canvas workspace each Tab glides the camera to center the chosen window in 520 ms, pulling the zoom back by up to 45 % on a hop of one viewport or more, canvas::glide_dip, 2026-11-03, off with reduced motion); Super+Q asks the focused window to close; Super+Shift+Left/Right moves the focused window to the monitor on that side (see Several monitors); a Super tap gives the keyboard to the chat and Super+S opens or closes the workspace overview (see Super tap and Super+S); Super with a left-button drag moves an application window and Super with a right-button drag resizes it (see Pointer move and resize of windows); Super+Alt, Super+Ctrl and Super+Ctrl+Alt with the arrows, Super+Shift+Space, Super+F, Super+G and Super+T drive the cell grid (see Cell grid tiling); Super+Shift+T switches the workspace between the grid and the canvas while the setting canvas is on (see The canvas layout); in a Canvas workspace Super+F, Super+Shift+F, Super+Equal, Super+Minus, Super+Ctrl+0 and Super+scroll move the camera (see Canvas zoom and snapping); Super+L locks the session (see the lock screen; while locked, every shortcut except the VT switch is off); Super+Escape returns to login. The first mapped application receives keyboard focus. These actions are compositor shortcuts, not automation tools exposed to HTML.

scripts/smithay-session.py waits for the confirmed compositor socket before it starts the Electron shell through the existing supervision. The current policy allows one fallback attempt after a failure, when configured; an intentional logout returns to GDM. See the per-backend policy; the first version, with no fallback, only returned to login. The shell uses the existing river-shell profile, without importing or recreating conversations, and keeps the host/core supervision. AGENT_NATIVE_RIVER=0 turns off the River bridge in this session; AGENT_NATIVE_COMPOSITOR=smithay and AGENT_NATIVE_SMITHAY_SOCKET select the compositor's own bridge, described below. The supervisor lock refuses simultaneous use of the same profile by another session. The compositor, host and core come from the active checkout (sourceRoot), and the login runs installed copies of the session scripts; see the file origin. Until 2026-10-27, the shell base came from an installed release, with the host and core files of the bridge overlaid on it.

Prepare and register

The release install in this section is history. Today scripts/install-smithay.sh forwards to scripts/install.sh and configure-project.py, which take --source-root, --fallback-root and --profile, not --shell-root. The old Agentic Shell login entry, where it is still visible, calls the user wrapper agent-native-session, which now starts Smithay too, so it no longer goes back to River. For the current preparation and configuration, see project-loading.md.

Additional dependencies: libseat-dev, libinput-dev, libudev-dev, libgbm-dev and libdrm-dev (Ubuntu names), plus the matching runtime libraries. Build and test both builds:

cargo test --manifest-path native/smithay/Cargo.toml --locked
cargo test --manifest-path native/smithay/Cargo.toml --features session --locked
cargo clippy --manifest-path native/smithay/Cargo.toml --features session --locked --all-targets -- -D warnings
# Where EGL exists: the tests that draw pixels (the downscale cache, the overview planes, the previews).
cargo test --manifest-path native/smithay/Cargo.toml --features session --locked -- --ignored
python3 -m unittest discover -s scripts/test

Prepare under the AGENTS.md operational coordination, and pass the shell release that is actually installed:

scripts/install-smithay.sh --shell-root /path/to/installed/release

The installer builds with --release --features session --locked, copies only the base application and the runtimes, installs the new scripts and publishes ~/.local/lib/agent-native-os/smithay-current and ~/.local/bin/agent-native-smithay-session. It does not change current, the River launchers, GDM, the profile or running processes. System libraries are still required. If libseat does not exist on the system, explicit packaging can use AGENT_NATIVE_LIBSEAT_RUNTIME and AGENT_NATIVE_LIBSEAT_LICENSE, which keeps its license in the artifact.

GDM requires administrative registration. After the preparation, run the release helper:

sudo ~/.local/lib/agent-native-os/smithay-current/scripts/register-smithay-session.sh

It installs only /usr/local/bin/agent-native-smithay-gdm and /usr/share/wayland-sessions/agent-native-smithay.desktop. It does not change the default session, does not end the current login and does not change agentic-shell.desktop. The new option is named Galaxy Shell. To go back to River, select Agentic Shell in the session menu on the login screen. Save your work before you leave the current session; registering the option does not require an immediate logout.

Validation limit

Building the direct backend does not prove modeset, libinput, VT resume or physical login on the hardware. The user must watch the first direct entry, with River available on the login screen. Do not claim parity and do not make Smithay the default before this proof. The synthetic tests cover socket wait, compositor exit, test shell shutdown, refusal of a busy profile and state preservation; they do not take DRM and do not restart the shared session.

Evidence of the session preparation

On 2026-10-27, both builds passed Clippy with no warnings; the session build passed four Rust tests. The eleven Python supervision tests passed, including the new case that prevents turning on the River bridge in the Smithay shell. npm ci, format:check, check/build:check and the 82 Node tests passed. The desktop entry passed desktop-file-validate and the launchers passed sh -n.

The optimized release was prepared in ~/.local/lib/agent-native-os/releases/smithay-YBfsR5qy, with the separate link smithay-current, from the shell release in use. It includes the official Ubuntu libseat1 with its copyright preserved, because that library was not installed on the system. ldd resolved all dependencies; the guards of the launcher and the binary refused a direct session with an inherited desktop before they accessed DRM. The River current stayed on release-react-ada5138. There was no change of profile, global package installation or swap of the current session.

The installed session binary itself was exercised with --nested and a synthetic terminal. Captures of the real composition confirmed thumbnail, restore by click and F9; the client received 960x600 and focus, and it did not receive the click that selected the thumbnail. The proof ran under coordination.lock, preserved River/Electron/core by PID and start time and restored the earlier focus. The QA processes ended. Browser and Electron under direct Smithay were not exercised; modeset and VT resume remain without physical proof.

The administrative registration was attempted through pkexec. The first attempt found no authentication agent; the second, with a temporary agent ended at the end, returned Not authorized. So the option is not yet registered in GDM. The user must run the sudo command above to finish this registration; do not read the prepared release or the nested tests as a validated direct login.

Smithay desktop bridge

The bridge uses typed, versioned JSON RPC over a private Unix socket. The existing River also does not use gRPC: its WM receives text commands from the core and talks to the compositor through the River Wayland protocol. Adding gRPC is not needed for this local communication between two processes.

The compositor creates $XDG_RUNTIME_DIR/agent-native-smithay-PID/control.sock before it announces its Wayland socket. The directory has mode 0700 and the socket 0600; connections require an equal UID through SO_PEERCRED. It does not replace existing endpoints. The launcher confirms this endpoint and passes its path to the core through AGENT_NATIVE_SMITHAY_SOCKET. The compositor does not read the profile and does not run commands received on the socket.

Each line holds one request such as {"version":1,"id":1,"command":{"action":"state"}}. The response repeats version/id and holds ok and state, or an error. Commands: state, focus, close, minimize, maximize, restore, workspace, bind, layout, pair and set_held. set_held replaces the set of window IDs that the user holds in the compositor and moves no window. close is the only window command that also accepts a window of an inactive workspace: it sends one normal xdg_toplevel close request and changes neither workspace nor focus. The shell stays protected. Window and workspace IDs are integers; commands reject extra fields. There are limits on size, simultaneous clients, work per round and idle time. All mutations happen in the compositor loop.

The core reuses application discovery and launching, and the persistent per-conversation associations. It confirms the observed window by PID/appId and waits for focus/geometry acknowledged by the client. Terminals can adjust their dimensions to the character grid; confirmation requires acknowledgment of the requested size, the correct position and a geometry that fits in the area. Persistable IDs include a new identity for each compositor start, which avoids reusing associations of old windows. Dialogs inherit the workspace of their parent. Minimized windows, or windows in another conversation, are left out of both rendering and hit testing.

Disconnecting or restarting the core preserves the compositor and its applications. Pending requests fail and mutations are not resent automatically; the next connection reads the current state. The bridge keeps sending and the tools in the protected core, with no access by generated HTML.

The host creates two independent windows: Agent Native Desktop holds the global conversation strip and Agent Native OS holds the chat. The compositor fixes the strip at 40px at the top and reserves the area below for chat and applications, including when maximized. The strip does not take part in tiling, in pairs or in the thumbnail reduction. The tabs are hidden in the chat. The chat allows a minimum width of 380px to place an application beside it. Custom frames remain unavailable and the UI states this capability explicitly.

Bridge validation

88 Node tests passed, including six new socket scenarios, nine Rust tests and eleven Python supervision tests. The local proofs used synthetic data and no AI provider. In the real nested compositor, Foot confirmed opening by PID, pair layout, focus, maximize/minimize/restore, workspace switching, core reconnection with ID preservation and closing. The refusal of frame customization was also exercised.

Browser: sending through the protected field, the reply and the conversation switch were exercised against the QA core. Electron host: a real process connected to Smithay and to the same QA core. Real system: Wayland terminal confirmed by the desktop tool through the bridge. The OpenCode reply in this proof was synthetic and does not prove the provider. The shared River and core kept PID and start time; the QA processes themselves were ended. A second proof put the nested window itself in focus in River and the Wayland capture confirmed the separate global strip, the chat on the left and Foot on the right. The observed geometries confirmed two independent Electron windows, a 40px bar across the output width and applications below the reserved area. The new bridge in the direct DRM session still needs physical proof; do not declare the experimental session equivalent to River.

Web wallpaper and system cursor separate from the chat

The Smithay host creates three protected surfaces: bar, chat and wallpaper. /desktop-wallpaper is an HTML/CSS page of its own, with no scripts, token, history, sending or tools. Its CSP allows only local styles and image. The wallpaper reads only wallpaper.png in the existing profile, with a regular file, a 32 MiB limit, a PNG signature and refusal of symlinks. There is no path selection by URL. Without a valid image, a CSS gradient keeps the background usable. The image uses centered cover; it is not copied into the release.

Smithay fixes the wallpaper at the size of the primary output, below the other windows. This surface stays outside tiling, pairs, the thumbnail grid, hit testing and focus selection. The window commands refuse this surface.

Since 2026-10-31 each non-primary output shows the same wallpaper too. The host still creates one wallpaper window. The compositor draws the buffer of that trusted surface a second time in the scene of the other output (scene::wallpaper_copy), behind every window there, scaled to cover the output and centered (outputs::cover). At the same size the pixels are the same; at another size or aspect ratio the copy is scaled and the excess is cropped, so an image can look softer than on the primary output. An animated wallpaper damages the other output on each of its frames. The copy is no window of that output: it gets no input, focus or hit test, and it goes away with the scene of the output on hotplug. The lock hides it like the rest of the scene. A wallpaper title from another process is a normal application and is never copied (desktop::wallpaper requires the host mark). The palette from the wallpaper (themes.md) changes the page, so the copy follows it with no extra step. The chat and the bar are transparent in the Smithay host, which reveals the background without embedding it in the conversation UI.

Since phase 3 of the hexagonal crystals wallpaper (2026-11-02), the primary loop (drm.rs and the nested backends) sends no frame callback to the wallpaper while it is suspended (wallpaper_suspend.rs): the session is locked past Phase::Locking, or the shown workspace of the primary output and of every extra output has the Immersive presentation of the Focus layout and the drawn rectangle of its application, with the rounded corners of the window finish, contains the output, with no workspace transition, thumbnail motion, opening reveal or workspace overview. With the bars of the host mapped no output is covered, so the product suspends only while locked (the user decided on 2026-11-03: "Only when locked"). Without frame callbacks Electron draws and commits nothing, and the page stays visible. The commit handler counts the commits of the wallpaper surface. The snapshot reports wallpaper: {suspended, commits} and capabilities.wallpaperSuspend; the core checks their shape (core/smithay.js). Tests: native/smithay/src/wallpaper_suspend.rs and wallpaper_suspend_tests.rs.

After trying SVG cursors, the user explicitly asked for the native system cursor. This exception replaces only the web cursor theme: wallpaper, bar, chat and the other visual components remain web. The SVG atlas and its Electron window were removed.

The compositor loads the installed Xcursor files using the xcursor 0.3.11 library, already present in the transitive dependencies. XCURSOR_THEME and XCURSOR_SIZE take priority; when they are absent, it reads the GNOME preferences cursor-theme and cursor-size through gsettings, with a 300ms timeout per query. With no configuration available it uses the default theme and size 24. The configured size accepts 8 to 128; the selection uses the closest nominal resolution that the theme offers. Theme search and inheritance respect the Xcursor directories, including XCURSOR_PATH.

The images and hotspots come from the original files, with no SVG redraw. Animated frames respect their delays. The files are loaded once at startup, with limits on size, count and dimensions before the parser; the buffers stay cached and the renderer imports them. There is no file access, HTTP call or subprocess per mouse movement. Legacy names such as left_ptr/hand2/xterm are accepted as aliases. A missing shape uses the arrow; a theme without a valid arrow tries default, Adwaita and DMZ-White. If no installed theme provides a usable arrow, startup fails explicitly before it opens the graphical backend. The desktop state reports the effective theme and size in cursorTheme.

Wayland clients that provide their own cursor wl_surface stay responsible for the pixels of that cursor. Smithay composes the surface with the hotspot it received, sends frame callbacks and respects Hidden. The cursor-shape-v1 protocol selects the shape in the installed theme. In the thumbnail grid the cursor goes back to the default. The arrow of the parent desktop is hidden in the nested window to avoid duplication. The default cursor no longer depends on the Electron renderer; the wallpaper stays in the web host.

(History, GLES removed at step 8.) Surface import happens before the Winit framebuffer is bound. Buffer age queries of the nested backend produced BAD_SURFACE and loss of the EGL surface during the first proof. The nested backend now redraws the whole output, without that query; the DRM backend keeps its age/damage tracking. This has a rendering cost in the nested test and does not prove physical performance.

Wallpaper and cursor evidence

90 Node tests passed, including the HTTP limits of the pages/image and the atlas contract, and ten Rust tests in both builds. The graphical proof used a synthetic PNG in a temporary profile, real Electron and Foot under nested Smithay, with synthetic OpenCode and no provider. The four surfaces appeared as independent native windows. The wallpaper geometry matched the output, the atlas kept 576x32, and focus attempts on the two surfaces were refused. Protected sending kept opening the terminal and the Wayland capture showed the background behind the chat, the terminal and the text cursor. The QA processes themselves ended; the shared River and core kept PID and start time.

Browser: conversation and tool confirmation exercised. Electron host: the wallpaper/cursor pages and transparency were actually composed. System: text cursor and terminal observed in the nested native composition. No new physical DRM proof was run, nor a visual battery of each shape, client-provided animated cursor or hiding. These scenarios are not declared validated by the static capture.

Replacement by the system theme

The preference found on this machine was Adwaita, size 24. The version with the native theme passed 89 Node tests and thirteen Rust tests; these include preference priority, nominal size, hotspots, animation delays and refusal of malformed files. The earlier evidence with four surfaces and the 576x32 atlas is historical and does not describe the current implementation.

In the replacement proof, the session in use was already direct Smithay on GDM/TTY2 (session 60), using smithay-7zCXzvPE. The authorized windowed test stayed separate, with a synthetic core and no provider. The new instance kept its connection, reported cursorTheme Adwaita/24 and shape e-resize, with no upload failure in the logs. Electron had only bar, wallpaper and chat; the /desktop-cursor route returned 404. The browser confirmed chat initialization. The test was ended and preserved the PID/start time of the compositor, Electron and core of the session in use.

Grim was tried against the current socket and reported the absence of wlr-screencopy-unstable-v1. So this proof confirms theme loading, shape selection, renderer stability and removal of the atlas, but it does not contain a new native capture of the appearance. The open direct session keeps the earlier binary until the user logs in again; preparing the release does not restart the compositor.

Initial layout without overlap (historical, replaced by focus)

At this stage, new workspaces started to use tile by default. The next section records its replacement by focus; tile remains available explicitly. Before that, Floating left the chat on the whole usable area and external applications at the initial position (32, 32), which overlapped the chat and the bar. The default layout distributes chat and applications below the 40px reserved for the bar, including when an application starts directly, without going through the arrangement tools. Monocle, maximization and explicit pairs keep their existing policies.

In direct session 68, the tile command arranged the two existing windows at (8, 48, 667, 712) and (691, 48, 667, 712), with client confirmation and compositor/core continuity. The change of default requires the new binary at the next entry; the command fixed the current arrangement without restarting the session.

The regression test checks the default policy, the limits of the usable area and the absence of intersection for 1 to 128 windows. The authorized nested proof opened Electron with bar/chat/wallpaper and two Foot directly, confirmed non-intersecting geometries, created another conversation and confirmed the same default with a new Foot. The QA processes themselves were ended and the processes of the shared session were preserved. This is evidence of real geometry acknowledged by the clients; the native capture limitation described above remains.

Immersive mode, side thumbnail and palette

The user's next request replaces tile with focus as the default. The tile layout remains available explicitly. In focus, the focused chat takes the main area and the selected application stays in a thumbnail on the right, with preserved aspect ratio, up to 320px wide and 200px high. Smithay keeps the application configured at the logical size of the usable area and reduces its composition, without replacing the content with a static image. A click on the thumbnail restores immersive mode; press and release are consumed so they do not click inside the application by accident.

The focused application takes the whole output below the 40px web bar. Codex is recognized by app_id/title and also by the app_id chatgpt found in the current installation. This automatic activation happens once per window. The chat stays hidden during immersive mode, which keeps its process, conversation and draft. The selected application and the presentation belong to the workspace; other applications stay open and reachable through Alt+Tab or F9.

Historical (replaced on 2026-11-01, see Super tap and Super+S): a single tap on Super/Windows opened the palette when the key was released. Combinations such as Super+Return and Super+Q do not open the palette when they end. The palette is the same protected web surface as the chat, in an area of up to 640x180, with only the existing compose field. There is no second send input and no interface drawn in Rust. Typing any non-empty text, including / for local search, switches to sidebar to fit the suggestions: chat on the left with 30% of the width and the application in the remaining 70%. The text stays in the field for review; there is no automatic sending. Escape in the palette or sidebar returns immersive mode through the compositor; during the / search, the field also handles Escape to clear the query. These are actions of distinct layers. Super again in the palette also closes it.

The host updates the presentation through an authenticated, typed operation, POST /api/desktop-presentation, which accepts only mode (chat, immersive, palette or sidebar). The equivalent Unix command is presentation. Generated HTML still has no access to this endpoint or to the transport. The logical geometry and the scaled presentation appear separately in the window state. Rendering and hit testing use the same presentation boundary; the composition is clipped at this boundary to avoid buffer leaks during resizes.

The scrollbars of the host and of the chat interface are hidden by CSS; overflow and scrolling by wheel, touch and keyboard remain available. The minimum width limits of Electron allow the proportional split on narrow outputs too. At the time, the installer copied host.js and host.css from the same validated source; today the host is served from the active checkout (project-loading.md, web-panels.md).

Current contract (2026-11-01): the host document still hides every scrollbar. Every other interface document uses one thin scrollbar with no track, kept 8 px off the ends of its box so that it stays inside rounded corners: the protected pages through host/theme.css, the chat ShadowRoot through ui-src/style.css, the generated components through host/surface.js and the web panels through core/web-panels.cjs. Generated and panel CSS come after it and can replace it. An element that sets scrollbar-width or scrollbar-color gets the standard scrollbar of Chromium instead. The Chromium overlay scrollbar feature has no effect in Electron 45 on Linux, so the style is CSS.

Validation: 90 Node tests and 16 Rust tests, including the typed RPC, HTTP authentication, thumbnail ratio, the 30% split, the top reserve and a Super tap kept separate from combinations. In the real nested proof, Electron and Foot identified as Codex QA went through immersive, chat with thumbnail, palette, sidebar and another workspace. The application kept the large logical size while it was presented as a thumbnail. On a narrow output, the chat confirmed (0,40,197,276) and the application (197,40,462,273), with no intersection. Typing in the browser opened sidebar and preserved the draft, with scrollbar-width none. No message was sent to the provider. The first proof exposed the old Electron minimum width; the repeat after the fix confirmed the 30%.

The browser proof confirms the field and the web transition; the Electron/Foot proof confirms native geometries and focus. There was no new capture of the DRM composition and no physical test of the Windows key or of the thumbnail click. The QA processes were ended, which kept the compositor, Electron and core of the shared session. Activating the new compositor depends on the next entry into the experimental session, without restarting the session in use.

Workspace overview and selection by ordinal, 2026-10-27

Super+S (until 2026-11-01, a single tap on Super/Windows) opens a protected web surface that takes the usable area below the bar. It shows all open workspaces/conversations in the same order as the tabs, including empty ones, with a label and the applications that the compositor observed. Archived conversations do not appear. Persistent IDs stay internal; the interface shows positions 1…N. Win+1…9 selects the first nine positions, Win+0 selects the tenth; workspaces beyond the tenth stay reachable through the grid. A position that does not exist is ignored. Super+S again, a Super tap, Escape or a selection closes the view.

The core gets the order from the list of open conversations and uses the same protected selection transaction as the bar: it switches compositor/workspace, saves the conversation and restores the previous state if persistence fails. The selection does not send messages and does not call the provider. The active conversation, the draft field and the applications of other conversations stay preserved. The shortcut arrives through the private typed Smithay socket, with a bounded queue, generations and in-order confirmation; requests present in the initial handshake are discarded so a reconnection does not repeat actions. The overview state is also in /api/state, and the authenticated events only notify changes, which allows recovering the view after a reload.

When the overview opens, Smithay stores the presentation/layout state of the workspace. When it closes, it restores immersive focus, tile, monocle, pair and the previously active application. F9 keeps the existing window overview. The bar lists only open conversations and reindexes after archive/restore, without changing historical IDs.

Validation: npm run format:check, npm run check, 122 Node tests, cargo fmt --check, 24 Rust tests, Clippy with warnings as errors and cargo build --locked passed. Controller tests with an injected store/compositor cover ordinal selection after archiving, blocking with confirmation, rollback of workspace and persistence, closing on the second Super, reconnection without running an old queued input and generation of the new view. The real protected UI was exercised in the browser with a synthetic fixture: sparse IDs 2/5/9 appeared as ordinals 1/2/3, archiving and reopening reindexed the list, the click selected the matching session, Escape restored the chat and the draft stayed. The bar page confirmed the labels without exposing IDs. Rust tests cover the Super tap on release, combinations, ordinals, restoration of layouts and direct workspace switching during the overview. This is not proof of the physical key in an active session; the compositor change requires the next login. Release activation remains pending and there was no change to the runtime or to the active sourceRoot.

Live planes in the workspace overview, 2026-11-01

Phase 2 of canvas windows. While the overview shows on an unlocked session, the command overview_planes (from the protected host, through POST /api/overview-planes of the core) gives the image slot of each visible card, in logical pixels of the shell window, and the list clip. Before each frame, process_overview_planes renders each card workspace that is new or changed (at most every 100 ms) into a cached 384x216 texture, from the scene of the PNG preview, and scene::elements draws the textures in front of the wallpaper and behind the shell window. The host opens a transparent hole over a slot only where the snapshot reports a plane with a window (overviewPlanes.cards[].empty). The planes go away when the overview closes or the session locks, and a render failure sets overviewPlanes.failed until the compositor restarts. The capability is overviewPlanes. See native/smithay/src/overview_planes.rs and docs/work-log-2026-11.md.

The canvas layout, phase 3, 2026-11-01

Phase 3 of canvas windows, behind the protected setting canvas (on by default since 2026-11-03; a new workspace starts in Canvas while the lease is on, see the default in effect). With the setting off, nothing changes. The core sends canvas_enabled after each connect while the setting is on; the compositor keeps the lease 60 s after the last connection that renewed it closes, then converts every Canvas workspace to Grid, so a core restart that takes longer loses the canvas arrangement. Super+Shift+T switches the active workspace between Grid and Canvas, and Super+T toggles Focus and that base layout. A canvas window keeps its client size and is drawn through the camera of its workspace (canvas_placement, screen_placement), cropped to the content area. Its Space location is a parking anchor on the primary output, never a geometry value; a source test (every_space_location_read_is_listed_with_its_reason) lists each remaining direct read (element_location or element_geometry) in every source file except the tests. Left drag and scroll on empty canvas pan the camera; moves are in canvas units; since 2026-11-11 a user move drops onto a tile of the visible area and a drag from afar pans (canvas-windows.md, Snapping rules, item 5), with edge snap before. The commands are camera, canvas_move and canvas_enabled, and the capability is canvas. Rollback order: turn the setting off first, then roll back the core or the compositor, because an older core disconnects on a "canvas" layout (see self-maintenance). See native/smithay/src/canvas.rs, native/smithay/src/desktop/canvas_mode.rs and docs/work-log-2026-11.md.

Canvas zoom and snapping, phase 4, 2026-11-01

Phase 4 of canvas windows, behind the same setting canvas. The keys, Super+scroll and pinch act only while the active workspace is in Canvas; in Grid they reach the clients as before, and Super+scroll there still ends in a Super tap. Super+F fits the focused window in the fit viewport (the content area right of the chat dock, with a 12 px margin) and a second press returns; Super+Shift+F and a double click on empty canvas fit all; Super+Equal and Super+Minus zoom by 1.25, and Super+Equal stops at zoom 1; Super+Ctrl+0 zooms 1:1; Super+0 stays the key of workspace 10. A pinch zooms about the pointer with no animation, and a pinch in stops at zoom 1, or at the zoom it began with above 1 after a fit (only a fit may exceed zoom 1); Super+scroll goes to fit all (down) or back to 1:1 at the nearest window and stops there (up), see canvas-windows.md; both cancel the Super tap and a locked session drops both. The end of a drag pan, of a pinch or of a two-finger scroll runs the magnetic settle (Shift held disables it). User gestures and the keys keep the camera within reach of a window (Camera::clamped); the camera set command does not. Fits and keyboard zooms animate for 300 ms when workspace_motion is on, through advance_camera in advance_workspace_transitions on each frame of both backends; the animation is part of pointer_animation_active, Escape stops it at the current camera, and the lock stops it. A fit changes only the camera: no configure. The fit target follows a size that its client chooses; a user move or resize, canvas_move, or a manual pan or zoom clears it. A press on a canvas window below the input threshold fits it, only where it is the topmost window. See native/smithay/src/canvas.rs, native/smithay/src/desktop/canvas_mode.rs and docs/work-log-2026-11.md.

The floating chat, phase 5, 2026-11-01

Phase 5 of canvas windows, behind the same setting canvas. On a Canvas workspace the chat is a dock that is expanded (3/10 of the content width, 360 to 560 px, full height) or collapsed (640 x 180 at the bottom of its side; 640 x 82, the composer only, since 2026-11-02, see canvas windows). Correction of 2026-11-02, later the same day: the chat floats centered (2/5 of the content width, 480 to 760 px; 3/4 of the height, 360 to 900 px), the state collapsed hides it (no drawing, no input), a new canvas starts with it hidden, a Super tap hides a shown chat and shows a hidden one, and the chat takes no part of the fit viewport or the popup area; the side moves nothing. The command chat_dock {state} collapses or expands the dock of the active Canvas workspace; it is refused in Grid, Focus, the overview and while locked. chat_dock_side {side} sets the side for every workspace; the core sends the protected setting chatDockSide after each connect and unlock while the compositor reports another side. A Super tap expands a collapsed chat before it focuses it. A focus of the chat by its id keeps the dock state; for an approval the core sends chat_dock {state: expanded} first. A pair and the return to the Canvas base keep the dock state, and a new canvas (from Grid) starts expanded. A sticky fit target refits when the fit viewport changes, and the fit viewport leaves out the expanded dock or the strip of the collapsed dock. chat_glass {glass} gives Smithay the glass rectangle of the chat, and the scene blurs behind it only at the dock rectangle (openspec/specs/web-panels/spec.md). The snapshot reports chatDock per Canvas workspace, chatDockSide, chatGlass and capabilities.chatDock. Since phase 7 the login restore of the core saves the dock state of each Canvas workspace and collapses a saved collapsed dock again. Tests: native/smithay/src/chat_dock_tests.rs and the dock tests of canvas.rs.

Popups and client requests on the canvas, phase 6, 2026-11-01

Phase 6 of canvas windows, behind the same setting canvas. Outside an active Canvas workspace, popups, maximize and fullscreen requests act as before. A popup of a canvas window, or of a dialog of one, gets the camera viewport without the chat dock as the constraint area of its positioner at its creation and at a reposition; the positioner flips, then slides, as the client allows. A popup of a bar, in any layout and theme, gets the output of the bar as that area, so the native tooltip of a bottom bar button flips above the bar instead of opening past the edge of the output. The live scene draws such a popup cropped to the primary content area, past its window, and the pointer reaches it there, by one rule (canvas_popup_clip): not in the F9 overview, and not for a dialog that the content area does not show; previews and overview planes still crop it to its window. In Canvas, an xdg set_maximized toggles the camera fit of the window, the control command maximize (the agent expand) only fits it, and unset_maximized, the agent restore and un-minimize return the camera when the window is the fit target; the layout stays Canvas and no Maximized state is sent. A fullscreen request collapses the chat and fits the window, and a second request returns the camera; no Fullscreen state is sent. While a pan or a window grab holds the pointer, these requests do not move the camera: the control maximize and a restore of the fit target are refused, and another restore does not center the camera. A fullscreen request of a dialog gets the default reply. A commit with a new size of a canvas window of the active Canvas workspace keeps its anchor and its fit at that commit. Tests: native/smithay/src/canvas_clients_tests.rs. Decisions and open items: work log.

Agent tools and persistence on the canvas, phase 7, 2026-11-01

Phase 7 of canvas windows, behind the same setting canvas. The commands canvas_fit {window_id, source?}, canvas_restore {window_id, x, y, width, height}, canvas_arrange {exclude, held?} and camera {op: restore, x, y, zoom} exist behind capabilities.canvasTools; the core sends none of them to a compositor without it. canvas_fit with source: "agent" is the only path of an agent fit: it is refused for a held window, with user_active while a pointer button, a pan, a window grab or a pinch runs or within 2 s of the last input event (device or synthetic), and with rate_limited within 2 s of the last agent fit. The fits of the core (an open, the restore) send no source and have neither limit. agent_window {op: focus|maximize|restore, window_id} (behind capabilities.agentWindow) is the agent window_action focus, expand and restore: on a Canvas workspace, for an application window of the primary output or a dialog of one, it gets the same limits and shares the 2 s rate limit with the agent fit; elsewhere it is the plain command. The plain focus, maximize and restore of the host paths keep no limits. canvas_restore sets the canvas rectangle and sends the saved size as a configure; the window keeps the size that the client then chooses, at the same top-left corner. For a canvas window geometryConfirmed is false while a size configure waits for the commit of the client. Super+G in Canvas, and canvas_arrange, line the canvas windows up from the left at their size with a 32 px gap; held, excluded and minimized windows and dialogs stay, and the camera stays. The snapshot adds lastInputMs and reports the canvas rectangle also in Focus or the overview over a Canvas base. The core side (desktop.js, smithay.js placeApplication, window-session.js) is described in canvas-windows.md, section Phase 7 delivered. Tests: native/smithay/src/canvas_agent_tests.rs.

Window layers and declarations, phase 1, 2026-11-01

Phase 1 (1a and 1b) of window layers. native/smithay/src/layers.rs holds the bands, the declaration types, the anchored solver and the token table. Every role check of the compositor calls one API (crate::layers::declaration, role, is, bar, declared, fixture, no_input, stacking_key). In phase 1 legacy_declaration read the fixed titles and the app id of a trusted window to give its role (removed in phase 4, see below). Four more reads of the title stayed outside it: the paint marker of the chat (workspace_web::committed), the token compare of the bind, the snapshot title (desktop/snapshot.rs) and the Codex autofocus of desktop/layout.rs, which also reads the app id (window-layers.md, Phase 1 as built).

The control commands window_declare {token, declaration}, window_forget {token} and window_status {tokens} work only on the connection that registered the live host (lock_host). A token is 32 lowercase hex characters, at most 64 live tokens exist, and every token dies with the host identity. A host window binds to a token when its title is anos-window:<token> before its first buffer; one live window binds to each token. A bound window takes its role, band, order, input, keyboard, glass and, for a panel or the recovery window, its placement from the declaration. A bound bar, wallpaper, chat and lock keep the placement of the existing layout code. Nothing declares yet: the host and the core start to declare in phase 2.

The snapshot reports capabilities.windowDeclarations, a declaration per window (null for an unbound window), the declared name as the title of a bound window (an empty title for an unbound host window with a token title), and a top-level windowDeclarations {tokens, bound, lateBinds}. shell keeps its value for every unbound window. Legacy windows change in four places. First, a panel that takes no keyboard (the notifications toast) or the lock window no longer counts as the first window that takes the keyboard; the bars and the wallpaper were already left out. Second, pair refuses every fixture role (bar, wallpaper, panel, lock, recovery), not only the bars. Third, sessionLock.panelReady means that a lock window has a buffer now, not that one exists. Fourth, a legacy chat with a workspace marker title and no painted marker yet follows the logical plane in web_content_matches, as the plain title did before. The compositor also refuses a declaration with input: none and a keyboard target, a wallpaper or bar with a keyboard other than none, and, until phase 3, an isolated panel with input: none or an order other than 0. Tests: native/smithay/src/window_layers_tests.rs and the unit tests of layers.rs.

Window layers phase 4: no title gives a role, 2026-11-01

Phase 4 of window layers. The compositor reads no title and no app id to give a role. legacy_declaration and web_panels.rs (the panel rules, the reread of web-panels.json and the top-bar moves of the legacy defaults) are gone. A trusted host window that did not bind is the role unbound in its own band below the chat (layers::UNBOUND): it takes the keyboard on demand only, no strip, no glass, no workspace marker and no fixture placement, and every window gate refuses it with "Shell is protected" for its life (the host has no repair that closes it yet). A window with a protected title from any client, the host included, gets no role from that title. .title and .app_id are read only inside desktop::metadata, and the source test every_title_read_is_listed_with_its_reason lists each other metadata( read with its reason: the token compare of the bind (layers.rs), the snapshot title (desktop/snapshot.rs), the Codex autofocus (desktop/layout.rs, app id only) and the paint marker (workspace_web.rs, only for a window that layers::paints_workspaces, the bound chat). A shell lock is refused with "No lock window is declared" while the registered host holds no live lock token (lock_declared), so the lock scene never starts without a window that can unlock it. The snapshot reports capabilities.declarationsRequired: true. A host and core from before phase 2 get no role on this compositor: roll back the compositor and the host together across this phase, and run scripts/check-host-skew.py before a host and core restart (see self-maintenance). The sections "Shell window identity" and "Top bar strip" below describe the title rules as they were before phase 4.

Sharp zoom and draw cost on the canvas, phase 8, 2026-11-01

Phase 8 of canvas windows, behind the protected setting canvasSharpZoom (off by default, POST /api/canvas-sharp-zoom-enabled). With it off, the compositor offers no new global and draws every window as before. The command canvas_sharp_zoom {enabled} exists behind capabilities.canvasSharpZoom, is refused while locked, and the snapshot reports canvasSharpZoom; the core sends the setting after each connect and unlock while the compositor reports another value. The first on creates the globals wp_viewporter and wp_fractional_scale_v1, and they stay until the compositor restarts. The control timer (sharp_zoom_tick) gives each canvas window that the live canvas scene draws above zoom 1, and its dialogs, the zoom as the preferred scale (steps of 1/120, at most 2.0) once the wanted scales stayed the same for 300 ms; every other window gets scale 1. The window keeps its logical size: Smithay sizes a surface element from its viewport destination, so place_element samples the larger buffer one to one. Below zoom 0.35 the scene draws each root canvas window that the content area shows from a GPU texture at its drawn size (DownscaleCache), rendered again at most every 100 ms after a commit of its own surfaces or a size change, at most 4 changed and 12 first textures per frame, and within 256 MiB for all textures; popups draw live, and the lock frees the textures. The frame timing log adds cache_renders. A render failure turns the cache off until the compositor restarts. See native/smithay/src/sharp_zoom.rs, native/smithay/src/sharp_zoom_tests.rs and docs/work-log-2026-11.md.

Area filter for far windows, 2026-11-04

The owner reported the zoomed-out canvas as jagged ("tudo meio serrilhado"). The renderer has no mipmaps for client buffers, and one linear sample reads only two texels per axis, so a window drawn at a quarter of its size skipped lines of text and thin edges. window_finish.frag (replaced by window_finish.wgsl of the plain scene; the GLSL went on 2026-11-11, step 7 of gles-removal-plan.md, and the fallback build draws no filter) averaged a grid of samples over the area of the buffer under each output pixel, using GL_OES_standard_derivatives, so crops, transforms and the lens stay correct. area_taps picks the grid from the ratio of buffer pixels to output pixels, at most 4x4, and one sample while a buffer pixel covers an output pixel or more. It follows pixels and not the zoom, so a buffer of scale 2 on an output of scale 1 also averages at zoom 1. Measured in nested runs on the RX 550, six text windows at zoom 0.288 with the black hole: with canvasSharpZoom on, the graphics engine time of the compositor stays at 3.3%, because idle windows are not refiltered; with it off, the filter runs every frame and takes it from 3.6% to 6.4%. The measures are of idle windows only. On a driver without the extension the shader keeps one sample instead of failing to compile, because a failed compile would drop the whole finish. The pass of the canvas cache (cached_window_elements) uses the same program with the radius NO_FRAME, which turns the corners and the rim off, because the frame cuts them when it draws that texture. A proof in window_finish.rs draws one-pixel lines at 100/370 of their size: the spread of one column falls from 229 to 19 levels around the same mean.

Battery, time and requested restart

The web bar shows a 24-hour local clock and the battery on the right, outside the chat. The core reads the fixed sources in /sys/class/power_supply, ignores peripheral batteries and absent devices and reports percentage, charging and external power through the authenticated endpoint /api/power. Multiple batteries use weighting by nominal energy when available; a missing reading does not become 0%. Without a battery, the indicator stays hidden. The time updates every second and the battery every ten seconds in the bar. There is no provider query.

The user authorized restarting the session on 2026-10-27. The existing GDM session cannot swap its parent supervisor process: the shutdown returns to login, where the user logs in to Smithay again. Before it ends the session, the external operation must prepare the release, a persistent plan and a rollback, and check that no reply or change is in progress, while it holds coordination.lock and checks the PID/start time of the effective supervisor. It is not a computer reboot and there is no automatic authentication in GDM.

The installer records the stable Smithay release it was given as fallback-root.txt, when it is a sibling of the new release. The new supervisor allows a single fallback attempt after a failure, after the previous attempt ended its own children and released its locks. Intentional logout and a busy profile lock never start a fallback. A failure while the session is locked does not start one either: when the lock marker of the login exists (see lock-screen.md), the supervisor ends the login and records the phase ended-locked, because an older fallback would start unlocked. The metadata is kept in supervisor-smithay-recovery.json in the profile. History, credentials and the customized interface are neither copied nor replaced by the rollback.

91 Node tests and 14 Python tests passed, including synthetic sysfs sources, a missing reading, external power, fallback with a really faulty process, profile preservation and exclusion by lock. In the browser, the bar showed the real percentage, a charging symbol and the time inside the 40px. Electron and the endpoint also read the real battery. The wrapper of this proof was interrupted; the later cleanup ended the two remaining processes of the temporary profile and confirmed the continuity of the shared compositor/core. The browser capture is not a new capture of the DRM composition.

DRM cadence and bar focus, 2026-10-27

After a report of stutters and focus loss without interaction, RPC sampling found the web bar with keyboard focus while the application stayed visible in immersive mode. A periodic toggle was not observed during sampling. The bar now accepts pointer actions without taking keyboard focus, both in the Electron host and in the compositor selection; focus recovery also discards the bar as a target. This fixes a concrete keyboard capture path, without claiming that every reported focus loss was reproduced.

The DRM backend now also queues the next frame on VBlank, after frame_submitted, instead of depending only on the phase of a 16 ms timer. The timer still allows the first draw and session resume. The earlier exclusive dependence could miss a refresh because of a phase mismatch. The physical smoothness gain needs validation at the next login; the compositor in use was not swapped or restarted.

Validation of this fix: 16 Rust tests with session, cargo fmt, Clippy with warnings as errors and cargo build passed; the 95 Node tests, format:check and check/build:check passed. In the existing real session, a typed operation returned the bar focus to the visible application, confirmed by the compositor under coordination.lock, without restarting host, core or compositor. The current window registry was started by an external read-only observer of the bridge. The observer ends when the session disconnects or when the core changes, so no restart is needed before the first login with restoration. Browser and Electron were not restarted to test the new policies; physical smoothness, bar interaction and full restoration wait for a new, watched login.

Local opening by / and activation of GTK portals

The core bridge preserves the focus presentation when it opens an application from the catalog and confirms the focus, visibility and geometry of the target window. The confirmation does not depend on all the other surfaces completing tile. See fix 1f80e99.

In the Smithay login, the supervisor now publishes only WAYLAND_DISPLAY, XDG_CURRENT_DESKTOP, XDG_SESSION_DESKTOP and XDG_RUNTIME_DIR to the D-Bus/systemd activation environment, after it confirms the sockets and before it starts the shell. It does not publish the full environment or credentials. A helper that is missing, fails or times out produces a diagnostic and does not bring the session down. Login tests use a simulated helper, without changing the real activation environment.

The investigation of the calculator in session 236 found xdg-desktop-portal-gtk without WAYLAND_DISPLAY, failing with cannot open display and blocking GTK startup through D-Bus timeouts. The live fix published the four session variables and restarted only xdg-desktop-portal-gtk and xdg-desktop-portal, under coordination.lock. Host, core and compositor were not restarted.

Real validation on 2026-10-27: in the browser UI connected to the shared core, /term and /calcul located applications, Enter opened each one and the host confirmed Aplicativo aberto (Application opened). The Smithay bridge confirmed agent-native-terminal and org.gnome.Calculator visible, focused and geometryConfirmed=true. Native framebuffer captures were inspected and showed both applications on the desktop, besides the existing Electron bar. History, active conversation, customized interface, model and frames kept the same hash during the portal fix; no model turn was needed. Electron host PID 1569655 and compositor PID 1569553 stayed running. There was no physical automation of the Electron field; the input was made in the browser, and the Electron/Smithay presentation was proven by processes, the bridge and native pixels. The private captures stay outside Git.

Relative navigation by keyboard and touchpad

Windows/Super+Left and Windows/Super+Right ask the core for the previous and next open conversation/workspace, in bar order, ignoring archived ones and without wrapping at the ends. The same flow accepts a horizontal swipe of exactly three fingers: left goes forward and right goes back. The compositor accumulates the motion and publishes a single request when an uncancelled gesture ends, with at least 80 horizontal units and horizontal dominance of 1.5 times. Vertical gestures, short gestures and gestures with other finger counts do not switch workspace.

The typed requests workspace_previous/workspace_next use the queue with generation, confirmation and discard on reconnection. The selection keeps the lock during operations and the existing rollback for conversation/workspace. Super with Alt, Shift or Ctrl does not trigger this shortcut. There is no implicit creation of a conversation.

Automated validation covers direction, accumulated distance, cancellation, horizontal dominance, finger count, limits, archived items and locking. Physical validation of the keyboard/touchpad and of the synchronized UI depends on a new login in the built compositor; no compositor, host or core in use was restarted for this change.

Rounded corners and application outline (2026-10-28)

The composition applies a GPU finish to application windows: a 12 px radius, with antialiasing, and a thin inner outline in sage green, lighter at the top. Since 2026-11-03 the radius and the outline color follow the core (16 px and the accent of the palette); see Visual style from the core. The values here stay the defaults. Thumbnails reduce the radius proportionally. Chat, bar, wallpaper, recovery and web panels stay outside this finish. There are no new controls or native UI components; the shader only clips and blends pixels of the existing surfaces, with no extra intermediate texture. The content and the alpha of the applications are preserved in the interior.

The same path serves normal applications, planes of the workspace transitions, workspace cards and the output of the F9 effects. The frame projection determines the clip, including child surfaces and rotated/reflected outputs. The rounded regions do not declare opacity and do not allow direct scanout of the original buffer. A shader compile failure keeps the previous drawing. Hit testing stays rectangular; there are no new frame controls.

Validation: offscreen EGL test of the production shader in the eight output orientations, partial viewport clipping, corner transparency, outline, inner content and semitransparent alpha. Synthetic image inspected outside Git. 54 Rust tests passed (including EGL), fmt, Clippy with warnings as errors and release build with session. In the web shell, npm ci, format:check, check and 173 Node tests with concurrency 1 passed; the concurrent run under load showed a timing failure in the HTTP thumbnails test, which passed on the sequential repeat. No additional compositor or host was started for this proof. Visual acceptance on the Electron/Smithay desktop depends on a next authorized login with the new binary; publishing sources and preparing the build does not change the open session.

Visual style from the core (2026-11-03)

Phase 5 of the style unification of 2026-11-03: the visuals that Smithay draws itself follow the profile palette and the shared surface radius of the web UI (--radius-surface, 16 px). Since this phase the compositor reports capabilities.visualStyle and takes the typed command

{
  "action": "visual_style",
  "accent": "#rrggbb",
  "error": "#rrggbb",
  "background": "#rrggbb",
  "ink": "#rrggbb",
  "window_radius": 16
}

ink is optional (2026-11-13, theme-packs phase 4b): the text color of the active mode, read by the theme passes as ink next to the accent of the window-close ABI v2 (openspec/specs/themes/spec.md). The compositor reports capabilities.visualStyleInk, and the core adds ink only then (an older compositor refuses the unknown field, so it gets the four keys of before). Without ink the compositor takes white over a dark background and near black over a light one.

window_shape and accents are optional too (2026-11-13, theme-packs phase 5b), for a theme that cuts the application windows (Ninja):

{
  "window_shape": { "kind": "chamfer", "cut": 14, "wide": 22 },
  "accents": ["#rrggbb", "#rrggbb", "#rrggbb"]
}

window_shape is {"kind":"round"} (the corner radius, as without it) or chamfer, which cuts the top-right corner by cut and the bottom-left one by wide at 45 degrees, in logical pixels (0 to 32, as window_radius). The finish (window_finish.wgsl) then clips the window to the cut instead of the radius and draws its rim as a 2 px ring along the whole outline: a gradient from the accent of the window to the edge tone (the background mixed 34% toward the ink) on the focused window, the edge tone alone on the others. The accent of a window is one of the three accents, from an FNV-1a hash of its application id (visual_style::window_accent), so two windows of one application share it. A cut never exceeds a quarter of the shorter side of the window, and it scales with the window in the overview. Declared windows (bars, chat, shell) and a window that covers its output keep no finish, so they are never cut. The compositor reports capabilities.visualStyleShape, and the core adds both keys only then, for a theme of core/ui-themes.js with a windowShape (accents are the three accents of the theme in the active mode).

only on the control connection (Compositor::control_command); the internal command path refuses it with "The visual style needs the control connection", also while locked. It is a lease, with the 60 s grace time of the canvas and canvas warp leases (crate::canvas::Lease): 60 s after the last open connection that sent it closes, the values of before return (visual_style_tick, also while locked). The grace time and not an immediate reset because a host and core maintenance restart reconnects and sends the style again within seconds: an immediate reset would flash the sage rim and redraw every output twice. After a rollback to a core that never sends it, the values of before return once the grace time ends. Exactly these keys, colors as #rrggbb and a whole radius from 0 to 32; anything else is an invalid request. It moves nothing, so it is taken while locked (allowed_while_locked); the lock frame stays black. The snapshot reports what the core sent as visualStyle ({accent, error, background, windowRadius}, plus ink when the core sent it), null before it. Only the authenticated core sends it (syncVisualStyle of web-shell/core/smithay.js), from the dark tones of the active palette (openspec/specs/color-palette/spec.md, Compositor). No agent tool, MCP entry, generated HTML, scheduled turn or plugin reaches it. The agent still influences the accent and the background through the already authorized paths that change the palette (set_profile_color and the Matugen block of replace_ui), with validated #RRGGBB colors only.

native/smithay/src/visual_style.rs derives the values that the draw code reads:

  • The window finish rim (window_finish.wgsl, rim_top and rim_bottom; the GLSL window_finish.frag with u_rim_top and u_rim_bottom until 2026-11-11): the accent at the top edge, 56% of it at the bottom, the ratio of the sage rim of before.
  • The opening reveal: the shimmer is the accent (u_glow), and the contour is the accent lifted 35% towards white (u_contour).
  • The window corner radius (scene::finish_radius): the scale of the placement times the radius, at most the radius (16 from the core).
  • The Grid drag outline (grabs::Outline::scene_elements): one rounded outline (outline.wgsl through wgpu_outline.rs; a PixelShaderElement with outline.frag until 2026-11-11, and, in the fallback build, five square solid pieces until step 8 removed it) with the window radius, the accent when the drop lands and the error tone when it is refused, 2 px stroke and 18% fill as before. A shader failure falls back to the square solid pieces, in the same colors.
  • The clear color of the outputs while unlocked, of the overview planes and of the workspace previews: the background. The two clear colors of workspace_depth.rs were in GLES tests only and went with them (steps 7 and 8 of openspec/changes/archive/2026-11-10-gles-removal-plan/design.md).

Before the command, after its lease ended, and on a compositor that a core never sent one, every value is the one of before: the sage rim (0.38, 0.49, 0.47) to (0.70, 0.83, 0.77), the reveal (0.62, 0.83, 0.80) and (0.62, 0.95, 0.88), 12 px corners, the square outline in #9ed4cc and (0.85, 0.45, 0.42), and the clear (0.035, 0.045, 0.06). An older core changes nothing. The style lives in a thread local of the compositor thread, the only thread that renders, because the window finish reads it inside RenderElement::draw; Compositor::new resets it. Each change bumps a revision. The caches redraw as follows:

  • The DRM heads (visual_style::Follower) start a new damage tracker, so every buffer age draws the whole output once. The finish of a window, live or drawn from the downscale cache of the canvas (sharp_zoom), keeps its commit through a style change, so this full redraw is what repaints the rim; the cached texture itself holds only the client pixels (the finish wraps it at draw time), so it needs no new render.
  • The nested backends render each output with buffer age 0, which always draws the whole output.
  • The scene signature of the overview planes and the previews includes the revision, so they draw again.
  • The wallpaper suspension (wallpaper_suspended) runs every frame and reads the radius of each call, so a radius change from 12 to 16 re-evaluates whether an Immersive window covers the output at the next frame.
  • The Grid drag outline keeps one element for each output origin and builds new uniforms only for a new size, drop result or revision.

An equal style keeps the revision.

The same capability says that a declared panel glass takes saturate (the CSS percent, 100 by default, 0 to 200) and a blur up to 72 (before up to 24); see openspec/specs/web-panels/spec.md, Glass with real blur. scripts/check-host-skew.py reports visualStyle and coreSendsVisualStyle and warns about a core that sends the style to a compositor without the capability, and about a core that never sends it to one with it. Neither blocks: the pair keeps the values of before. Update the compositor and the core together.

Validation: unit tests of the parsing, the defaults, the derivation and the follower (visual_style.rs), harness tests of the control connection, the snapshot, the lock, the lease, the preview signature and the wallpaper cover radius (visual_style_tests.rs), and three offscreen EGL tests (deleted on 2026-11-11 with the GLES scene, step 7; mirrors: native_wgpu_renderer_styled_finish_takes_the_accent_of_the_visual_style, native_wgpu_the_outline_of_a_visual_style_is_rounded_in_the_accent and native_wgpu_a_style_change_damages_an_output_with_a_cached_window): egl_the_rim_takes_the_accent_of_the_visual_style, egl_the_outline_of_a_visual_style_is_rounded_in_the_accent (also one element per output) and egl_a_style_change_damages_an_output_with_a_cached_window. A nested QA run with two profile colors is pending; no live session proof yet.

Trackpad and runtime mapping (2026-10-28)

The direct backend configures each libinput device on DeviceAdded, including reconnection/resume. The default enables tap-to-click with one/two/three fingers for left/right/middle and clickfinger when supported. Devices without clickfinger keep the default physical method. Mouse and keyboard without these capabilities are not reconfigured.

The private same-UID RPC accepts pointer_configure with a complete, typed settings: boolean tap_enabled, tap_map (left_right_middle or left_middle_right) and click_method (default, button_areas or clickfinger). The pointerConfig state reports availability, requested policy and the real reading per device; a policy with no connected device stays prepared for hotplug, without proving physical operation. The nested backend refuses changes. Pressed buttons block the change. A libinput rejection tries to restore the previous policy on all devices and returns an error; a failure in the restoration is also recorded in the compositor log. There is no generic execution in this contract and no access by generated HTML.

After discovering the real compositor socket, query and change without logout:

python3 scripts/smithay-pointer.py --socket "$AGENT_NATIVE_SMITHAY_SOCKET"
python3 scripts/smithay-pointer.py --socket "$AGENT_NATIVE_SMITHAY_SOCKET" \
  --tap on --tap-map left_right_middle --click-method clickfinger

Omitted options keep the queried policy. The changes belong to the session, with no persistence in the profile; the next login goes back to the default above. Introducing this support in an old compositor requires a new login once. Querying the compositor in use confirmed the absence of the contract; there was no session swap, nested test or restart. Physical acceptance of the two-finger tap/click remains pending a login with the new build. Browser and Electron do not prove libinput gestures.

Automated validation: 55 Rust tests passed in each build (default and session), with five EGL tests ignored per build; fmt, Clippy with warnings as errors and the session build passed. Two Python tests check the query protocol and the refusal of old responses, an unavailable backend and errors. In the web shell, npm ci, format:check, check/build:check and 175 Node tests passed, with no provider. There is no new visual proof in the browser or Electron and no physical trackpad proof in this change.

Keyboard layout from the system (2026-10-31)

GDM starts the session without XKB_DEFAULT_*, so xkbcommon used plain us and dead keys did not work on a us+intl system. At startup the compositor now reads XKBMODEL, XKBLAYOUT, XKBVARIANT and XKBOPTIONS from /etc/default/keyboard (keyboard(5), the file that localectl set-x11-keymap writes on Debian and Ubuntu). The code is in native/smithay/src/keymap.rs. A set XKB_DEFAULT_* variable wins over the file. Layout and variant go together, because xkbcommon drops a variant without its layout. A missing file keeps the xkbcommon defaults. If xkbcommon refuses the system keymap, the compositor writes "system keymap refused" to its log and uses the default keymap.

The layout applies to the whole session and changes only at the next login. There is no layout switch at run time. Rust tests parse the Ubuntu file and compile us+intl, with the apostrophe key as dead_acute. There is no physical typing proof in this change.

Focus recovery without automatic presentation switch (2026-10-28)

Periodic focus recovery called the same operation as an explicit click on the window. If the immersive application became temporarily ineligible, the fallback to the chat changed the presentation to chat; when the application came back, it stayed as a side thumbnail. Recovery now changes only keyboard focus, which preserves the presentation and the selected application. In presentations with chat, the fallback prefers the chat field over the application thumbnail. Explicit clicks and commands still restore or collapse the presentation.

The regression test goes through the five modes with repeated losses and returns of focus, preserves the chosen application and checks the explicit restoration. 56 Rust tests passed with session (five EGL tests ignored), fmt, Clippy with no warnings, build and 175 Node tests, plus npm ci, format:check and check/build:check.

In the existing DRM session, state observation and native captures confirmed ChatGPT in immersive mode and its thumbnail in chat mode; the original presentation was restored without restarting processes. A spontaneous change was not reproduced during the observation. These captures use the earlier compositor and do not prove that the fix removed all flicker. The compositor change requires a new login with the prepared version; no other compositor was started and the session was not ended.

Application reveal by camouflage (2026-10-28)

New application windows get an organic 700 ms reveal in the finish GPU shader. The clock starts once, at the first buffer commit of the root surface. Connected irregular regions become visible, with a light sage-green line outlining each void and revealed island, including the inner holes, with a soft glow around them. There is no scaling, offset, resize or change of the sampling coordinates: the window keeps the geometry set by the layout. The effect does not refract the background; the optical feel comes from the mask and the glow. Chat, bar, wallpaper and protected panels are excluded.

Since step 6c of theme-packs phase 6 (2026-11-13) the default open is the window-open pass of the built-in base pack (native/smithay/themes/base), the same dissolve written again in WGSL over the alpha shape of the finished window, 700 ms times the closeMs / 400 of the profile (80 to 1500 ms). The active theme's own open pass wins for a main window; a dialog always takes the base open. The Rust reveal in finish_shade stays as the fallback when no base loads, when the cap of eight is full, when the effects are off or when a pass fails, and wgpu_renderer_open_tests.rs keeps the two within 2/255.

Since step 6d (2026-11-13) the default close is the window-close pass of the same base pack (effects/close, the black-hole bend of black_hole.wgsl written as a pass, 400 ms times the closeMs / 400 of the profile). A window takes, pinned at its destruction: the pass of the active theme (sink or not), else the base pass while the wallpaper reports a live sink (with none the window closes at once), else the Rust black hole of plain_black_hole.rs, which also draws the rest of a base flight whose pass fails. The sink rule, the target, the lease and the placement (black_hole::placement) stay in Rust; a base flight is placed by it, not by the CSS of the pass. wgpu_renderer_black_hole_tests.rs keeps the Rust close and the base pass within 2/255 per channel toward a fixed sink (measured 1/255).

The clock belongs to the window and is also used by thumbnails and workspace transitions. Focusing, restoring, switching workspace or opening a preview does not restart the reveal. Since step 6b of theme-packs phase 6 (2026-11-13) an open that falls in a skip is spent: it shows its final state and never resumes a partial one. The skips are a workspace transition, the overview, the session lock, the canvas lens, a hidden workspace or a window off camera (on every output), a window that covers its output or is full screen, and reduced motion (workspace_motion told off). open_skips.rs reads them before each plain frame (the primary frame sweeps; an extra output that draws in the same 2 ms batch does not sweep again, and nothing is allocated while no open runs) and at the control tick, and the commit that arms a clock reads the global ones, so a window mapped during a transition is final at once and a transition that ends does not bring it back to the middle of its reveal. This holds for the Rust reveal and for a window-open pass alike; a spent window frees its slot of the cap of eight and no longer holds the wallpaper suspend (covering_app). Reduced motion is workspace_motion told off: a compositor that no core has told yet has motion on for the open, so a window that maps before the host reports its preference still opens (the core sends nothing until the host reports, and the host reports again when the compositor instance changes or a poll failed). The camera transition keeps its own default (off until told). The skips that read the placement (hidden, off camera, covering) wait for the first layout pass after the map, because a new window has no place before it. A window that covers its output (the Immersive covering application, the Grid maximize) is judged once, at that first pass, so a first buffer that is smaller than the output and grows to cover it later keeps its open; a real full screen entered mid-open still ends it at any time. A window is not spent as off camera while the camera of its workspace flies (a new window placed from afar, the fit of the agent): it is judged once the camera has settled, and spent only if it is still out of view then. The compositor invalidates the pixels while the mask changes, even when the client publishes a single buffer, and includes the final frame in the damage. After that it resumes the client's precise damage. No additional offscreen is created.

Validation: an EGL test with the production shader and a static synthetic client checks initial disappearance, partial reveal, monotonic alpha, fixed geometry, visible outline of the inner voids, invalidation and a stable final frame. A sequence of five frames was inspected visually outside Git. The EGL corners regression still covers the eight output orientations, clipping and client alpha. The proof is offscreen, with no browser, new Electron or additional Wayland session. The compositor in use was not restarted; acceptance of real opening requires the next login with the build prepared. Profile and fallback are not migrated by the effect.

64 Rust tests passed with session, including the six EGL tests, in sequential execution, plus fmt, Clippy with no warnings and release build. A concurrent run got stuck on the pre-existing EGL workspace preview test; only the synthetic fixture was ended and the sequential suite finished in 1.78 s. format:check, check/build:check and 184 Node tests with concurrency 1 also passed.

Transitions with web content (2026-10-28)

The composition of the chat, protected field, inline documents and panels follows the workspace planes. The tab bar stays fixed and its indicator interpolates the selection. The host reports the painted workspace by metadata in the title, tied to commits of the root surface; two bounded GPU textures preserve the origin while the single React host switches conversation. Contract, limits and proofs are in web content in transitions. The change requires a new host and compositor, with physical acceptance at the next login. An EGL and browser test does not prove the integration in the session in use.

Depth when switching workspaces directly (2026-10-28)

The pass uses parallel cards of the whole scene: scale down to 94%, progressive blur, shadows and a parallax background in 380 ms (200 ms since 2026-11-01). Bar and cursor stay fixed. Two GPU passes blur the already composed pixels of applications and web content; generated HTML does not access textures or tools. Reduced motion skips the pipeline and a GPU failure keeps the flat slide. The six temporary targets are limited to 8 megapixels each and freed at rest. Parameters, budget and proofs are in parallel cards and depth of field. The EGL proof uses synthetic data; physical validation of the new version remains pending a login watched by the user, without restarting the session in use.

Workspace transition in theme v3 (2026-10-28)

The depth implementation, initially internal, was replaced by the optional workspaceTransition package of theme v3. The values above are the Studio defaults; parameters and shaders are now reloadable files. The compositor keeps composition, limits, input and reduced motion. Without an enabled package, the pass is flat. Reload is transactional and affects only the next pass. See schema, parameters and reload. The new engine must be loaded at a next login once; after that, adjusting the theme does not require leaving the session. EGL proofs are offscreen and do not replace physical acceptance in the Electron host/compositor in use.

Glass behind web panels (2026-10-28)

The panelBackdropBlur capability adds localized GPU blur behind declarative panels. Quick settings opt into the default material; other panels use the optional field glass. The compositor preserves sharp web pixels, stacking, clipping and association in the transitions, with two targets per panel and an aggregate budget of 64 MiB. Failures preserve the legible web material. There is no additional native UI or production readback. See contract and evidence. Acceptance in Electron/DRM remains distinct from offscreen EGL tests and the synthetic web UI; the session in use was not restarted.

Glass behind the desktop bar (2026-10-31)

The barBackdropBlur capability extends the panel glass to the pill of the web bar. The Electron bar measures the pill; the core forwards it with the typed bar_glass command; glass.rs blurs only that rounded rectangle, inside and clipped to the bar window, in the normal scene, the overview and the workspace transitions. The snapshot reports the stored pill as barGlass. Since 2026-11-10 bar_glass takes output (capabilities.outputBarGlass): the pill of the bottom bar of an extra output, drawn by the scene of that output and reported as outputBarGlass. The lock scene is unchanged. See contract and evidence. It takes effect only after a rebuild of the compositor and a new login.

  • Strength. The CSS material of the pill is blur(24px), and CSS gives the standard deviation of the Gaussian there. The shader uses a standard deviation of blur / 3 pixels, so the pill uses glass::BAR_BLUR = 72 (standard deviation 24, support of 72 pixels, padding 74). Outputs have scale 1, so CSS, logical and physical pixels are equal. Declared panels keep the default blur: 12 and their limit of 24.
  • Saturation. The CSS material also has saturate(145%). The final (vertical) pass of glass.frag (now glass.wgsl, GLSL deleted 2026-11-11) applies the uniform u_saturate after the blur, with the Filter Effects matrix (luminance weights 0.213, 0.715 and 0.072) on the premultiplied color, clamped to the alpha. glass::saturation maps the CSS percentage to the factor: 145% is 1.45, bounded to 0 to 2, and a non-finite value is the identity. The pipeline refuses a factor outside 0 to 2. The horizontal pass always uses 1.0. Panels get glass::Material::from(Glass) with the factor 1.0, and the shader skips the matrix for 1.0, so the panel output is pixel-identical.
  • Placement. The pill is measured in the coordinates of the bar window. The normal scene, the overview and both workspace transitions draw the bar untransformed, at its own location and size, so the blur sits exactly under the drawn pill. BarGlass::bounds_drawn refuses the glass for a bar drawn at another size, so a future scaled bar shows no blur beside its pill.
  • Lifetime. apply_layout clears the stored pill when no mapped bar window exists: the bar unmapped or its client disconnected. A new bar gets glass only after the host reports its pill again.

Validation: bar_glass_is_typed_bounded_and_strict, bar_glass_follows_the_bar_and_never_leaves_it, the_bar_pill_ends_when_the_bar_unmaps_or_its_client_is_gone, the_bar_is_drawn_untransformed_in_the_overview_so_its_pill_stays_under_it, css_saturation_maps_to_a_bounded_factor_for_the_pill_only and the EGL tests egl_bar_glass_blurs_only_the_reported_pill_under_the_bar with the 72 strength and egl_bar_glass_saturates_the_pill_and_leaves_panels_unchanged (deleted on 2026-11-11, step 7; mirrors native_wgpu_bar_glass_blurs_only_the_reported_pill_under_the_bar and native_wgpu_bar_glass_saturates_the_pill_and_leaves_panels_unchanged). The EGL tests ran offscreen on the EGL device of the development machine. The look on a real GPU output and in the shared session is not proven.

Animated collapse to the side thumbnail (2026-10-28)

The focus presentation animates the application between immersive mode/palette and the chat thumbnail in 280 ms, with live buffers and the logical size preserved. The reverse path restores the window. Repeated changes keep the trajectory; reversals start from the current frame. Reduced motion, context switch and incompatible geometries use the final presentation directly. Mouse/scroll stay consumed during the pass, including the click that starts the motion. The logical command minimize still hides the window, with the same persistable state as before.

The thumbnailTransitions capability and the thumbnailMotion state allow telling support from active animation. There is no intermediate buffer, screenshot or additional native component. The web cache of the workspaces is discarded while the window changes scale. Contract, GPU proofs, browser limits and activation are in the collapse record. Electron/DRM validation requires the next login; offscreen tests do not update the existing session.

Single overview and upward gesture (2026-10-29)

The project owner rejected the separate window view of F9. The key is no longer intercepted by the compositor and the CLI rejects --overview; the nested title no longer announces this mode. The historical state of the grid stays disabled, with no entry by keyboard, CLI or RPC. The old code and shader packages stay preserved for compatibility and offscreen QA, with no active UI target. This does not remove the live side thumbnails or the zoom/transitions of workspaces.

Three fingers upward open the same workspace overview that Super+S opens. Detection requires an uncancelled end, negative vertical displacement of at least 80 units and vertical dominance greater than 1.5 times the horizontal. Other finger counts, a short gesture, downward, diagonal, non-finite data and a workspace change during the gesture do not open the view. Vertical recognition accumulates deltas independently of the horizontal drag, to tolerate a small initial deviation. A start during animation, grab or a pressed button does not arm the gesture. Reduced motion does not turn off gesture navigation.

When it finishes upward, the compositor cancels only the transient horizontal presentation and sends workspace_overview_open through the existing private queue. The core processes requests in order, with confirmation and discard on reconnection. The request opens without toggling: two gestures keep the overview open and preserve the original mode for Escape/Super. The gesture does not select another conversation and does not send messages. The capability is announced as workspaceOverviewSwipe. It requires a compatible core and compositor; updated code does not replace processes that are already open.

Tests cover direction, distance, dominance, cancellation, fingers, initial deviation, invalidation and repetition, plus the real queue on a private synthetic socket, reconnection and idempotent opening. The CLI tests the rejection of the withdrawn mode. Browser proofs, publishing, build and preparation of the next login are recorded separately from physical acceptance on the touchpad and Electron/DRM.

Validation of 2026-10-29: 202 Node tests and 84 Rust tests passed, including the 11 EGL cases that are normally ignored, plus format/check/clippy and the full build. In the browser, a core with a temporary profile and a private socket received the synthetic event: it opened the Workspaces UI, kept it open on repetition and restored the chat when closed through the host control. No provider was called. This proof covers the integration of the event with the web UI; physical touchpad, F9 forwarding and the Electron/DRM host remain pending at the next login.

Super tap focuses the chat and Super+S opens the overview (2026-11-01)

The user asked for this change on 2026-11-01. A Super tap (press and release with no other key and no pointer button in between) no longer opens the workspace overview. It gives the keyboard to the chat of the active workspace. Super+S opens the overview, and Super+S again closes it. The other Super shortcuts stay as they were. S was free: no grid key, workspace key, lock, terminal, close or quit shortcut uses it, and a unit test checks it for every modifier mix. Super+Shift+S, Super+Ctrl+S and Super+Alt+S do nothing, as before.

The compositor only queues a typed input request, as for the other keyboard shortcuts: chat_focus for the tap and workspace_overview for Super+S. While the session is locked the lock UI gets every key, so neither request exists. The core handles chat_focus in WorkspaceNavigation.focusChatComposer:

  1. If the overview is open (the core state, or a compositor in the workspaces presentation that a restarted core does not know), it closes the overview the normal way. The workspace presentation comes back as it was before the overview.
  2. It sends the typed command focus_chat. The compositor puts the chat window in front and gives it the keyboard. In the focus layout, the existing chat focus rule applies: from the immersive presentation the chat shows with the side thumbnail of the application, and the palette and sidebar presentations stay. In the grid, the chat keeps its cells. A window that covers the whole grid (Super+F) hides the chat, so its zoom ends, as for a focus key of the grid. A floating window over the chat ends below it. Held windows are not touched: the command moves no window. The command is refused while the session is locked.
  3. It publishes a chat_focus desktop event. The protected host of the chat window moves the DOM focus to the message field when that window has the keyboard (focusComposerOfChat in host.js), so the user can type at once. A bar, recovery, a document without the keyboard and an open overview ignore the event. A chat window that gets the keyboard from the compositor focuses the field through its own window focus handler as before.

Super+S needs no new path: it queues the same workspace_overview request that the tap queued before, and the core toggles the overview with the rules of the overview (it ignores the request during a workspace change or an overview transition). The bar menu button keeps its own route.

Tests: input.rs (the key table and the tap), grid_tests.rs and synthetic_input_tests.rs (a Super tap queues chat_focus and Super+S workspace_overview, never both, and neither while locked; focus_chat focuses the chat, ends a zoom that hides it, raises it above a floating window, leaves immersive and is refused while locked), and the Node tests workspace-navigation.test.js, smithay.test.js and host-script.test.js. A core older than this change does not know the kind chat_focus: its validState throws and the core disconnects, and the compositor keeps the request until a core acknowledges it. Do not pair an older core with this compositor (a core-only rollback after a new login); roll back the whole checkout and log in again. The earlier kinds workspace_swipe and workspace_overview_open have the same limit. See the nested QA proof for the run in a nested compositor. The shared session was not touched.

Super mode (2026-11-04)

Phase 1 of Super mode changes the meaning of the tap described above; the section of 2026-11-01 stays as the history of the request path, which did not change. The current compositor contract, with the wire names of "Wire contract (phase 1, as built)" in super-mode.md:

  • The chat dock state on the wire is expanded, collapsed (hidden) or box (the composer alone, 640 x 180 at the bottom center of the content area, 12 px above the bottom bar area). A compositor that implements this reports capabilities.chatBox: true. The core validates the capability as a boolean and accepts box everywhere it validates a dock state (canvasWorkspaces[].chatDock, views[].chatDock, floatingChat, gridViews, the login restore).
  • The Super tap: the compositor runs the fit all of the workspace of the focus output (on a Grid it recenters the camera; refused in the overview, locked and during a transition), sets the chat of that view to box (a held chat stays expanded), then queues chat_focus with only generation and kind, as before. The core path is the same: close an open overview, focus_chat {output?}, the chat_focus desktop event. focus_chat no longer toggles the chat: it gives the keyboard to a box or expanded chat, and sets a hidden chat to box first. The fit of a tap stops at zoom 1 and frames the windows above the box. A second tap on a box that a tap showed hides it and returns the camera from a fit all, or after an Alt+scroll step centers the focused window at the zoom before the tap, with no input request.
  • chat_dock {state, output?, camera?}: camera: "return" goes only with collapsed (else invalid_camera); after the hide the camera flies back to the camera before the fit all when the fit target is still the whole workspace, and does nothing on a Grid or after a pan. The core sends camera only to a compositor with capabilities.chatBox, and refuses box without it. The refusals of the overview, the lock and chat_hold (chat_held for collapsed and box) stay.
  • Super+N queues the input request new_chat (only generation and kind); the core runs the code of POST /api/create, so the busy refusal applies and a refused key is dropped.
  • Alt+scroll on a Canvas workspace steps the focus in spatial order and centers the camera at the same zoom; the compositor swallows the axis on Canvas. Super+Shift+F is no binding any more and reaches the client. Super+Return also hides the chat of the focus output's view.
  • The user actions focus_next and focus_previous are new; chat does what a tap does, and fit_all keeps its function with the key label "Super".
  • Version skew: a core without the box state (no "box" in chatDockStates of core/smithay.js) refuses the state of a compositor with chatBox and drops the connection, and a new workspace starts in the box, so scripts/check-host-skew.py refuses that pair; a core with the box on a compositor without chatBox is allowed with a warning (the tap shows or hides the whole chat, Super+Shift+F stays, Alt+scroll and Super+N do nothing). Roll the compositor, the core and the host back together.

Input through a transform (2026-11-01)

Phase 1 of the canvas. The scene draws each window at a Placement: the origin of its geometry at (x, y), scaled by scale. Pointer input reads the same placement.

  • One hit test (hit_in, state.rs) serves the pointer focus, the click selection and the Super drags. It maps the screen point through the inverse transform: (pos - origin) / scale + geometry.loc. At scale 1 every placement that takes input has its origin on the space location, so it computes the same values as before, to the last bit. One scale-1 placement has another origin: the preview of the Chat presentation of a small application. place() maps that application at geometry.app, and the preview shows in the strip. It is a thumbnail, so the hit test skips it. A dialog that clip_dialogs clips on its left or top side is a second case, for a moment, until place_dialogs moves it inside its frame. Its placement origin is the clip origin, and input follows the drawn pixels.
  • Smithay sends pos - origin to the client. At a scale other than 1 the focus origin changes with each pointer event, so the compositor gives one per event. During a press on such a window, the click grab of click_grab.rs replaces the ClickGrab of Smithay and computes the origin again at each motion. It also runs for a canvas window at scale 1, because a camera key during the press moves the window. Elsewhere at scale 1 the ClickGrab of Smithay runs, as before.
  • A window that is not a thumbnail takes input at a scale of 0.5 or more (INPUT_THRESHOLD). A press on a window drawn smaller only focuses it, and the press and its release are swallowed.
  • A thumbnail takes no input at any scale: the preview of the Chat presentation and the application of a thumbnail motion. A press on it only focuses the application, as before.
  • grab_refusal accepts a window that takes input. begin_super_grab takes the resize edges from the rectangle where the window shows. A move or resize grab divides the screen motion of the pointer by the scale of the window at the press, so the window follows the pointer in its own units.
  • A dialog takes the transform of its window: its offset from the window and its size scale with it, and the clip to the window follows. The dialogs of a thumbnail stay hidden.
  • No layout draws an application at a scale other than 1 yet. The in-process tests (scaled_input_tests.rs) draw windows at 0.4, 0.5, 1.0 and 1.5 with synthetic placements, and one test compares the hit test with the formula of the previous main at every 7th pixel in the grid and in the Sidebar, Chat, Immersive and Palette presentations. One more test maps a 160x100 application with no override: its preview shows at scale 1, and a press on it is swallowed.

Bottom reserve for the web bar (2026-10-29)

desktop_areas separates the 40px at the bottom of the output, including offset origins and small outputs. Focus/tile/pair/maximized layouts use the area above the bar. The depth transitions keep a vertical origin of zero and exclude the bottom strip from sampling, destination and clipping. The EGL proof checks the sharp return of the cards and the absence of content in the reserved footer. The default protected panel, including the legacy declaration with offsets 0/40, follows the bar; isolated panels and custom offsets keep the declared geometry. Changes to the binary require the next login; do not end the current session to activate this change.

App dock bar: autohide and reserve (change dock-theme, phase 1)

A bound bottom bar can declare autohide: "intellihide" and a reserve (capabilities.appDockAutohide; native/smithay/src/app_dock.rs). Such a bar contributes only its exclusive to every strip (layers::bar_height, and layers::strips for the callers that build desktop_strips), so the app dock has no strip and its window overlaps the content area at the bottom edge. The compositor decides per output, at the end of each layout pass and at each control tick, whether the dock is hidden (an application window drawn there touches its region for 150 ms and nothing holds it); the host draws the slide. app_dock_region and app_dock_hold come from the registered host connection only. The hit test of the dock window is clipped to the region (shown) or to the last pixel row of the output across the region (hidden) in hit_in, window_root_at and the press paths, through Compositor::app_dock_takes. The reserve is read by the box and the chat column (chat_rect), the Grid cells (grid_area) and the protected panels anchored at the bottom (anchored_rect). The snapshot adds appDock and the capability. No theme declares autohide in phase 1. Tests: app_dock_tests.rs and the unit tests of app_dock.rs. Full text: openspec/specs/window-layers/spec.md, The app dock bar.

Shell window identity (2026-10-31)

Since window layers phase 4 (2026-11-01) the protected titles below give no role: only a declared token does (see "Window layers phase 4" above). The host trust rule (pid and connect time) is current; the title list is history.

A window is a shell window only when two things are true: its title or app id is a protected identity, and its Wayland client is the registered shell host. The protected identities are the chat ("Agent Native OS" and the workspace titles), the bottom bar ("Agent Native Desktop"), the top bar ("Agent Native Top Bar"), the web panels ("Agent Native Panel:<id>"), the wallpaper ("Agent Native Wallpaper") and the app id agent-native-os. The lock panel keeps its own check (lock_panel_window).

The registered host is the process id that the authenticated core sends with lock_host (AGENT_NATIVE_LOCK_HOST_PID, the Electron main process). The compositor accepts only the parent of the process that connected the control client, so only the core that the host started can name it (see the lock screen). Compositor::host_window reads the pid of the Wayland client from the socket credentials and the time the client connected (ClientState::connected, clock ticks after boot). A window is the host's when the pid is the host pid and the client connected after the host process started (field 22 of /proc/<pid>/stat), so a connection that an older process with a reused pid left open is not the host. Compositor::sync_host_trust marks a window as trusted on that rule and clears the mark otherwise (desktop::trusted). panel_spec returns a declaration only for a trusted web panel, so a spoofed panel title gets no panel placement, keyboard or glass. Every role check goes through crate::layers::declaration, which requires the mark, and its helpers (declared, role, is, is_bar, bar, is_wallpaper, chat, fixture, no_input) inherit it. So placement, the bar strips, the layer order, the input order, keyboard focus, every workspace and the Close/Minimize protection all follow it. A window with a protected title from another process is a normal application.

Bootstrap rule: before the core registers the host, no window is trusted. A host window that maps first is a normal application until the registration. The registration marks the windows of the host process that already exist, and register_window marks each new one. The next layout pass (every 30 ms) then places them. The host creates its windows only after the core prints its URL. When the compositor connection of the core is ready before that, the core registers before any host window maps. A later connection fails closed: the host windows are normal applications until the registration, which then marks them.

Trust follows the host process, not the control connection. When the registering control connection closes (a core reconnect after an RPC timeout, for example), the windows of the host stay trusted and keep their places. Only the lock authority ends with the connection: the next registration holds it, and without it no shell lock starts. While the host process lives, a registration that names another pid is refused, on every connection. Trust and the lock authority end when the host process exits: the compositor opens a pidfd for the registered pid (pidfd_open; without it, the start time of the process tells), the 30 ms control timer checks it, and host_pid checks it at each use, so a later process with the same pid is never the host. A pid without a process, or one that cannot be watched, is refused. A new host can then register, and it trusts only its own windows. As for the lock, the first control connection that registers holds the registration until it closes or the host exits. The control socket is private to the user.

The pid is the narrowest identity available. The core registers a process, not a Wayland connection, and two connections of one process share its memory, so a binding to one ClientId adds no isolation. Electron renderers are other processes and have no Wayland connection. The Electron host also keeps the title of each host window fixed (page-title-updated): a page cannot rename its window to another protected title. Only the chat may add its workspace marker ("Agent Native OS [workspace:N]").

Isolated web panels are user content: Panel::placement keeps them inside the content area, between the bars. Protected panels keep their rectangle.

Tests: protected_titles_from_another_process_are_normal_applications (every kind from a foreign pid: no strip, no global workspace, Pair, Minimize and Close allowed), protected_titles_from_the_host_process_are_shell_windows, host_windows_mapped_before_the_registration_are_trusted_after_it, host_trust_survives_a_reconnect_and_ends_with_another_pid, host_trust_ends_when_the_host_process_exits, a_connection_older_than_the_host_process_is_not_trusted, session_lock::tests::the_host_trust_ends_when_its_process_exits and isolated_panels_stay_between_the_bars. The in-process test clients share the pid of the test. A foreign host is a child sleep (Foreign), because a registered pid must exist and must not be a client of the test; init is not used, since a test can run as pid 1. A test that changes the host from a live process uses lock_host_exited_for_test.

Top bar strip (2026-10-31)

Since window layers phase 4 (2026-11-01) the top bar is the window bound to the role bar at the top edge, not the title, and web_panels.rs with its moves of the legacy defaults is gone: the core builds the top-bar placement of each built-in panel into its declaration.

The host maps a second bar window with the title "Agent Native Top Bar" (crate::layers::bar(w, Edge::Top)). desktop_strips(area, top, bottom) splits the primary output into the top strip (40px, TOP_BAR_HEIGHT), the bottom strip (40px, BOTTOM_BAR_HEIGHT) and the content area between them. A strip exists only when its bar is mapped, and the content keeps at least one pixel of height. Compositor::content_area gives that content to the focus geometry, the tile/monocle/pair layouts and maximized windows. crate::layers::is_bar covers both bars: they are shell windows, stay visible in every presentation and in the overview, never take keyboard focus, never join a pair or Alt+Tab, and stay fixed during the slide and depth transitions. The legacy thumbnail grid uses the content area. The depth transition takes both strips: each card samples only the content between the bars, stays centered on the content axis and is clipped to the content area (workspace_depth::card(.., (top, bottom), ..)). The wallpaper card is the exception: it samples the whole output with the strips (0, 0), so the wallpaper stays visible under both bars during the transition.

The bar blur stays on the bottom pill only: glass_request matches crate::layers::bar(w, Edge::Bottom), and the top bar is no panel, so it gets no compositor blur. The lock covers the whole output and hides both bars. Both bars stay on the primary output only. The host declares the legacy defaults above the bottom bar (quick settings and the notification center bottom-right 0/40, the toasts bottom-right 8/48), so a compositor without the top bar shows each panel next to its button. While a trusted top bar is mapped, these exact defaults drop from the top strip (web_panels.rs): quick settings at the right, the notification center at the center, and the toasts (notifications) at the top center, 8px under the top strip. The top-right 0/32 and 0/40 forms of an earlier build of this branch follow too. Without a top bar (an old host or a crashed bar), these panels keep their declared anchors. The snapshot reports the capability topBar: true; the host creates the top bar window only with it.

Tests: both_bars_reserve_their_strips_and_leave_the_content_between_them, both_bars_take_their_strips_and_windows_stay_between_them (protocol clients: focus and tile layouts, refused pair) and protected_defaults_drop_from_the_top_bar_without_moving_custom_panels. The change requires the new compositor at the next login. An older compositor does not know the title "Agent Native Top Bar" and treats the top bar window as an application window.

Minimize policy (2026-10-29)

The XDG announcement no longer includes Minimize, which lets compatible clients hide that button. The other capabilities announced before are kept; this change does not implement new maximize/fullscreen handlers. The internal minimize/restore command stays for compatibility. The host does not offer minimize, and the GTK configuration is described in architecture-decisions.md. This change requires a build and the next login for the compositor announcement; it does not prove an update of the bars of all apps that are already open.

Maximize and restore from the application bar (2026-10-29)

The XDG maximize/unmaximize handlers now forward to the common window policy: maximize selects focus/immersive, restore selects focus/sidebar, with chat on the left and app on the right. Both preserve the window, remove any minimization and keep focus on the app. Repeated requests do not toggle on their own; the client chooses set/unset from the state that the compositor confirmed.

The XDG Maximized flag and the bridge metadata follow the presentation. The change invalidates the desired geometry so that it sends a configure even if the size matches. Focus changes in sidebar preserve the presentation; explicit layouts clear the immersive flag. The overview keeps the earlier state until it exits. Restore requires an available chat, and the same shell/workspace protection applies to IPC and XDG. Fullscreen was not implemented. Client-driven move/resize was not implemented on 2026-10-29; it exists since 2026-10-31, see Pointer move and resize of windows.

Since 2026-10-31 the compositor honors an XDG maximize or unmaximize request only from the window with the keyboard, or from the window of the dialog with the keyboard. Another window cannot take the screen and the keyboard from the chat. It still gets a configure with the state that the compositor kept.

Policy tests exercise repeated cycles, geometry without overlap, idempotence and focus between app/chat. Activation and validation of the physical button are left for the next login; do not start another session for this proof.

Several monitors

The direct session drives any number of outputs on one GPU: one primary output and one extra output for each other connected connector with a free CRTC. The rules are in native/smithay/src/outputs.rs (pure, covered by unit tests) and native/smithay/src/drm.rs (applies them). On the wire every extra output has the role secondary. The nested backend has one output.

  • Layout. The primary output is the first connected connector with a usable CRTC, as before. It is mapped first, at (0, 0). Every other connected connector with a free CRTC becomes an extra output. The extra outputs follow the primary output from left to right in connector order (the order of the DRM connector list, for example DP-1, HDMI-A-1, DVI-D-1), top-aligned, with no gap. Each output uses its own preferred mode (the first mode when none is marked preferred), so the sizes can differ. A connector with no free CRTC is not driven.
  • Workspaces. Workspaces, the overview, thumbnails, workspace transitions and previews, the immersive/sidebar/palette presentations, the chat, the web bar and web panels exist on the primary output only. The wallpaper window is on the primary output; each extra output shows a copy of its buffer (see below). Switching workspace changes the primary output only.
  • Extra outputs. Each extra output is a static area. Its windows stay visible on every workspace and do not take part in presentations or in Alt+Tab. Each extra output tiles its own windows over its whole area, apart from the other outputs. There is no bar there. Behind the windows, the compositor draws the wallpaper of the primary output again, scaled to cover that output (see the web wallpaper). Focusing a window there gives it the keyboard but does not change the workspace presentation. The pointer moves across every output; slow fractional motion crosses each shared edge. While the overview or a workspace animation runs on the primary output, the pointer on an extra output keeps the normal hit test of that output: focus, clicks and scroll reach its windows, and the overview stays open. A press already swallowed by the overview keeps the pointer without focus until its release. Absolute pointer devices (tablets, touch screens, the pointer of a virtual machine) map onto the rectangle that holds every output, so they reach every output; a point in a gap of outputs with different heights moves to the nearest output. With no mapped output the event is dropped. Pointer focus also follows a still pointer (refresh_pointer_focus): when a window maps, unmaps, moves, resizes or changes stacking under it, the control timer (every 30 ms, control_tick) and every button press compare the surface under the pointer and its origin with the focused ones and send one motion only when either differs. A moved surface therefore gets its new local position, and an unchanged pointer gets no event. The motion follows the lock, overview and swallowed button rules of a normal motion. A pointer grab, including a held button, is left alone. A click on a panel that opened under a still pointer (for example by a shortcut or from the protected host) therefore reaches the panel, and a click after a panel closed reaches the window below. The bell sits in the top bar and the notification center maps below it, so a bell click does not use this path. Screen capture (capture) reads the primary output only.
  • Drag to another monitor (user request of 2026-11-01). The pointer already crosses the edge during a move grab (title bar drag or Super+left drag), and the window follows it onto the next output: the scene of each output draws the part of the held window that shows on it (grab_guest), and a layout pass leaves its location alone until the drop (window_follows_pointer). The drop sends the window to the output under the pointer through the path of send_to_output: the dialogs go with it, a window on the primary output joins the active workspace, and the shell windows never move (the chat cannot be grabbed). A tile joins the grid of that output, the shared grid of an extra output or the grid of the active workspace, on the largest free rectangle that contains the cell under the pointer, the same rule as a drag on one grid (Grid::drop_target); the outline shows that rectangle on the grid of the output under the pointer, drawn by the scene of that output. When the cell under the pointer holds a window, or no free rectangle contains it, the window is a new window of that grid, which fills again with it last (the outline shows that place, or none when it floats); there is no swap across outputs. A window that floated at the start of the grab, or any window dropped with Shift, floats on the other output at the pointer position, clamped to its content area. In the focus layout the window goes to the target as send_to_output does (no outline: that layout has no cells). A held window can be dragged across by the user; the agent tools still do not move it. The same refusals as for any grab apply: the lock ends the grab, the overview and the workspace transitions refuse it; the unplug of the output of the grid that the grab started on ends the grab too, and the layout then places the window. On the primary output the guest window draws at the layer of a floating window: above the application windows, below the chat, the bars and the web panels (stacking_key), so it never covers a shell surface. The dialogs of the held window follow it: every motion of a move centers them on the window again (the layout pass of the grab keeps the window with the pointer and ignores its cells and its output), and the scene of the output that the window shows over draws them above it (grab_guest_dialogs), clipped to the window. They stay on the output of the window until the drop, which sends them with it. A cancelled grab (the lock, the overview, an unplug) ends with the layout pass that puts the window on its cells and the dialogs on it. A press without a motion has not moved the window: the cells (or the application slot of the focus layout) still bound its dialogs. Not tested with a real second monitor: the in-process tests check state, and the ignored EGL tests egl_a_window_dragged_in_from_another_output_draws_below_the_chat and egl_the_dialog_of_a_dragged_in_window_draws_above_it (deleted 2026-11-11; mirrors a_plain_window_dragged_in_from_another_output_draws_above_the_tiles_and_below_the_chat and the_dialog_of_a_plain_dragged_in_window_draws_above_it_and_below_the_chat) check the order of the layers in one offscreen frame of the primary output.
  • Identity of an output. Each extra output gets a new internal ID when it starts. A window remembers that ID, not a position, so it keeps its output when the outputs are laid out again.
  • Putting a window on another output. The private same-UID RPC accepts {"action":"send_to_output","window_id":N,"output":T}. T is "primary", "secondary" (the first extra output, from left to right, kept for compatibility) or the name of a driven output, such as "HDMI-A-1" or "DVI-D-1" (1 to 64 characters: ASCII letters, digits, -, _ and .). The name of the primary output selects the primary output. An unknown name fails with "Unknown output"; "secondary" with no extra output fails with "No secondary output is connected". The command refuses shell surfaces and the wallpaper. A window can move from one extra output to another. maximize on a window of an extra output is refused; restore only shows it again. A dialog (xdg parent) follows the output of its parent; the dialog of a window on an extra output goes to that output directly, not through the workspace of its parent, which can be inactive on the primary output. The core window_action tool calls this command with action: "send_to_output" and the same output values; it refuses held windows and protected shell windows first, and the core client refuses a name that desktop_state does not list. Nothing available to generated HTML calls it. send_to_output does not change arrange_windows.
  • State. The state snapshot lists the primary output first, then the extra outputs from left to right, each with name, geometry and role (primary or secondary). Each window reports output (its role, unchanged for compatibility) and outputName (the name of the output that shows it). The core desktop_state tool keeps these fields, so the agent can tell several secondary outputs apart. A move by name is confirmed by outputName, a move by role by output.
  • Keyboard shortcut. Super+Shift+Left and Super+Shift+Right move the window with the keyboard (with its dialogs; a dialog moves its window) to the nearest output on that side. The side comes from the output geometry (the centers), not from the role: with the current layout the primary output is on the left, and with three outputs each key press moves one output. The key sends the typed send_to_output command with the name of the target output, with the same rules: shell surfaces and the wallpaper stay, nothing moves while the session is locked (the keys belong to the lock), and without an output on that side the key does nothing. The window keeps the keyboard; on the primary output it joins the active workspace. The compositor does not know the windows that the user holds (manual control is a core concept), so the shortcut does not refuse them: the user presses it. The Super tap does not focus the chat after this chord, and Super+Left/Right without Shift stay the workspace step.
  • New windows. A new application toplevel opens on the output under the pointer. At its first commit with a buffer, with the pointer on an extra output, the window goes to that output, in the same state as after send_to_output; otherwise it opens on the primary output, on the active workspace, as before. This choice happens once per window. It never applies to a window with an xdg parent (a dialog follows its parent), to a window of the registered shell host, to a window with a shell title or app id (also before the host registers), or to a window that opens while the session is locked. The core does not undo the choice: its workspace bindings (bind) change only the workspace, never the output, and a session restore at login opens windows while the pointer starts at (0, 0) on the primary output. A restore that runs while the pointer is on an extra output places those windows there too, and the restore of a maximized window then reports the refusal of maximize on that output.
  • Hotplug. A udev change event on the GPU probes all connectors again (forced probe). The compositor compares them with the connectors in use:
    • the primary connector is not connected any more, or cannot be probed: the experimental session ends, as before;
    • every driven extra connector that is gone is removed first (its Wayland global, its CRTC and its scanout surface). Every window that was on it returns to the primary output, on the active workspace, at the default position, where the layout places it;
    • then every new connected connector with modes starts as an extra output, at its place in connector order. A connector that cannot start (no free CRTC, a surface error) is skipped for this event, and the others still start;
    • after each change, the remaining extra outputs are laid out again from left to right with no gap. An output that moved keeps its windows, and the layout tiles them over its new area. The pointer is clamped again, so a pointer on a removed output moves onto an output;
    • a connector unplugged and another one plugged in the same event: the old output is removed first, then the new one starts, so the new one can use the freed CRTC;
    • any other change is ignored. An extra output that fails to render or to submit a frame is dropped and the session continues with the other outputs. An event that arrives while the VT is inactive is applied when the session returns.
  • Session lock. The lock covers every output. Each output shows its own lock surface or black, input reaches only the lock surfaces, send_to_output is refused while locked, and locked waits for a hidden frame on every driven output. See several outputs.
  • Rendering. One renderer serves every output (GLES when this was written; the wgpu renderer since 2026-11-10). Each output has its own KMS surface, damage tracker and page-flip cycle; a vblank is routed by its CRTC to the output that drives it. The frame of each extra output is built by scene::secondary_elements for that output, in its local coordinates, with only its own windows and the wallpaper copy last. An extra output queues a page flip only for a frame with damage (an animated wallpaper damages each frame), or while a lock waits for a hidden frame on every output. An idle extra output does not flip; the 16 ms timer checks it again and keeps sending frame callbacks to its windows. The primary output keeps its cycle.
  • Reused CRTC. A vblank event names only the CRTC. When an extra output with a queued flip is removed, its flip event is expected for 250 ms on that CRTC. A new extra output on the same CRTC queues nothing until that event arrives (it is consumed and ignored) or the time ends, so it never takes the old event as its own. Each CRTC has its own entry.

Validation of the current contract: unit tests for the layout of three outputs of different sizes, with the middle one removed and a fourth one added (three_outputs_of_different_sizes_sit_in_one_row_without_gaps), the connector order (extra_outputs_stay_in_connector_order), the pointer clamp and absolute devices over three outputs (pointer_crosses_every_shared_edge_of_three_outputs, absolute_devices_span_three_outputs), the hotplug planner (a third monitor, the removal of the middle one, both in one event, a swap, a failed start that does not stop the others, primary loss), the side keys over three outputs (the_side_keys_step_one_output_at_a_time_across_three) and the typed target (output_targets_use_roles_or_connector_names_on_the_wire, output_command_is_typed_and_strict); in-process clients over three synthetic outputs (three_outputs_tile_their_own_windows_and_keep_them_through_a_relayout: tiling per output, send_to_output by name, outputName and the output order in the snapshot, the unplug of the middle output with the return of its window and the third output that moves left with its windows, a monitor that comes back between the two; super_shift_arrows_and_new_windows_reach_every_output_of_three); and the #[ignore] EGL test egl_each_of_three_outputs_draws_only_its_own_windows_in_local_coordinates (deleted 2026-11-11; mirror each_of_three_plain_outputs_draws_only_its_own_windows_in_local_coordinates), which renders three outputs of different sizes offscreen with the production scene before and after the unplug of the middle one. The core tests cover the output name in window_action, outputName in desktop_state and the typed request by name (send_to_output is a typed request confirmed by the window output, refused while locked). This is not proof on real hardware: no third monitor, no cable hotplug, no VT switch with several outputs and no new login were exercised.

Workspaces on extra outputs (phase 1, behind the workspaceOutputs lease)

Workspaces on several outputs phase 1 is in the compositor. The rules above stay the contract while the lease is off. The core renews the lease with workspace_outputs_enabled {enabled: true} on the control connection, as the canvas lease. The renewal is accepted while locked; enabled: false is refused while locked with Session is locked. Off, or the end of the grace time after the last holder closes, clears every assignment: each extra output shows its shared grid again.

  • State. Desktop.shown maps an extra output to the workspace that it shows. A missing entry is the shared grid of that output. A workspace shows on one output at most (W1): the primary output shows Desktop.workspace. Desktop.focus_output is the output that has the keyboard focus; it counts only while the lease is live.
  • Commands. workspace_output {workspace, output|null, primary?} follows the move table W3. A move from the primary output needs primary, a free workspace for the primary output. The refusals are locked, disabled, unknown_workspace, no_output, invalid_primary and no_other_workspace. workspace {workspace, animate?, primary?} under a live lease moves only the focus to a workspace that an output shows, and otherwise shows the workspace on the focus output (primary: true puts it on the primary output). A workspace outside the order goes to the primary output only. A transition runs only when the primary output changes. A repeated move returns ok, also with a stale primary hint. The output key is required; null takes the workspace off. A workspace that leaves workspace_order shows on no output.
  • Windows. A workspace window (home primary) shows on the output that shows its workspace, at the same cells: every output has a 6 x 4 grid. A workspace on an extra output keeps the chat cells of the primary output reserved, so its grid comes back unchanged. The windows of a shared grid (shared: true in the snapshot) hide while their output shows a workspace, and keep their cells. A new window joins the workspace of the output under the pointer. bind moves a shared window only to a workspace that an extra output shows. Super+Shift+Left/Right joins the workspace that the target output shows, or its shared grid.
  • Focus output. While the lease is live, a press on an output, a focused window and the side keys set the focus output. Super+T, the grid keys, Alt+Tab and the steps act on the focused workspace. A three-finger swipe with the focus on an extra output queues next or previous with no slide; on the primary output the swipe neighbors skip the workspaces that extra outputs show. During the grace time the map stays, but the input and focus rules are the ones of before.
  • Canvas (W9). Until phase 3, a Canvas workspace (its layout or its base is Canvas, so also the focus layout over a Canvas base) shows on the primary output only. workspace_output checks the primary hint and the other refusals first, so a bad call is refused as for any workspace; a valid move to an extra output then does nothing and returns ok. A selection puts it on the primary output. Super+Shift+T on an extra output, and Super+T that would bring back a Canvas base there, are refused.
  • Carry. Once a workspace changes output, the windows that no layout places (floating windows, and the windows that Monocle and Pair leave out) keep their offset from the origin of the old output and are clamped whole into the new one.
  • Unplug (W12). The workspace of an unplugged output shows on no output, its windows keep their cells, and the focus goes to the primary output.
  • Snapshot. capabilities.workspaceOutputs, outputs[].workspace, focusedWorkspace and windows[].shared. Output chats (outputChats) are phase 2.

Validation: in-process tests in native/smithay/src/workspace_outputs_tests.rs over two and three synthetic outputs (the lease off regression, the move table and each refusal, the selection rule, W9, the focus output, Alt+Tab and Super+T, maximize, bind, the hidden shared windows, the reserved chat cells, the swipe, the unplug, the order, the grace time and the lock). No real monitor, no core lease and no EGL render of a workspace on an extra output were exercised.

History: two monitors (2026-10-31)

The first version drove at most two outputs: the primary output and one secondary output, the next connected connector with a free CRTC. A third monitor was ignored, send_to_output accepted only "primary" or "secondary", and the hotplug planner handled one secondary connector at a time. Its validation: unit tests for the layout, the pointer clamp, absolute devices over both outputs (absolute_devices_span_every_output), the stale flip of a reused CRTC (a_stale_flip_of_a_removed_head_is_not_taken_by_the_new_head_on_its_crtc), the idle secondary output (an_idle_secondary_output_does_not_flip), the preferred-mode and CRTC choice, the hotplug planner (connect, disconnect, repeat, swap, primary loss), the window return and the typed command, the wallpaper cover rule (the_wallpaper_covers_an_output_of_any_size); the side of the shortcut (the_side_keys_follow_the_geometry_not_the_role, super_shift_arrows_choose_an_output_side_and_leave_super_arrows_alone, super_shift_arrow_never_taps_super); in-process clients with synthetic keys for the shortcut (super_shift_arrows_move_the_focused_window_to_the_output_on_that_side, super_shift_arrows_move_nothing_while_locked) and for the pointer rule (a_new_window_opens_on_the_output_under_the_pointer, a_window_that_opens_while_locked_stays_on_the_primary_output); #[ignore] EGL tests that render two outputs of different sizes offscreen with the production placement rule, and egl_the_wallpaper_covers_the_second_output_behind_its_windows (deleted 2026-11-11; mirror the_plain_wallpaper_covers_the_second_output_behind_its_windows_only_once_the_host_declared_it) (the copy reaches the corners behind the window, an untrusted title is not copied, the lock hides it, no scene after the unplug). These tests still pass with the current contract. That work was not proof on real hardware either: no second monitor, no cable hotplug, no VT switch with two outputs and no new login were exercised.

Pointer move and resize of windows (2026-10-31)

The user moves and resizes application windows with the mouse. The code is in native/smithay/src/grabs.rs.

  • Start. A client xdg_toplevel.move or xdg_toplevel.resize starts a pointer grab only during the press that this client received, on a surface of this window (the serial of the implicit click grab). A GTK or Chromium header bar drag moves the window; a drag on a client edge resizes it from the edges of the request. Super with a left-button drag moves the application window under the pointer, and Super with a right-button drag resizes it from the nearest corner or side (the window is split in thirds; the center resizes from the bottom-right corner). A dialog moves its window. Super+click was not bound before. During a Super grab the press and the release do not reach the client. Any pointer button pressed while Super is held makes a chord: the Super release then does not focus the chat.
  • Floating window. Outside a grid, the first move or resize that changes the geometry makes only that window floating; a press without a motion leaves it in the layout. A window with cells moves and resizes on its grid instead, and floats only with Shift at the drop (see Cell grid tiling). A floating window keeps the geometry that the user gave it, in every layout (focus, tile, monocle, pair) and on extra outputs. The layout of the other windows ignores it: in the focus layout it is never the application slot (another application or the chat takes it) and focusing it does not change the presentation; tile, monocle and the extra outputs retile as if it were not there. It shows at full size in every presentation except the workspace overview, and in workspace planes and previews. It stacks above the windows of the layout and below every shell window (the chat in every presentation, the bars, the web panels), so it never covers the protected chat or composer, also after a click. It draws and takes the pointer only inside the size the compositor configured: a larger buffer is clipped. The compositor keeps the state in the window meta (WindowMeta::floating). It is not persisted across logins.
  • Return to the layout. Maximize and restore (from the client, the protected host or window_action), the layout command (the arrange_windows tool; windows in exclude stay floating) and a pair that names the window put it back in the layout. restore on an extra output returns it to the grid of that output. send_to_output returns it to the layout of the target output. A window that gets an xdg parent becomes a dialog and stops being floating.
  • Limits. The location stays clamped at every grab step, layout pass and commit, so at least 64x32 pixels of the top strip of the window stay on its area: the content area of the primary output (below the top bar strip, above the bottom bar) or the whole extra output of the window. A resize stays on the output of the window. A move follows the pointer across the edge of an output, and the drop on another output sends the window there (see Several monitors, drag to another monitor). A resize respects the client minimum and maximum size, and gives no side below 64 pixels when the client allows it. The top edge stops at the top of the area. A window resized from its left or top side keeps the opposite side in place, also when the client answers with another size. The client gets the resizing state during a resize.
  • Refusals. Shell surfaces (the chat, both bars, web panels including the lock panel, the wallpaper), dialogs, fullscreen windows and windows that show as a scaled preview never move. Nothing starts while the session is locked, during the workspace overview or a workspace transition or thumbnail animation. A grab ends at once when the session locks, a transition starts, the overview opens or the window goes away.
  • Cursor. The cursor shows grabbing during a move and the matching *-resize shape during a resize, from the system Xcursor theme; the client cursor returns when the grab ends.
  • State. Each window in the state snapshot reports floating. The core desktop_state tool keeps the boolean and its description explains it.

Validation: unit tests for the clamp, the resize edges and limits, the nearest corner, the cursor shapes and the anchor of a floating window; in-process clients with synthetic pointer and keys for a client move request (and a request without its press), a client resize with a minimum size and the left/top anchor, Super drags for move and resize without a Super tap, the retile of the other windows, the focus layout, the return through layout, maximize and restore, shell windows, the overview and the lock during a drag, a window on an extra output, and the stacking below the chat and the top bar with a clipped oversized buffer. This is not proof with real clients (GTK, Chromium, Electron) or real hardware, and no new login was exercised.

Layout that leaves held windows out (2026-10-31)

The private same-UID RPC layout command takes an optional exclude list: {"action":"layout","layout":"tile"|"monocle","exclude":[N, ...]}. The list holds window IDs (unsigned 32-bit integers). The command refuses more than 128 IDs (the manual control limit of the core) and the ID 0; serde refuses any other value that is not such an integer. Repeated IDs and IDs of windows that are not live do not fail the command. Without exclude the command keeps its old shape and behavior.

The workspace stores the list next to its layout, and apply_layout leaves those windows out of the tile or monocle placement. An excluded window keeps its geometry, its workspace and its stacking: the compositor does not move, resize, raise or rebind it. The other windows are arranged as if it did not exist, so they can overlap it. The next layout or pair command replaces the list. The workspace overview restores it with the rest of the workspace layout. Leaving the focus layout still clears the maximized state of every application of the workspace, excluded ones included; that changes the XDG state, not the window geometry.

The snapshot announces the capability as layoutExclude: true. The core checks the type of the flag. Its arrange_windows tool sends the IDs of held windows of the active workspace as exclude only when the flag is true; with an older compositor it refuses as before (see docs/architecture-decisions.md, manual control handoff).

Validation: layout_exclude_is_an_optional_list_of_window_ids (typed parsing) and the in-process protocol test a_layout_leaves_its_excluded_windows_where_they_are (three synthetic clients, tile then monocle with an exclusion, the refused lists and the replacement of the list). This is not proof in the session in use: no real application, no new login and no live compositor were exercised.

Cell grid tiling (2026-10-31)

Phases 1 to 5 of the tiling specification are implemented. The pure rules are in native/smithay/src/grid.rs; the compositor side is in native/smithay/src/desktop/tiling.rs, and the pointer drag in native/smithay/src/grabs.rs.

  • Layout. grid replaces Tile and is the default layout of a new workspace. The layout command and the RPC state still accept tile as its old name. The grid has 6 columns and 4 rows over the content area of the output, with 8 px gaps between windows and at the edges. Each workspace keeps its own placements on the primary output. Each extra output has one grid, shared by all workspaces.
  • The chat. The chat is a tile. A new workspace gives it the whole grid. It never covers less than 2x2 cells. The chat is one window shown on every workspace, so each workspace stores its own chat cells.
  • New windows. Since 2026-11-04 (decision in architecture-decisions.md) a window that opens or returns to the grid fills the grid again: grid_placement calls Grid::fill with the windows in order and the new one last, and the last row of even shares its width. Grid::place_new, below, still places the chat on an extra output, a window that grid_restore displaced and a window it did not name. A new window takes the largest free rectangle. A tie goes to the rectangle nearest the focused window, then to the top left one. With no free cell, the new window splits the focused window along its longer pixel side. The focused window is the window with the keyboard, else the topmost tiled window. If the focused window covers one cell, or the split would make the chat smaller than 2x2 cells, the new window floats. A window with a fixed size (min size equal to max size) opens floating at that size, centered on the grid; other floating new windows take half the grid. Dialogs never take a cell.
  • Minimum size of the client. client_mins turns the min_size of each client into cells (grid::min_cells) on the area without the chat margin and passes them in Roles::mins, so Roles::min holds them in every rule. Grid::fill uses arrange_sized (arrange, a search over cuts, at most 12 windows) with no held window and fill_sized around held ones. Grid::too_small makes a client whose minimum grew fill the grid. A fixed-size window and the chat are not in the list. See the tiling spec.
  • Removal. A window that closes, is minimized, floats or goes to another workspace or output fills its grid again (grid_placement: an id of the grid that is no longer a member, other than the chat). A close keeps a zoom. Super+Shift+Left/Right and the removal of an output are a window that comes to the target grid.
  • Keys. The keys work only in the grid layout, and none of them is a Super tap. Super+Alt+arrows focus the window on that side whose center is nearest; free cells are never targets. Super+Ctrl+arrows move the focused window by one cell. The window swaps with the one other window in the target cells only if that window is not held and fits in the size of the moved window; the moved window goes to the far side and the other window takes the near side. Super+Ctrl+Alt+Right/Down grow by one cell; each neighbor in the new strip gives up its first column or row if it keeps its minimum (one cell, 2x2 for the chat) and is not held. Super+Ctrl+Alt+ Left/Up shrink by one cell from the right or bottom, down to the minimum. Super+Shift+Space toggles floating; a window that returns to the grid is placed as new. Super+F gives the focused window the whole grid and hides the other tiled windows of that grid; Super+F again, a focus key or any grid change ends it. Super+G fills the grid again with an even arrangement in the order top left to bottom right. Super+T switches the workspace between grid and Focus; it does nothing during the overview, a workspace transition or the lock.
  • Maximize and restore. In the grid layout, maximize and restore keep the layout and the presentation. This applies to the client request, the protected host, window_action and the login replay. maximize is the Super+F zoom of that window. A minimized or floating window first takes cells as a new window, then covers the whole grid. While a window is zoomed on the grid of the active workspace, it has the xdg maximized state and the snapshot reports maximized: true, also after Super+F. The core then confirms the maximize. A maximize of the chat or of a dialog is refused. A maximize that finds no cell (No free cell for the window) changes nothing: a dry run of the next layout pass on a copy of the grid decides first, and a fixed-size window (minimum equal to maximum) is always refused. The window keeps its minimized and floating state, its geometry and the keyboard, and the overview stays open. restore clears minimized and floating, ends the zoom of the grid and gives the window the keyboard. A window without cells takes them as a new window. restore accepts the chat in the grid layout only: the chat takes cells again, at least 2x2, and never floats. A restore from the workspace overview returns to the grid that the overview replaced. In the other layouts, maximize and restore still switch the workspace to Focus (Immersive or Sidebar). An extra output keeps its own rule.
  • Held windows. A window that the core excludes from the layout (userHeld) keeps its cells: a fill, a move, a swap or a grow never takes them. The layout command with grid or tile is an even fill that keeps the cells of the excluded windows. The user can still drag a held window to other cells; a drop never moves another held window. A held window without cells (back from floating or minimized, or on a new grid) is placed as a new window, and no new window splits a held window: with no free cell and a held focused window, the new window floats. A fill keeps the held cells and shares the free cells evenly (Grid::even_free): the free cells are cut into rectangles (the largest free rectangle, then the largest of the rest), each rectangle takes one window, largest first, each further window goes to the rectangle with the most cells per window, and even arranges each rectangle. The chat takes the first of these slots with 2x2 cells, else the first free 2x2 rectangle. When the held windows leave no free 2x2 rectangle, the held cells win over the chat minimum: the chat keeps its earlier cells, else it takes the largest free rectangle; with no free cell it has no cells and keeps its geometry.
  • Clipping. A tiled window that draws a buffer larger than its cells is clipped to its cells. The specification asks for a centered window; the window stays at the top left of its cells.
  • State. The state snapshot adds grid: {columns, rows}, workspaceLayouts (the layout of each workspace, at most 100) and capabilities.grid: true. While the workspace overview is open, workspaceLayouts reports for the active workspace the layout that the overview replaced, because the core saves the list for the next login; layout and requestedLayout still report the live focus. Each window reports cells ({col, row, width, height}, or null outside the grid) and zoomed. The core checks these fields strictly (web-shell/core/grid.js), and desktop_state passes them to the agent. arrange_windows accepts grid and tile and sends tile, which every compositor accepts. Opening an application from the core in the grid layout only focuses the new window: it does not arrange the other windows.
  • Mouse (decision D5). A client title bar drag (xdg_toplevel.move) or a Super+left drag of a window with cells moves it on the grid. The window follows the pointer and keeps its cells until the drop. While the button is down, the layout passes (the 30 ms timer of the control socket, commits, core commands) leave the location of that tile alone (window_follows_pointer), so it does not jump back to its cells between two pointer motions; the drop or the end of the grab returns it through the layout. User decision of 2026-11-01: the target is the largest rectangle of free cells that contains the cell under the pointer (Grid::drop_target), counting the cells the window leaves as free, so a window shrunk to one column takes all the free cells it is dragged over, not cells of its own size. Other windows, held ones included, are never inside it. A tie goes to the shape closest to the cells of the window, then to the rectangle nearest the pointer, then to the top left one. The rectangle keeps the minimum of the window (the chat 2x2). The same holds while the pointer stays over its own cells; only a press with no motion at all keeps the cells. Over exactly one other window, or when no free rectangle with the minimum contains the pointer cell, the target is the cells of the window shifted by the pointer delta rounded to whole cells, inside the grid, with the move rule: one other window in the target cells, not held, that fits in the cells the moved window leaves, swaps with it and takes the place in those cells nearest its own; anything else is refused and the window returns to its cells. The outline and the drop use the same function (grid_attempt), so they always agree. A client edge drag (xdg_toplevel.resize) or a Super+right drag (from the nearest corner or side) moves the dragged edges by whole cells. The window keeps its size until the drop. Each side that moves out takes free cells or the columns or rows of each neighbor in the way, with the grow rule (each neighbor keeps one cell, the chat 2x2, none held); the columns change first, then the rows. Each side that moves in frees its cells. The chat never goes below 2x2 cells. One refused side refuses the whole drop. Shift held at the drop makes the window float at the drop position (a move) or at the dragged rectangle (a resize), with the floating code below. Floating windows and the Focus layout keep the free drag of Pointer move and resize. The refusals (shell windows, dialogs, the lock, the overview, transitions) and the Super tap rule are the same.
  • Cell outline. During a drag of a tile the compositor draws the target cells as a translucent fill with a 2 px border: sage (the rim color of the window finish) when the drop lands there, muted red when the drop is refused. The window finish shader draws on window pixels only, so it cannot mark free cells; the outline is five SolidColorRenderElements with stable IDs (grabs::Outline), drawn above every window and below the cursor, on the output of the grid. It is not a window, takes no input and goes away at the drop, the lock, the overview and a transition.
  • Agent commands (phase 4). place {window_id, cells, only_free} puts an application window on a cell rectangle of its grid, also on an inactive workspace (the restore binds windows first). Free cells: the window takes them. Cells of exactly one other window, not held, that fits in the rectangle the moved window leaves: the two swap, and the other window keeps its size at the place of that rectangle nearest to it (Grid::swap_for, the same rule as a pointer drop with move_to). only_free: true refuses the swap. The rectangle must be inside the grid and keep the minimum of the window. A floating window returns to the grid on the cells; since the grid fills itself it finds none free, so without only_free the windows in the way take a place as new (Grid::restore), and with only_free it is refused. toggle_floating {window_id} is Super+Shift+Space for one window of the active workspace. fill_grid {window_id} is Super+G for the grid of that window. All three refuse while the session is locked, and share one gate (grid_window): no shell window (crate::layers::declared covers the chat, both bars, the web panels, the wallpaper, the lock and the recovery window of the trusted host), no dialog and no dialog of a shell window. toggle_floating also refuses a hidden window, place a minimized one, and place and fill_grid a window outside the grid layout. An inactive grid forgets closed windows before a place. Each command can carry held, the whole held set of the core (at most 128 IDs). When present it replaces Desktop::held, and every grid, the extra outputs included, keeps the cells of those windows; a workspace grid adds the layout exclude list of that workspace, an extra output grid uses the held set only. The grid keys and drags respect it too. layout can carry held too, and set_held {held} sends it alone. The core sends set_held after each take or release of manual control, on each connection and when the held windows change (a new dialog of a held window, a closed one), only when the snapshot reports capabilities.heldSet: true, so the compositor that runs until the next login gets nothing new. set_held moves no window, so it needs no layout pass and the lock accepts it. See the grid actions of window_action.
  • Persistence (phase 5). The core keeps the cells and the app id of each tiled window in window-session.json and restores them at the next login with grid_restore {placements, held} (capabilities.gridRestore, since 2026-11-04), or place with only_free: true on an older compositor; see restoring applications. Since 2026-11-01 the core shows each saved workspace before it opens the windows of that workspace, so no window splits the chat of another workspace. It also restores the layout of each workspace from workspaceLayouts. This is a core change; the compositor did not change.

Validation: unit tests in grid.rs for the placement, tie, split, one-cell float, removal, fill, focus by side, move, swap, refused move, grow, refused grow and shrink rules, and for the shortcut table in input.rs; in-process Wayland clients with synthetic keys in grid_tests.rs for every key, the focus layout, held windows, a fixed-size window, a dialog, an extra output and a move between outputs; Node tests for the strict state, the tile alias and the opening of an application on the grid. Phase 3: unit tests for the drop move, swap and refusals (move_to), the drop resize with neighbors, corners, the chat minimum and refusals (resize_to), the target cells of a drag and the outline elements; in-process clients with synthetic pointer drags in window_grab_tests.rs for a title bar move to free cells with the outline, a Super swap, a refused drop with its outline, an edge resize by one cell, the chat minimum, a Super+right shrink, Shift drops of a move and a resize, the focus layout, a floating window on the grid, an extra output and no Super tap after a drag. Dialogs of a dragged window: the same file checks that a dialog follows a tile and a floating window on every motion, ends centered at the drop (a swap, the next output), is drawn by the second output during a cross-output drag, and ends consistent after an unplug and after the overview ends the grab, a large dialog of a tile that still overlaps its cells, and a press without a motion in the focus layout. The ignored EGL test egl_the_dialog_of_a_dragged_in_window_draws_above_it (deleted 2026-11-11; mirror the_dialog_of_a_plain_dragged_in_window_draws_above_it_and_below_the_chat) draws the dialog of a guest window in an offscreen frame. The outline was not rendered on a GPU in a test. Phases 4 and 5: unit tests in grid.rs for Grid::place (free cells, swap, refused swap, only_free, the chat minimum); grid_tests.rs for the wire shape, the move, swap and refusals of place, toggle_floating, fill_grid, a place on an inactive workspace, held windows and the lock; Node tests for the tool, its refusals, the prompt and the restore record. This is not proof in the session in use: no real application, no real monitor and no new login were exercised. Held set: unit tests in grid.rs for the even fill around held cells and the chat minimum against held cells; grid_tests.rs for the wire shape and bounds of set_held, the lock, the release before a fill, a held window back from floating, a new window beside a held focused window and the extra output grid; Node tests in smithay.test.js for the sends on connect, take, release, a new dialog, an arrangement and a new connection, and for a compositor without heldSet. No real session was exercised.

Workspaces on several outputs, phase 2 (2026-11-02)

The compositor side of phase 2 of workspaces on several outputs gives each extra output that shows a workspace its own chat window (W8). The snapshot reports capabilities.outputChats: true.

  • window_declare for the role chat takes an optional output, the connector name of a connected extra output. The primary chat declares no output. Only the host connection declares. Refusals: a second chat for the same output, or a second primary chat, "Only one window for this role"; an output that is not a connected extra output (also the primary output by its name) "Unknown output"; a bad name "Invalid window declaration"; output on another role "Property not allowed for this role"; an update that changes the output "A declaration keeps its role". A window of another client with the token title stays an application.

  • The output of a chat comes from its bound declaration (desktop/output_chats.rs), so chat_of(slot) is a function and no map can go stale. The spec named a Desktop.chat_of map; the function gives the same answer.

  • An output chat is a shell window on its output while that output shows a workspace, and on no output otherwise (also after its unplug). It is a tile of the workspace of its output: the reserved chat cells hold it, and the cells move to the primary chat when that workspace goes to the primary output, and back. Focus (the Chat, Immersive and Sidebar presentations), Monocle, Pair and Floating place it as the primary chat. Canvas on an extra output stays phase 3.

  • chat_dock {state, output?}, chat_glass {glass, output?}, chat_glass_regions {regions, output?} and focus_chat {output?} act on the chat of the named output, and on the primary chat without output or with the name of the primary output. chat_dock with an extra output refuses "The overview is open", "Output shows no workspace" and "Workspace is not in Canvas". focus_chat with output refuses "Chat surface unavailable" when that output shows its shared grid. focus_chat makes the output of the chat the focus output.

  • The Super tap still queues the input request chat_focus with only generation and kind; the core finds the focus output from focusedWorkspace and outputs[].workspace and sends focus_chat {output}. Since the Super mode of 2026-11-04 the compositor has already fitted the view and set its chat to the box before the request (see "Super mode (2026-11-04)").

  • A press on an output chat gives it the keyboard and makes its output the focus output.

  • The glass of each output chat is its own. The snapshot reports it in outputChatGlass: [{output, chatGlass, chatGlassRegions, chatGlassDrawn, chatAlphaGlass}], and it goes with the chat window and with the unplug. Under the alpha mask chatAlphaGlass says whether the last frame of that output drew the mask, and the mask makes the entry when the host reported nothing (openspec/specs/glass-alpha-mask/spec.md, phase 3).

  • Each chat window keeps its own paint marker. The web plane of the primary output reads the primary chat only.

  • capture {output?} captures a named output. It accepts the name of the primary output, which is the capture of before. Refusals: "A window capture names no output", "Original resolution is for the primary output", "Unknown output". The unplug of that output ends a pending capture with "The output went away". The capture snapshot reports output.

  • Snapshot: each chat window reports its outputName (the declared output for an output chat, also while it shows nowhere) and output: "secondary". Each output reports chat, the id of its bound chat window or null; the host repairs an output chat that did not bind from it.

  • The nested backend takes --outputs 2 and splits its window into the outputs NESTED-1 and NESTED-2 (nested QA).

  • An extra output draws its windows in the order of the bands, as the primary output does, so the output chat stays above its applications. A dialog of the application that shows as the preview beside an output chat hides, as on the primary output.

Limits: a DRM head that stops rendering without an unplug can leave a capture of that output pending; a later capture request gets "Capture already pending" until the head renders again or goes away. Tests: output_chats_tests.rs (in-process, with the negative tests of the declaration) and one ignored EGL test that draws a workspace of an extra output in local coordinates.

Shared workspace cameras, phase 1 (2026-11-03)

One workspace list, one camera per monitor phase 1 is in the compositor only; the details and the deviations are in its section "As built (phase 1)". No core renews the lease yet, so the current behavior of the session is unchanged.

  • shared_workspaces_enabled {enabled} (control connection only) is a lease with the 60 s grace of the canvas and workspace_outputs leases. While it is live, a Canvas workspace can show on several outputs at once through workspace_output; each (workspace, connector) view has its own camera, fit target and chat state (Desktop.views, native/smithay/src/desktop/views.rs). A new view takes the center point and zoom of the lowest-order open view, clamped, with its chat hidden; a stored view of the same connector comes back while the lease lives.
  • workspace_output {workspace, output: null, from} takes the workspace off the named output only. Without from, a null takes it off every extra output.
  • The end of any of the three leases keeps only the lowest-order view of each workspace, and the focus output moves to it.
  • A workspace with several views refuses every layout other than Canvas, every presentation other than the overview, and Pair, with workspace_shared; Super+T and Super+Shift+T do nothing there. send_to_output to an output that draws the window gives same_workspace; Super+Shift+Left/Right to such an output centers the window in that camera and moves the focus output.
  • Each output draws the shared windows through its own camera. Frame callbacks come from the output that draws the largest area of the window (ties to the focus output), and the window enters every output that draws it. A press hits through the camera of the pointer output and moves the focus output there. Flights, Alt+Tab, fits and the agent canvas actions move the focus view only.
  • chat_dock {output} and focus_chat {output} act on the view of that output.
  • Snapshot: capabilities.sharedCanvas, sharedWorkspaces: {enabled, live}, canvasWorkspaces[].views: [{output, camera, chatDock}] only for a workspace on several outputs (the top-level camera and chatDock are the primary view when the primary output shows the workspace, else the lowest-order view), and windows[].views: [{outputName, presentation}] for a window drawn on several outputs. floatingChat reads the primary view. A workspace on one output keeps the exact keys camera, chatDock and workspace, which a core of before phase 1 requires.
  • A view that closes lands a running camera animation first, so the other view never jumps; a new canvas window is placed and panned to in the focus view; a view can collapse while locked (lease expiry or unplug), but none opens.

Tests: native/smithay/src/shared_cameras_tests.rs (in-process, two and three synthetic outputs). No nested QA, no real monitor and no core were exercised.

Phase 2 (2026-11-03) added two compositor keys for the core, both optional, so an older core is not refused by deny_unknown_fields:

  • workspace {workspace, focus_only: true}: never opens a second view. A workspace that shows on an output only takes the focus there (the W3 branch); one that shows on no output shows on the focus output, as before. The core sends it on its resends (the reconnect, the unlock, the login restore and a rollback), only to a compositor with capabilities.sharedCanvas. Test: a_focus_only_selection_never_opens_a_second_view.
  • focusOutput in the snapshot: the connector of the focus output (slot_connector(focus_slot())), or null. With a workspace on several outputs, focusedWorkspace alone does not name the output with the keyboard. It is set after the json! literal, which is at the macro recursion limit.

The core and host part of phase 2 is in web-shell-development.md, section "Shared workspace cameras, phase 2 of the core and the host".

Shared workspace cameras, phase 3: the Grid coordinate model (2026-11-03)

Phase 3 of shared workspace cameras is the next steps of grid on the canvas model, with no visible change. crate::grid::Grid (on Workspace.grid) stores the formation rectangle in canvas units and its grid area, written by sync_formations at the start of each layout pass (S4 on the primary output: the content area). Compositor::workspace_camera gives the camera of every workspace (free on Canvas, else crate::canvas::locked_camera, the identity while the formation is its area), and screen_placement draws Grid windows through it. None of it needs the canvas lease. The ignored test measure_the_grid_scene (grid_tests.rs) measures the Grid scene; the numbers are in openspec/specs/grid-on-canvas/spec.md.

Client GPU buffers (2026-11-04)

The compositor announces zwp_linux_dmabuf_v1; native/smithay/src/dmabuf.rs holds the global, the import queue and the commit blockers. --no-dmabuf keeps it off, and at login the file ~/.config/agent-native-os/no-dmabuf adds that flag. state --full reports capabilities.dmabuf and clientBufferCommits. A software renderer stays on wl_shm. The design, the numbers and what still needs the live session are in glass from the alpha channel. A compositor update needs a new login, so this does not reach the session in use by a host or core restart.

Protocol manifest (2026-11-10)

protocol/control.json is the checked-in manifest of the control protocol between the core and the compositor (audit finding F3, openspec/changes/audit-2026-11-10/design.md). It holds version, commands (every variant of enum Command in native/smithay/src/desktop.rs by its wire name, sorted, each with core: true when web-shell/core or web-shell/desktop.cjs sends it to the compositor and core: false when only scripts and QA do) and capabilities (every key of the capabilities object of desktop/snapshot.rs, sorted, including testInput and dmabuf).

The rule: a new command or capability gets its entry in the same change as its code. Three tests enforce it. native/smithay/src/protocol_manifest_tests.rs reads the variants from the error that serde gives for an unknown action (so no list is kept by hand) and the capability keys from a real snapshot, and requires that both match the manifest exactly. web-shell/test/protocol-manifest.test.js requires that every action: "x" literal of the core files that talk to the compositor and every capability that the host or the core reads (capabilities.x, capabilities?.x, capabilities["x"]) is in the manifest, and that every core: true command is still sent by the core; the names that the core builds at run time (the window actions of the WM lines, the grid actions and the theme operations of smithay.js) are listed in that test with the place that builds them. scripts/test/test_protocol_manifest.py requires the same of the commands that scripts/*.py send. A command that only a script sends gets core: false.

scripts/check-host-skew.py reads the manifest of the checkout it is asked to check. Where the checkout has one, "the core sends command X" (shared_workspaces_enabled, visual_style, chat_hold) comes from commands[X].core; a checkout without it keeps the text markers of smithay.js. It also warns, once each and with the names sorted, about the capabilities that the manifest lists and the live compositor does not report (a compositor older than the core) and about those that the compositor reports and the manifest does not list (a newer compositor). The output says protocolManifest: true or false.

Leases of the control connection (2026-11-10)

Several commands of the core hold state only while the control connection that sent them lives (audit finding F4, openspec/changes/audit-2026-11-10/design.md). There are two shapes on the compositor side, and one place that ends them: Compositor::control_connection_closed in native/smithay/src/ipc.rs runs every release for a closed or evicted connection. A new connection-scoped command adds its release there.

  • A lease is a crate::canvas::Lease: on while at least one open connection that sent it holds it. When its last holder closes, a grace time of crate::canvas::GRACE (60 s) starts; a renewal within it keeps the state, and at its end the control tick (control_tick, every 30 ms) turns the state off. A short second connection (a script) that sends it does not start the grace while the core stays connected.
  • A connection hold ends at once when its connection closes, with no grace.
Command Shape Capability The core sends it Allowed while locked When it ends
canvas_enabled lease canvas once after each connect, with a 2 s retry on the same connection (renewCanvas) on only every Canvas workspace becomes Grid
workspace_outputs_enabled lease workspaceOutputs and outputChats after each connect and after the login restore, 2 s retry (renewWorkspaceOutputs) on only every assignment clears; the focus output becomes the primary
shared_workspaces_enabled lease sharedCanvas (grid: true with sharedGrid) right after a live workspace_outputs lease on the same connection, 2 s retry (renewSharedWorkspaces) on only each workspace keeps its lowest-order view
canvas_warp lease (mode other than off) canvasWarp once per connection while the setting is not off, and while the report differs (syncCanvasWarp) a mode other than off the warp turns off
visual_style lease visualStyle once per connection, and while the report differs; a refusal waits visualStyleRetryMs (syncVisualStyle) yes the sage defaults return
chat_alpha_glass lease (on only) alphaGlass once per connection while on, and while the report differs; a refusal waits visualStyleRetryMs (syncChatAlphaGlass) yes the chat glass regions draw again
chat_hold connection hold chatHold while the reported chatHeld differs from the wish (syncChatHold) no a press outside hides the floating chats again
agent_route connection hold agentRoute (roots with agentRouteRoots) when the route of the turn changes, without waiting for the one in flight (syncAgentRoute) no new windows open where the user works
lock_host connection hold none (an older compositor answers Invalid request) once after each connect when the supervisor names the host PID, with a retry (registerLockHost) yes the registration ends; only that connection could release a shell lock

On the core side the state-reconciled leases and the connect-time renewals run through the shared helper of web-shell/core/control-lease.js; the two connection holds keep their own code, because their wish and ordering rules differ.