Galaxy Shell / docs
Docs / Architecture and development

Nested QA

docs/nested-qa.md · Edit on GitHub ↗

On this page

Nested QA

Doc status: current contract. Living guide for scripts/nested-qa.py. Checked 2026-11-12.

An agent can run exploratory QA alone inside a nested Smithay compositor, with real input through the compositor input path, without touching the live session. Since 2026-11-06 the run has no window by default (see Headless). On 2026-11-01 the user asked for this ("voce conseguiria adaptar para sempre testarmos com uma sessao nested? simplificaria o qa eu acredito"). That request is the explicit request that AGENTS.md needs to start a nested session. It is a standing authorization for the launcher scripts/nested-qa.py and for nothing else.

Usage

python3 scripts/nested-qa.py start [--visible] [--no-dmabuf] [--gpu-api auto|vulkan|gl] [--root DIR] [--no-build] [--label NAME] [--state FILE] [--wallpaper FILE] [--overlay DIR] [--session-bus] [--outputs 1|2] [--setting canvas=on|off] [--setting overviewPlanes=on|off] [--setting canvasWarp=off|cylinder[:ANGLE]]
python3 scripts/nested-qa.py status
python3 scripts/nested-qa.py state [--full | --output NESTED-2]
python3 scripts/nested-qa.py move X Y [--output NESTED-2]
python3 scripts/nested-qa.py click [X Y] [--button left|right|middle] [--double] [--output NESTED-2]
python3 scripts/nested-qa.py drag X1 Y1 X2 Y2 [--button right --super] [--alt] [--output NESTED-2]
python3 scripts/nested-qa.py scroll DY [--dx DX] [--at X Y] [--wheel] [--output NESTED-2]
python3 scripts/nested-qa.py key Return Super_L+Shift_L+Right code:28
python3 scripts/nested-qa.py type "text"
python3 scripts/nested-qa.py capture /path/new-file.png [--output NESTED-2 | --output all]
python3 scripts/nested-qa.py launch -- /absolute/path/program ARG...
python3 scripts/nested-qa.py stop

start runs python3 scripts/prepare-project.py --root <root> first (it returns at once when the checkout is already built; a worktree uses the shared cargo cache, never --local). Then it starts the nested compositor, with no window unless --visible asks for one. The coordinates are logical pixels of the nested output; state prints the windows, the pointer and the output size. key takes chords: Super_L+q presses the keys in order and releases them in reverse. A keysym name picks the physical key that produces it at the first shift level, code:N is a Linux input event code, and type adds Shift where a character needs it. capture refuses to overwrite a file. Keep captures outside Git.

start --root <release> --no-build runs a read-only release of scripts/build-release.py (openspec/specs/immutable-base/spec.md). With no OpenCode in the run, this proves the compositor, the host and the UI of the release, not its agent runtime.

start --gpu-api auto|vulkan|gl passes --gpu-api to the nested compositor: the GPU API of the wgpu renderer (openspec/changes/archive/2026-11-10-gles-removal-plan/design.md, Step 5 result). A forced API that fails ends the run with an error; state --full reports gpuApi and, when auto fell from Vulkan, the reason in gpuApiFallback. The wgpu window of --visible presents through Vulkan only: there auto means vulkan, and start --visible --gpu-api gl is refused by the launcher before anything starts (the compositor refuses it too), so a run on OpenGL is headless. In a build without the wgpu renderer (the fallback build) the GLES window opens and the API does nothing.

start --no-dmabuf passes --no-dmabuf to the nested compositor. A compositor on a software device (a window on a parent without linux-dmabuf, or a headless run on a machine with no GPU) stays on wl_shm anyway, and its log says so.

The glass of the chat comes from the alpha of its buffer on every run, with no flag (openspec/specs/glass-alpha-mask/spec.md, phase 3). state --full reports capabilities.alphaGlass, alphaGlassEnabled and chatAlphaGlass, and chatAlphaGlass in the entries of outputChatGlass.

--state and --wallpaper seed the private profile with synthetic data before the core starts: a state.json object and a PNG wallpaper (for example a conversation with synthetic messages, since the run has no provider to answer). start reads both files first and refuses a bad one. The state needs a non-empty conversations list of objects with a unique positive integer id and a messages list, an active id from that list and a next id above all of them. The wallpaper needs 24 bytes to 32 MiB, the limits of the core. start refuses a file that resolves into the real data directory (${XDG_DATA_HOME:-~/.local/share}/agent-native-os, AGENT_NATIVE_DATA_DIR or the profile of ~/.config/agent-native-os/project.json), also through a symbolic link, and reads the resolved path. Use only synthetic data, never a copy of a real profile. The seed is written inside the start cleanup, so a failed write stops the run like a failed launch.

Headless

On 2026-11-06 the user asked for a QA run that does not take the focus of the application in use ("Headless e regra geral"). start now passes --headless to the compositor (the Headless backend of native/smithay/src/wgpu_output.rs, which replaced the GLES headless.rs at step 8): the same frame as the window, into an offscreen texture on the wgpu device, the first device that is not software when there is one, else the software one. A machine with two GPUs may need clients on the same device for linux-dmabuf, which is not tested. A run has no sign on the desktop, so status tells whether one is left, and a forgotten run keeps its full redraw going on the GPU until stop. No window opens in the desktop in use, so nothing there takes the keyboard or moves a camera, and the only query to the live compositor is the read-only lock check of start. No process of the run gets a parent display, so a run also starts with none. The scene, test_input, capture, launch and --outputs are the same code as the window (Headless::redraw of wgpu_output.rs). Each output is 1920x1080, and the frames run at 30 per second, which the output reports to its clients, so a run stays light on the GPU that the live session shares.

start --visible opens a window (--nested), to watch a run: the wgpu window since 2026-11-10 (see The wgpu window). The GLES window of before is gone from the options (step 6 of the GLES removal plan, 2026-11-11); every build has the renderer since step 10 (2026-11-11), so every build opens it (docs/smithay-development.md). That window is an application of the desktop in use: on a Canvas workspace it takes the keyboard and the camera when it opens, unless the user is typing (openspec/specs/canvas-windows/spec.md, A window that opens while the user types), and start then sends send_to_output (see Limits). --root with a release older than this needs --visible, because its compositor has no --headless.

Two outputs

start --outputs 2 passes --outputs 2 to the nested compositor (the default is --outputs 1, the run of before). The nested surface is one buffer or one window, so the compositor splits it into two logical outputs side by side: the left half is the primary output NESTED-1 and the right half is the extra output NESTED-2, mapped after the primary one, as a second DRM head would be. The extra output renders offscreen at its own origin, as on a DRM head, because the window corners and the glass read framebuffer pixels from the output origin; one render pass then draws the primary scene and that texture into the two halves. A resize of a visible window changes both outputs; a headless run has 1920x1080 on each. With one output the name stays smithay-experiment. start refuses a compositor that does not report the outputs NESTED-1 and NESTED-2 (an old binary).

move, click, drag and scroll --at take global logical coordinates over both outputs, as a device does: the second output starts at the width of the first. With --output NAME (since 2026-11-11) they take coordinates inside that output instead: the launcher reads the output origin from state, adds it, and refuses a point outside the output or an output that the run does not have, so click 100 20 --output NESTED-2 never lands on NESTED-1. click --output without X and Y clicks at the pointer, as before. The test input itself still takes global coordinates only; the translation is in the launcher.

state lists both outputs with their positions, role, workspace, chat, bar and canvasSize, focusedWorkspace, and each window with its outputName. state --output NESTED-2 prints that output entry, focusedWorkspace, the pointer (global), the lock state and only the windows whose outputName is that output: the secondary bar, its chat and the windows on its workspace. --full prints the whole state and does not take --output.

capture --output NESTED-2 captures the extra output; without --output the primary output. capture out.png --output all writes one PNG per output that the state reports, named after the destination: out-NESTED-1.png and out-NESTED-2.png (with one output, out-smithay-experiment.png). It refuses before it writes anything when one of these files exists. The two captures are two requests, so a frame can change between them.

What a two-output run can show without the user: the bottom bar of the extra output (outputs[].bar) and its color and glass in a capture, the focus indicator and the workspace badges per output, a workspace on NESTED-2 and the shared workspaces of openspec/specs/shared-workspace-cameras/spec.md, all through real input. What it cannot show is in Limits.

--setting canvas=on or canvas=off writes the protected setting canvas of the private profile before the core starts. Since 2026-11-03 the setting is on by default, so a run without it already has Canvas and a new workspace starts in Canvas; canvas=off gives the Grid rollback. start writes it into the state.json of the profile: the file of --state, or a synthetic one with one empty conversation. The core reads its protected settings from that file, so no route call is needed. Workspaces on several outputs need no setting since 2026-11-03 (openspec/specs/multi-output-workspaces/spec.md, Status), so a run with --outputs 2 --setting canvas=on can show a Canvas workspace on NESTED-2. canvas and overviewPlanes are accepted as on or off, each once (until 2026-11-03 workspaceOutputs was accepted too); overviewPlanes=off turns the live planes of the overview and of the tile assist off (since 2026-11-12). --setting canvasWarp=cylinder seeds the protected setting canvasWarp (openspec/specs/inverted-sphere-view/spec.md, phase 1) with the angle 60, and canvasWarp=cylinder:ANGLE with an angle from 20 to 90; canvasWarp=off is the default. The core refuses sphere until phase 4. Use it with --setting canvas=on.

A private session bus and clients

start --session-bus starts one private dbus-daemon for the run, with its socket runtime/bus and a config file of mode 0600 that has no service directory, so no service starts by bus activation. The host, the core and every client of the run get this address as DBUS_SESSION_BUS_ADDRESS; without the flag they get none. The core then runs its notification server and its system tray (system tray) on that bus. The session bus of the desktop in use is never given to the run. stop ends the daemon with the other processes.

launch -- COMMAND... starts one program inside the active run, as client-N, with its output in logs/client-N.log. The program gets the nested WAYLAND_DISPLAY, the private bus of the run (or no bus), the private home and XDG directories, and none of the authority of the desktop in use (the same environment rules as the host). Its working directory is the private home, so give the program and its file arguments as absolute paths. launch records a launch line in coordination.log with the run id, the PID and the program name. stop ends every client with the run. A client that reads its own data (a chat application, for example) starts with an empty profile in the private home; never copy a real profile into it.

drag --super holds Super for the gesture and releases it with the button, also when a movement request fails. With the right button this uses the existing compositor resize path. It operates only inside the active private QA run. drag --super --alt holds Super and Alt, the move of a Canvas window (openspec/specs/canvas-windows/spec.md, Tiles of a dropped window); both release after the button, in reverse order.

What start creates

  • A private directory $XDG_RUNTIME_DIR/ans-qa-<id> (mode 0700) with its own runtime (the XDG_RUNTIME_DIR of the run), home, config, data, cache, state and logs. The profile is data/profile. The files of the user in ~/.config/agent-native-os and the real data directory are never read or written.
  • The default protected panel declarations, written by start into the private web-panels.json from PanelRegistry.defaults() of the core. The installer writes this file on a real login, and without it the compositor maps the quick settings and notification panels unplaced and hidden.
  • The nested compositor (--headless, or --nested with --visible). With --visible it is the only process that gets the parent display, as an absolute path, to open its window. Its Wayland socket and control socket live in the private runtime directory.
  • The Electron host, which starts the synthetic core. Both get the environment rules of web-shell/scripts/test-environment.js (no AGENT_NATIVE_*, DISPLAY, WAYLAND_DISPLAY, accessibility bus, audio server or session bus of the desktop in use, and also no system bus: DBUS_SYSTEM_BUS_ADDRESS points to a missing socket; a unit test compares the Python and the Node rules, and another checks the system bus) and then only the nested socket: AGENT_NATIVE_SMITHAY_SOCKET and WAYLAND_DISPLAY of the nested compositor.
  • No AI provider. AGENT_NATIVE_OPENCODE_BIN points to a missing file, so the core runs without OpenCode and the chat cannot answer. The synthetic OpenCode of the Node tests (web-shell/test/fixtures/opencode-changes.cjs) needs a per-test config and is not part of the launcher. A QA run that needs replies uses the Node tests or the user.
  • run.json and run.lock in ${XDG_STATE_HOME:-~/.local/state}/agent-native-os/nested-qa/: the run id, the paths and the PID and start time of each process.

Every process of the run carries AGENT_NATIVE_QA_RUN=<id>.

Refusals

--label takes 1 to 64 letters, digits, dots, dashes and underscores, because the label goes into coordination.log; the launcher also replaces control characters in every logged value. start returns when /health of the core shows compositorConnected and the compositor lists the protected top bar window. It does not wait for ready in /health: that flag is the OpenCode runtime, which a run without a provider never reaches. start --visible refuses when no parent display exists. start refuses when a compositor of the desktop in use reports a locked session (a read-only state query on the live control sockets), when another run is active (run.json names a compositor that still has its recorded PID and start time), or when the build fails. A crashed run is cleaned first. A compositor that reports no testInput capability (an old binary) ends the start.

Stop

stop ends exactly what start made. It signals a process only if its PID still has the recorded start time, or if its environment carries the run id (the children of the host, such as the core and the renderers, keep it). It sends TERM, waits, then KILL. Then it removes the private directory, but only a directory that sits directly in $XDG_RUNTIME_DIR, is named ans-qa-*, is owned by the user, is not a symbolic link and holds the run marker file. After a stop, pgrep -af "core/server.js" shows the live core and no other.

A member that the kernel refuses to signal with EPERM (a daemon under an enforcing AppArmor profile, as /usr/bin/wsdd is on some machines, refuses signals even from root) does not stop the cleanup: the rest ends, the directory is removed, stop prints could not signal NAME (pid N) on stderr and the complete line carries unsignalable=PID:NAME. Such a process is left running, and a later start is not blocked by it (it holds no resource that a new run needs). The launcher changes no AppArmor profile. To avoid it, every process of the run gets GIO_USE_VFS=local and GIO_USE_VOLUME_MONITOR=unix, so GIO starts no gvfsd and no gvfs backend (wsdd, dnssd) in the run.

Coordination

The launcher records start, complete and stop in coordination.log, appended under flock, with metadata only (run id, label, commit of the checkout, PIDs, the private paths, the loopback URL). A failed start or stop still writes a complete line, with cleanup-failed in the result when a process did not end. It does not hold coordination.lock for the life of the run. A nested run shares no runtime state with the shared session: it has its own runtime directory, profile, sockets, core and host, and it never signals, restarts or replaces the live compositor, host or core. The lock exists to serialize changes of the shared runtime, and the run makes none. The build step takes the .project-build.lock of the checkout, like any build. A QA step that does need the shared runtime still needs the user and coordination.lock.

The test_input command

The compositor control socket (same-UID private socket, permissions unchanged) accepts:

{"version":1,"id":1,"command":{"action":"test_input","events":[
  {"type":"motion","x":272,"y":16},
  {"type":"button","button":"left","state":"press"},
  {"type":"button","button":"left","state":"release"},
  {"type":"scroll","dx":0,"dy":15},
  {"type":"key","key":"Return","state":"press"},
  {"type":"key","key":28,"state":"release"},
  {"type":"text","text":"hello"}]}}

A command carries 1 to 64 events and at most 256 typed characters. The compositor resolves every event first, so a bad event applies nothing. The events use the code of a real device:

  • motion calls pointer_motion, the function that a device motion calls (it clamps to the output layout).
  • Buttons, scroll and keys go through process_input_event with the real xkb state, as a libinput or window event does. Focus, grabs, the overview, the shortcuts and the lock act as they do for a user. While the session is locked, the command is accepted and the lock UI gets the input, as for a user at the keyboard.
  • text and keysym names use the active layout of the real keymap. A character that needs more than Shift is refused.

Only the nested backends (the headless buffer and the wgpu window) accept it. enable_test_input in nested.rs sets Compositor::test_input (the wgpu headless build calls it); the DRM backend never does and never makes that pipeline, nothing reads it from a request, and a unit test scans every non-test source file and checks that nested.rs is the only one that sets it. The --session backend answers Test input needs the nested backend. The state reports capabilities.testInput (true only for the nested backends) and the pointer position in pointer.

The core, its model tools, the protected host and generated pages never send this command. web-shell/test/test-input-isolation.test.js fails if a core, host or UI source names it.

Limits

  • One output by default. --outputs 2 gives two logical outputs of one window (see Two outputs): they have one size, one scale and one refresh, side by side at y 0, and no hotplug. Mixed sizes, a scale other than 1, a monitor above another, three outputs, the unplug and a real second monitor are covered by the in-process tests and by the user only. The extra output renders offscreen into one buffer with the primary one, so its timing and its GPU cost say nothing about a second DRM head.
  • No libinput gestures. The three-finger swipe and the touchpad tap and click methods are not simulated. The overview opens with Super+S (key Super_L+s), and a Super tap (key Super_L) gives the keyboard to the chat.
  • With --visible the nested window opens on the second monitor of the desktop in use (the user asked for this on 2026-11-01). A headless run has no window and records headless as placement. After the nested compositor answers, start finds its window in the live state by the PID of the compositor that it started, and sends send_to_output with secondary to the live control socket. This is the only command that the launcher sends to the live compositor, only with --visible, and it moves only that window. On the second monitor the window gets the whole monitor, so the nested output is about 1896x1032. Without a second monitor, or when the live compositor refuses, the window stays where it opened: then it gets one cell of the grid (296x456 in the first proof), and wide panels do not fit. run.json and the complete line of the log record the result as placement.
  • The nested renderer redraws the whole output on every frame and costs more than the DRM backend. It says nothing about physical performance. A headless run has no swap and no presentation, so a frame ends with glFinish, and it says nothing about the window either. The wgpu window adds one blit of the frame into the swapchain image, which no product path has.
  • No session D-Bus unless --session-bus gives the run its private one. Without it there are no notifications (the bell stays hidden) and no tray. With it, only the clients of the run are on the bus: there is no MPRIS of the desktop, no audio or battery data and no accessibility bus.
  • No system D-Bus, on purpose. The quick settings controls for Wi-Fi, Bluetooth, airplane mode, power profile, brightness, logout, suspend, reboot and power off would act on the real machine and on the login of the desktop in use, so in a run they show as unavailable and cannot reach it. A QA case for those controls needs the user.
  • The nested output has no DRM, VT, modeset or libseat behavior.
  • Key presses that the test leaves held stay held until a release event.

The nested proof is nested proof. A check that needs the live session, a second monitor, a touchpad gesture or the real provider still needs the user.

Frame timing

The launcher passes RUST_LOG from its own environment to the compositor. RUST_LOG=frame_timing=info python3 scripts/nested-qa.py start makes the compositor log a line with the average, 95th percentile and maximum of each render phase every two seconds, in logs/compositor.log of the run. Read the limits in the overview record first: the nested output is drawn by a software renderer. Since canvas phase 8 the line also has cache_renders, the textures of the downscale cache rendered in those two seconds, and RUST_LOG=sharp_zoom=info logs each change of the preferred scales.

Nested capture

(History, 2026-11: the Winit backend is deleted.) The Winit backend made the context current without the window surface when it read the frame back, and the next swap failed with BAD_SURFACE; the nested window then ended. The Winit redraw now makes the window surface current again after a capture. Capture works in the nested session.

Wallpaper checks

For the wallpaper effects (openspec/specs/hex-crystals-wallpaper/spec.md), with one output and no --wallpaper (a PNG blocks the effect): capture twice, 1 s apart, and compare a free wallpaper area; open Configurações, expand "Papel de parede", choose "Aurora" and then "Cristais" in "Efeito do papel de parede" and capture each; then pick another profile color and capture at once, a burst right after, and after 1 s. The wallpaper window keeps its id in state (no new window). The colors are software-rendered and say nothing about a real GPU.

Evidence

2026-11-11, addressing an output (nested proof, headless, --outputs 2, run 8035f41f, Vulkan): state --output NESTED-2 listed the extra output at x 1920 with bar 5 and chat 4 and only those two windows. move 960 1050 --output NESTED-2 put the pointer at (2880, 1050), move 1920 5 --output NESTED-2 was refused as outside, and click 900 930 --output NESTED-2 gave the focus to the chat of NESTED-2 and focusedWorkspace 2. capture out.png --output all wrote one PNG per output: NESTED-1 with its Office taskbar and the first-run card, NESTED-2 with its own bottom bar, the badge of workspace 2 active and an empty composer. Not proven: a second DRM head, mixed sizes or scales, the unplug. Captures, local: ~/.codex/artifacts/qa/galaxy-shell/2026-11-11-two-outputs/.

2026-11-10, the wgpu window (nested proof inside nested proof: the parent display was a headless run on wgpu, RX 550 with RADV, and the window was a client of it, started with launch -- <binary> --nested --renderer wgpu, an option that existed then; nothing opened in the desktop in use). The window opened at 952x568 with es2gears and the Calculator of GNOME as its clients (linux-dmabuf on, 16 formats), upright, in a capture of the parent and in a capture of the inner control socket. A parent pointer at (700, 400) and (900, 500) gave the inner pointer (216, 156) and (416, 256), the window origin apart. A parent click moved the inner focus to the Calculator, and type 12+30 with key Return showed 42 there, so keys with Shift arrive with the right codes. In a Grid parent (--setting canvas=off) the window followed its cell: 1112x984, then 544x984 when another client opened, and with --outputs 2 the state listed NESTED-1 and NESTED-2 at half the width each, with a window sent to the second half drawn there. A click on the close button of the title bar ended the compositor and removed its control directory. On a parent started with --no-dmabuf no window opened and the log had no window opens: the surface lists no format for this GPU. Not proven in that run: the window on the desktop in use (the owner's parent display, the second monitor placement, a real keyboard and mouse, the focus loss release, the wheel, a scale factor other than 1, an X11 parent, a hidden or minimized window). Later the same day the owner opened start --visible --renderer wgpu on the desktop in use (run c2b0727d, renderer wgpu), ended it with stop and said: "tudo certo com a nested que a gente abriu". He named no detail, so the second monitor, the wheel and the scale factor stay without a record. Captures, local: ~/.codex/artifacts/qa/galaxy-shell/2026-11-10-wgpu-window/.

2026-11-06, headless backend and the typing rule (nested proof, GPU device, linux-dmabuf on, 50 formats, gnome-calculator as the client): with --outputs 1 the output was 1920x1080 with the chat, the bar and the wallpaper effect in a capture, and key Super_L and type put the text in the composer. With --outputs 2 the state listed NESTED-1 at x 0 and NESTED-2 at x 1920, and capture --output NESTED-2 showed the empty composer box of the new workspace. The list of window ids of the live compositor did not change through a run, and its focus moved only with input of the user. A client launched during a loop of type a kept the keyboard on the chat for the rest of the run, in a run with no typing the same client took it, and in the run of the typing a second client launched right after key Return took it too (commit 401874e4, run 818f0244). With --setting canvas=off a new window took no keyboard, also with no typing: the rule of a new window taking the keyboard is the Canvas one.

2026-11-02, hexagonal crystals phase 1 (run 26bd82c7, nested proof, one 1896x1032 output, synthetic profile, no provider): the crystals showed behind the chat and its glass; two captures 1 s apart differed in 86,582 of 123,750 sampled pixels of a free area. "Aurora" and "Cristais" in the settings switched the effect, and the wallpaper window kept id 1. After a click on the green swatch, the free area moved from mean RGB (23, 20, 37) to (9, 25, 12); after a click on the blue swatch, a capture 0.25 s later showed a mixed tint (10, 24, 22) on the way to (11, 21, 36). stop ended the run and left only the live core.

2026-11-01, one nested run in the live Smithay session (GDM, direct session), synthetic profile, no provider:

  • start opened a 296x456 window. state listed the wallpaper, the top bar, the bottom bar and the chat, and capabilities.testInput was true.
  • click 70 250 and type "hello nested QA" put the text in the protected message field, with the text cursor, through the Wayland keyboard path of Electron.
  • click 272 16 opened the quick-settings panel window (a new window id in state). Its geometry, 960x416 at (32,32), does not fit the 296x456 output, so the capture shows only the pressed button.
  • key Super_L (a Super tap) opened the workspaces presentation. That was the behavior until 2026-11-01: today the tap focuses the chat and key Super_L+s opens the overview.
  • A second start was refused. stop ended the six processes of the run, removed the private directory and left the live compositor (PID 1546923) and core (PID 1546991) untouched.

Evidence: Super tap and Super+S (2026-11-01)

One nested run (grid layout, synthetic profile, no provider), with the Calculator of GNOME as the application client, started on the nested socket only (a launcher script with its own HOME, no session bus). Nested proof only: no live session, no real keyboard and no second monitor.

  • click on the Calculator gave it the keyboard (state: the chat focused: false). key Super_L made the chat focused: true, the layout stayed grid and the presentation stayed null. type "hello chat" then showed the text with the cursor in the message field of the capture.
  • key Super_L+s set the presentation to workspaces (layout focus, the chat covering the output). The same chord again restored grid and the cells of both windows.
  • With the overview open, key Super_L closed it (presentation null, layout grid, the chat focused: true).
  • key Super_L+f on the Calculator covered the grid: the chat visible: false. key Super_L ended the zoom: the chat visible: true and focused: true, the Calculator back in its cells.
  • In the focus layout (key Super_L+t), key Super_L kept the chat presentation and the chat focused: true.
  • stop ended the four processes of the run. The Calculator was a separate client and was closed by hand.

The immersive and palette cases, the floating window and the lock are covered by the in-process tests only.

Overlay of the chat host

start --overlay DIR approves the synthetic files of DIR/ui-src into the private profile before the core starts, through web-shell/scripts/seed-overlay.js, so the first start activates them. It skips the review card, which is the only real way in. It needs a checkout: a release does not ship that script. See immutable-base.md, Phase 5 as built.

Headless presentation feedback (2026-11-07)

Only the single-output headless backend advertises wp_presentation. It reports completion of an offscreen frame after glFinish, using CLOCK_MONOTONIC, unknown refresh and empty flags. It takes feedback only from application surface trees whose elements were included in that render result. A superseded commit can be discarded by Smithay; a hidden surface is not falsely reported as presented. This is neither physical scanout nor a claim of vblank, hardware clock, hardware completion or zero-copy. The visible nested and DRM backends do not advertise this protocol. No pixel capture or readback was added.

The isolated portability probe collects these events on its existing connection, and distinguishes presented, discarded and pending requests. Its backend comparison uses opaque Vulkan and GLES surfaces with the same WGSL. It does not replace the compositor's renderer, which is wgpu

Selecting the renderer

Since 2026-11-10 a headless run draws every output through WgpuRenderer, the default renderer of the compositor (openspec/changes/wgpu-renderer-plan/design.md, Phase 4, the switch). It needs a hardware GPU; every build links the renderer since step 10 of the removal plan (2026-11-11), so there is no feature to build. A failure of the renderer or of its dma-buf self-test stops the compositor at start with the reason in compositor.log; the run does not fall back to GLES. Since 2026-11-11 (step 6 of the removal plan) there is no --renderer: start refuses it as an unknown option, as the compositor does, and the renderer is wgpu. start --visible opens the wgpu window (next section) and draws with the same renderer. start prints gpuApi (what the compositor reports: vulkan or gl), records it in coordination.log as gpuapi=, and state --full reports gpuApi; the snapshot key renderer is gone.

The wgpu window

Step 3 of the GLES removal plan (2026-11-10). --nested, which start --visible passes, opens a window that the compositor makes itself, in every build (native/smithay/src/wgpu_window.rs): a window of the winit crate and a wgpu::Surface on the Vulkan device of WgpuRenderer. Each frame is the frame of the headless backend (the same Headless::redraw of wgpu_output.rs, into one offscreen texture per output), and one blit pass then copies those textures into the swapchain image. So capture, test_input, --outputs 2 (left and right halves of the window) and --no-dmabuf act as in a headless run, and the window only shows the frame.

  • It is the default of --nested and of start --visible since the owner opened it on the desktop in use on 2026-11-10 (run c2b0727d, renderer wgpu) and said: "tudo certo com a nested que a gente abriu". The GLES window (winit.rs) was deleted at step 8 of the plan (2026-11-11).
  • The outputs follow the window: their mode is its size in physical pixels, at scale 1 (the deleted GLES window ignored the scale factor too), and they report 60 Hz. A resize or a change of the scale factor makes new textures of the new size.
  • Pointer and keyboard events of the window become the steps of test_input (the pointer in window pixels, the buttons and the keys as Linux input event codes, a mouse wheel as a wheel scroll of 15 pixels per notch and a touchpad as a continuous scroll), inside the limits of the typed events: the three buttons, key codes 1 to 0x2ff, positions and amounts cut to their limits. When the parent takes the keyboard focus away, every key and button that is held is released, so no Super or Alt stays stuck. The arrow of the parent is hidden, and closing the window ends the compositor.
  • The frames are paced by a 60 Hz timer and presented with Mailbox (then Immediate, then Fifo): a Fifo acquire can block for ever on a hidden Wayland window and would freeze the control socket.
  • The parent must offer a surface that this GPU can present to. A Wayland parent without linux-dmabuf, or no parent display at all, gives no window: the compositor ends at start with no window opens: ... in compositor.log, before it makes its outputs and the dma-buf global, and there is no shared-memory path. A headless run and capture are the alternative.
  • The placement on the second monitor (send_to_output, Limits) finds the window by the PID of the compositor and is unchanged.
  • It needs the Vulkan device: under --gpu-api auto the window opens on Vulkan only, and --gpu-api gl (or AGENT_NATIVE_GPU_API=gl) is refused before a window opens, also for --nested alone, whose only window is this one in a build with the feature.

Selecting the effect reference for renderer comparisons

Removed on 2026-11-10 (openspec/changes/archive/2026-11-10-gles-removal-plan/design.md, step 2). start --effects-backend no longer exists and nested-qa.py refuses it as an unknown option, as the compositor does; state --full no longer reports effectsBackend, and the wgpu-effects build feature and its bridge are gone. A build without the wgpu renderer has no renderer since 2026-11-11 (step 8 of the removal plan, docs/smithay-development.md). Dated records that name the option (for example openspec/changes/wgpu-renderer-plan/design.md and docs/work-log-2026-11.md) say what ran when it existed.