Upgrading¶
How to move to a newer Tesserae Shell, what a release promises about your files, and what to do when a file written for an older release is refused. Tesserae Shell is pre-alpha: before 1.0 a minor release (0.X.0) may change files, commands and the module contract, and each change is listed in the changelog.
The short version¶
- Read the changelog for the releases between yours and the new one: Changed and Removed lines are what can touch your files.
- Upgrade the package.
- Run
tesserae-shell check. If it is clean, you are done; restart the shell. - If it reports
tdl-old-versionordeprecated-key, runtesserae-shell migrate --checkto see what would change, thentesserae-shell migrate. - If a module of yours (Python) stops working, the changelog names the contract change; migrate does not rewrite Python.
Upgrade the package¶
Use the same tool you installed it with (Install and start):
uv tool upgrade tesserae-shell # installed with uv tool
pipx upgrade tesserae-shell # installed with pipx
pip install --upgrade tesserae-shell # in a virtual environment of your own
Then confirm what you have:
tesserae-shell version
The shell needs Python 3.14 or newer and pins ranges of its libraries (the engine, the expression language and the TDL reader), which the package manager installs together; you upgrade one package. A shell that is running keeps running the old code until you restart it (systemctl --user restart tesserae-shell under the session unit, or stop it and run it again). After moving or reinstalling the shell, tesserae-shell install-session --force rewrites the unit so it points at the new command.
What a release promises¶
The full policy is in The command line and, with the reasoning, in the design note Version Policy and Migration. In short:
- A patch (0.x.Y) fixes things and changes no file, command or API.
- A minor before 1.0 (0.X.0) may change anything. Each change is in the changelog under Changed or Removed, with a
migratestep when it touches your files. - From 1.0, a minor only adds; a file valid for 1.X stays valid for 1.Y; a rename or removal waits for a major and is deprecated for at least two minors first.
- Several numbers move on their own: the TDL language version (
TDL:in a file), the TEL language version, the schema export version, the module contract and the registry format. The table is in Versions and what a release promises.
migrate¶
tesserae-shell migrate --check # change nothing; exit 1 if any file would change
tesserae-shell migrate # rewrite the files that need it
migrate brings your .tdl files to the current format with an ordered list of numbered steps. Each step rewrites text only and does nothing to a file that is already at its target. In 0.2.0 there are two:
- Step 0001, TDL 0.1 to TDL 0.2: a slot written
{{ expression }}becomes<| expression |>andTDL: 0.1becomesTDL: 0.2. No other byte of the file changes. A slot whose text holds|>outside a quote cannot be written in the new form: it is reported and that file is left as it was. - Step 0002, renamed keys: a deprecated key or block is written under its new name. Nothing is deprecated in 0.2.0, so this step has nothing to do yet.
What you see, for a file written for TDL 0.1 (this is --check on a copy):
step 0001: TDL 0.1 to TDL 0.2: a slot is written <| expression |>, not {{ expression }}; TDL: 0.1 becomes TDL: 0.2
would change: Shells/Main_Shell.tdl (2 edits)
1 file(s) to change, 0 not migrated
Exit code 1 means --check found work. Without --check, the changed files are listed, then the verdict of check on the result.
What it does to be safe:
- Before it writes, the originals are copied to
<configuration folder>/.migrate-backup/<timestamp>/with their relative paths. Nothing is deleted, so a run that is interrupted leaves every original in the backup and a second run is safe. - Each file is replaced through a temporary file and a rename: a file is either as it was or fully migrated.
- It writes only inside the configuration folders and never starts a shell.
- It refuses to run while a shell is running (exit code 4), because a reload would read half-migrated files. Stop the shell first, or pass
--force.--checknever refuses. - It does not rewrite the Python of your modules.
The options and exit codes are in The command line; --json prints the result as data for a script. Start with --check, and keep your folder in version control if you can.
The Shell: pin¶
A file's metadata block may say which shell release it needs:
---
TDL: 0.2
Shell: 0.2
Name: Main_Shell
---
Shell: is the minimum release (major and minor). If it is newer than the shell you run, the file is refused with the error shell-too-old, at the Shell: line, and the hint says which release to install. Install it, or lower the pin if the file does not need it. A pin is how a file you share says what it was written for; leaving it out is fine.
The same block can pin TDL: (the language version; a version the installed library does not read is version-pin) and, for a file that needs them, TRE: and TEL: for the engine and the expression language. A file for an older language (today, TDL 0.1) is refused with tdl-old-version and the hint to run migrate; the shell does not read it and warn, because a file that parses differently from what its author wrote is worse than a clear stop. All of these are in Messages.
Deprecations¶
A key, block, parameter or command that is renamed or replaced keeps working under its old name for one minor before 1.0 (two after), with the warning deprecated-key (or deprecated-command on the command line) naming the replacement and the release that removes it. The schema export marks it, and migrate rewrites it.
Nothing is deprecated in 0.2.0. A removed key is an error, removed-key, whose hint says what to do; today that is a Bar's Reveal_Key.
What changed for the Python of your modules in 0.2.0¶
A module of yours (a Name_Module.py that does not ship with the shell) now runs in a process of its own, one for each module file, instead of inside the shell. The modules that ship with the shell are unchanged. Nothing in your files has to change, and migrate does not touch Python. What you may notice:
- A module that hangs or crashes no longer freezes the bars: a callback that runs for 2 seconds is named, at 5 seconds its process is killed (
module-process), and the module starts again with the usual back-off. - It is not a sandbox. The process runs as you, as before (Security and trust).
- What a module sends is plain data;
Event.stop()has no effect in a module of yours (event-stop); actxcall that must answer at once raisesShellCallTimeoutafter 2 seconds; the first values of a module can appear just after the bar's first paint. The module API lists the differences. tesserae-shell checknow reads your modules' Python without running it (module-import,module-classes,module-no-python), andcheck --import-modulesimports it in a throwaway process. Messages has the new findingsmodule-process,module-actionsandevent-stop.- Each process costs about 20 MB.
Debug { User_Modules_In_Process: true }insettings.tdlputs your modules back in the shell's process, as in 0.1.x; it applies after a restart. - The schema export version (
schema_versionintesserae-shell schema --json) is 1.12; the changelog calls the change additive.
Changelog¶
Every release in order, oldest first, with an Unreleased section (the next release) at the end whenever there are changes not yet released. It says what changed and what was removed.
0.1.0 - 2026-11-15¶
- Moved to tesserae-dl 0.2.0 (floor
>=0.2.0,<0.3; language TDL 0.2): a slot is written<| expression |>and{{ }}is refused by the parser (tdl-unexpected-text, with the hintWrite <| expression |>); every shipped.tdlfile, fixture, example, hint, doc line and the README use the new form and the headerTDL: 0.2(Shell: 0.1is the shell's own version and stays).tess_dlaccepts any version of its own major number, so the shell checks theTDL:key itself: a file written for TDL 0.1 is an errortdl-old-versionat the key (and a newer one aversion-pin), also forsettings.tdl, and the UID write skips such a file.tdl-double-closeno longer exists (}}is two closing braces). Forwith several loop variables (For i, item In <| enumerate(items) |> Key <| item.id |> { ... }, new in TDL 0.2):ForNode.variables(a tuple;variableis gone) carries every name written, andmodel/live.pygives them to tess-el'scompile_repeater_partsas written, which unpacks each item of the list over the names (an item that is not a list or tuple with one value per name is reported at theForas a TEL error and the entries are left out). Every name is readable in the entry's slots, inKey, in a handler's argument slots and in a Popup's content; the nodes are kept by key as before. A duplicate or invalid name is the language's own finding (tdl-duplicate-variable, "A For needs a variable name").- Package skeleton:
pyproject.toml,src/tess_shell, tooling (ruff, mypy, pytest). - Command line
tesserae-shellwithversion;runandcheckare wired in later tasks; the other subcommands report "not implemented in M0". - Config directory lookup (
--config-dir,$XDG_CONFIG_HOME,~/.config) andsettings.tdlreading: every key of the Settings File note, one finding per problem withfile:line:column. - Loguru setup: console sink and a daily
log_YYYY-MM-DD.log(directory 0o700, file 0o600), JSON option, midnight file swap, retention, console-only fallback. - Instance lock (
flockon$XDG_RUNTIME_DIR/tesserae-shell/lock, exit 4 naming the holder's pid) and$XDG_RUNTIME_DIRchecks (exit 2). tesserae-shell run: pre-flight, settings, logging, instance lock, registry (registry.json, created and saved atomically), then the engine loop withkeep_alive; SIGTERM and SIGINT stop it cleanly (exit 0), a second signal forces exit 130. Steps 7 to 12 of the start sequence that need later milestones are logged as not built.tesserae-shell check: settings, then a syntax check of every*_Shell.tdl,*_Module.tdl,*_Style.tdl,*_Theme.tdland*_Stylesheet.tdlunder the search directories, withfile:line:column,--json, exit 0, 1 or 2.runstep 7 does the same scan.- Idle measurement script
tests/perf/measure_idle.pyand its first result (tests/perf/idle-results.md): 0.000 % of one core and about 3 wake-ups per second over 60 s, within the budgets. - Import rules of the package layout are enforced by
tests/test_imports.py. - M1 binder (
tess_shell.binder): the typed tree andBindError(model.py). - M1 binder converters (
convert.py): length, bound, number, whole, positive, bool, text, color, enum, wrap flag, sides, radius, font family, plus a colour parser; table-driven tests. - M1 binder tables (
tables.py) forBox,FlexBox,Text,Rectangle,SpacerandSVG, guarded by a test that builds a node for every row on a headless tre window;build.pybinds a typed tree throughWindow.build, collects every error with itsfile:line:column, translates tre's errors back to the key, refusesIfandFor, and returns aViewwithdispose. - M1 Bar geometry (
surfaces/bar.py):bar_geometry(spec, output, content)computes tre'sanchor,size,margin,exclusive_zoneandexclusive_edgeas a pure function; every row of the worked-examples table is a test, withZeroSizefor a Bar that is not created. - Text
Width/HeightAUTObecomes tre's"fit-content"; a test pins that a headlessLayerWindowaccepts the Bar geometry of every worked example. - Binder: a key written both in a block and in its Style is an error naming both places (D2); a Font_Family list is joined with ", " (D5).
- M1 schema (
tess_shell.schema):read_shellchecks a parsed*_Shell.tdlagainst theShell,Monitor,Barand block key declarations and types it into the binder's model; unknown keys with nearest names, wrong types, missing keys, duplicate names and monitors,style-duplicate,bad-sides,Border { }flattened, forms not built in M1 refused (not-built; Bar keys M1 does not build are warnings).tree.pymoved fromfilestoschema. - M1 files: stage 3 header checks (
version-pin,shell-root-suffix);checkandrunstep 7 now type every*_Shell.tdl, print warnings without failing, and a test pins that the schema's key declaration matches the binder tables. - M1 surfaces (
surfaces/manager.py):assignmatchesMonitorblocks to outputs (Connector, then Description, then Index;Index: defaulttakes the rest),SurfaceManageropens oneLayerWindowper Bar (namespacetesserae-shell.bar.<name>, geometry frombar_geometry, inlineFill), binds its children and logs every bind error while leaving that Bar empty;runsteps 10 and 11 call it. Tests on a private headless sway: the Bar is configured at 1280x32, the output's usable area shrinks by the reserved zone and is restored when the shell stops. - M1 measurements:
tests/perf/measure_bind.py(bind-results.md) andmeasure_idle.py --bar(idle-results-bar.md): 3,101 nodes bind in about 12.6 ms, the example in 0.03 ms; idle with the Bar shown is 0.000 % of one core and about 2.7 wake-ups per second. - A Monitor block that names an output an earlier block already took logs a warning naming both blocks at start; the first wins (D11).
- A reference image of the M1 example (
tests/snapshots/m1_example.png, 400x32) compared with a tolerance of 0.2 % of the pixels (a recoloured icon fails it);UPDATE_SNAPSHOTS=1regenerates it, written bytess_re.snapshot.write_png. The sample SVG now usescurrentColor, so itsColoris visible. - M2a binder:
SlotValue,SlotPartandUseNodein the typed tree (the binder refuses them unevaluated), andView.updatesets new typed values on named nodes through oneWindow.apply, skipping values a node already has. - M2a schema:
read_moduletypes a*_Module.tdl(Module { Params { } Children { } }or one layout block; param types string, number, boolean with defaults), a{{ }}slot in a value becomes aSlotValuewhose parts carry the origin of the slot text, and a block headed by a module's call name is aUseNodewith typed params (unknown param with nearest names, missing param without default, slot in a param refused).Style,Importin a module are refused until M2b. - M2a model:
model/store.py(thread-safeValueStore: queued sends, one wake per turn, latest value per use and key, plain-data check),model/expand.py(a module call becomes the module's layout with per-use node ids),model/live.py(slots compiled with their origin, evaluated in the use's scope, links re-evaluated only when a read path is touched; an error keeps the last value and logsfile:line:column). - M2a modules:
from tess_shell import Module, action;modules/host.pyimports<Name>_Module.py, finds exactly oneModuleclass, setsctxbeforestart(), validates each use, and isolates failures (missing.py, no or two classes, import error,start()raising: a finding naming the files and the line; other modules keep running);modules/ticks.pyis the shared wall-clock source (one thread, woken only at a subscribed second or minute, no drift, a clock moved back is handled). - M2a Clock:
shipped/Clock/Clock_Module.tdland.py(format,hour_cycle,timezone;--:--fallback); a user module of the same name overrides a shipped one.runsteps 10 to 12 expand the module calls, load and start the modules, build the Bars from their first values and update only the changed node properties, oneWindow.applyper Bar per turn. - M2a files: a module call may sit anywhere in a Bar or a module's layout,
Import: <path>_Module.tdl(one file or a list, relative to the importing file) embeds a module at that position, modules are read in two passes so the order of files does not matter, and a circle of calls or imports is an error naming the chain (import-cycle). A module'sUIDis written into its metadata (and the shell file's) on first registration, after a backup under$XDG_STATE_HOME/tesserae-shell/backups, and kept in the registry asfile:<path>. - M2a measurement: idle with the Clock shown is about 2 wake-ups per second between ticks (tre's own thread); the tick adds a burst from tre's software renderer (
tests/perf/idle-results-clock.md). - M2b binder:
View.rebuild(nodes)compares a new typed tree with what is built by key (theName, else block word and position), keeps matching nodes, sends the changed properties in oneWindow.apply, builds new subtrees withWindow.build, reorders withset_childrenand frees removed nodes; a changed block word or a property the new tree no longer sets is a replacement; a bad value changes nothing. - M2b
If/ElseandForin a module's layout (B1): the schema types them,model/live.pyevaluates the condition and the repeater with TEL (select_tracked,compile_repeater_parts,reconcile_tracked,RepeaterStatekept between resolves, entry names<name>_0001never reused), and a use with structure is resolved again and handed toView.rebuildwhen anything its slots, conditions or headers read changes; a key nothing reads causes no rebuild. A module call orImportinsideIf/For, andIf/Foroutside a module, are not built yet. - M2b module style files (B4):
Style: <Name>_Style.tdl(relative to the module file) or an inlineStyle { }in a module, withClasses { name { Kind: Text, ... } }and per-type defaults;Class: name(one or a list) on a block; priority is the file's type default, then its classes, then the block's inlineStyle, then keys written on the block. A missing class, a class of another block type, a missing or bad style file are errors at their own file and line. The shipped Clock now takes its look fromClock_Style.tdl. - M2b icon sets (B5):
SVG { Icon: "mdi:account" }(or a bare name) is resolved from Iconify-style JSON sets in the configIconsfolder, thenDirectories { Icons: [...] }, read on the first lookup (the real 7,447-iconmdifile: 5 ms), a prefix selects a set and no prefix looks inmdifirst; the body draws withcurrentColor, soColortints it; an unknown icon is an error at its value with the nearest names; an SVG needsSourceorIcon, not both. No set ships in the package (the licence texts travel with the files). - M2b file watcher (B2):
watch.pyblocks inselecton one inotify descriptor (inotify_simple), listens for close-write, moved-to, moved-from and delete, ignores dot files,~,.swp,.tmp,.bakand theschemas,logs,backupsfolders, watches folders created later, and calls back once with the changed paths after 200 ms of quiet; the shell's own writes are recognised by content hash and dropped; a watch that cannot be added (the limit) turnsokoff with a warning. - M2b hot reload (B3):
reloader.pyvalidates a change on the watcher thread exactly as at start (settings and every shell file) and queues the apply onto the loop only if there is no error; an error changes nothing and is reported withfile:line:column. The apply brings the modules to the new definition (ModuleHost.sync: a module no longer used is stopped, a new one is loaded, a changed.pyis imported first and replaces the instance only if the import works, a changed module or style TDL file callsreload()and keeps the instance, uses are added and removed withuse_added/use_removed), then each Bar is kept (tree rebuilt by the keyed diff, geometry set live in oneset()) or closed or opened.SIGHUPreloads everything (also withHot_Reload: false);Hot_ReloadandReload_Debounceare settings; a change toDirectories,RegistryorMain_Shellis reported as needing a restart andLoggingapplies at once. Module code is compiled from source on every load, never from a bytecode cache. The shell's own UID writes are recognised by content hash (one use, five seconds) and dropped.scanner.pyholds whatcheck,runand a reload share. - M2b measurements:
tests/perf/measure_reload.py(reload-results.md): a savedHeightis applied a median of 206 ms after the save (200 ms debounce plus about 5 ms to validate, diff and set);idle-results-clock.mdis re-measured with the watcher thread running: no change in wake-ups attributable to it. - Binder: a
Textwith noWidthis sized to its content (fit-content); tre laid such a text out at width 0, so two texts in a row (two Clocks) overlapped. M1's single text hid it. - Reload: the log line says
reloaded with errors (...)when a module's Python or layout failed to import and the old instance was kept. - M3a:
Elevation: N%andShadows { Shadow { Color, X, Y, Blur, Spread } }on FlexBox, Box and Rectangle (and in an inline Style); the defaultMaxreaches 64 px, andbinder/shadow.pycomputes the transparent margin a shadow needs (measured against tre 0.6.1: blur + spread +/- offset, plus one pixel). - M3a: the Settings portal reader (
services/portal.py) on adbusservice thread (services/bus.py, dbus-fast): oneReadAllat start, thenSettingChangedonly; settings.tdl gainsAppearance { Theme, Stylesheets, Follow_Desktop }. - M3a: a Bar with
Elevation,ShadowsorShadow_Bleedin itsStyleis drawn as a body inside a larger transparent surface (ADR-0010): the surface grows by the shadow margin, the exclusive zone grows by the same amount on the Edge side so the reserved space is unchanged, and a reload that changes the elevation only sets properties. Every Bar now has a body node that holds its fill. - M3a themes (A1):
Themes/<Name>_Theme.tdlwith the token groupsColor,Type,Shape,Space,ElevationandMotionandModes { Light, Dark, High_Contrast, Reduced_Motion }; a style value$group.name(any key of a block or an inlineStyle) is a reference, read as the kind of the key that names it, resolved just before binding; a missing token or one of the wrong kind is an error at its line with the nearest names, incheckas well as at run time. The shell ships aDefaulttheme (dark base, light and high-contrast modes,Accent: DESKTOPfollows the desktop) and aDefaultstylesheet (text and icons take the theme's colours);Appearance { Theme: <Name>, Stylesheets: [<Name>, ...] }in settings.tdl names the ones in use, and a reload applies a change. - M3a stylesheets (A2):
Stylesheets/<Name>_Stylesheet.tdlwithRule { Selector: "Text" | ".class" | "#name", <style keys> }, a name beating a class beating a type and the later rule winning a tie; the block's own style and keys beat a rule, and a key the block does not take is skipped. Selectors with a:stateor::partare read and skipped with a warning (the events layer, M3b). - M3a portal (A3): the desktop's colour scheme, accent, contrast and reduced-motion settings pick the theme's mode (
Light,Dark,High_Contrast,Reduced_Motion, durations to 0) and a change rebuilds the Bars by the keyed diff, 1 to 2 ms after theSettingChangedsignal;Appearance { Follow_Desktop: false }never calls the portal; no portal gives the defaults and one warning. - Tests that start the shell no longer see the real session bus (
DBUS_SESSION_BUS_ADDRESSis dropped from the private compositor's environment); the portal tests run a privatedbus-daemonwith a fake Settings portal. - M3a measurement:
tests/perf/measure_shadow.py(shadow-results.md): a 100 % elevation on the example Bar grows its surface from 32 to 97 px and the process by 0.8 MiB. - M3b events (B1, first part):
On_Click: action_nameorOn_Click { Action: name, Arg: value }on aFlexBox,Box,Rectangle,SpacerorSVGin a module's layout calls the module's@actionmethod on the loop thread with atess_shell.Event(name,use,args,time, pointerx/y,button); all twelve event keys are known (an unknown one names the nearest, one a block cannot raise says so, the shell's built-in actionsShow,Hide,Toggle,Close,Callarenot-builtuntil the Panel); a handler naming a method that is not an@actionfails the module's load with the action list; a handler that raises is logged with the module, event and position and the shell keeps running; a handler over 50 ms is logged as slow; a reload replaces a handler without a second listener. ATexttakes no listener in tre 0.6.1, so it raises nothing: put the handler on the box around it. -
A theme that lacks a token falls back to the
Defaulttheme's value for it, token by token, in the current light/dark look (D42); a token neither defines is still an error. -
M3b B1 (first part):
On_Click: action_nameorOn_Click { Action: name, Arg: value }on aBox,FlexBox,Rectangle,SpacerorSVGin a module's layout calls the module's@actionmethod on the loop thread with atess_shell.Event(name,use,args,time, pointerx,y,button). An unknownOn_key names the nearest of the twelve v1 events, an event a block does not raise, a built-in action (Show,Hide,Toggle,Close,Call; built with the Panel) and a bare name in a shell file are load errors, a handler naming a method that is not an@actionfails the module's load with the module's actions listed, and a handler that raises is logged with its module, event and position without stopping the shell. A reload replaces a handler without a second listener. tre 0.6.1 delivers a click to a text node's parent and not to the text's own listener, so aTextraises nothing: put the handler on the box around it. - A partial theme falls back to the
Defaulttheme's value for any token it lacks, token by token, in the Default's current light or dark look (maintainer, D42); a token neither defines is still an error. - A rule with a module's name as its selector (
Selector: "Clock") styles the module's root blocks at every use; inner blocks are styled by a type, class or#namerule (D40). - The
mdiicon set (Material Design Icons, Pictogrammers, 7,447 icons) ships in the package asshipped/Icons/mdi.jsonwith its licence text (MDI-LICENSE.txt) and aNOTICE.txt; it is searched after the user'sIconsfolders, soSVG { Icon: "mdi:account" }works with no setup and a user set of the same prefix wins. - Fix: a Bar's shadow margin no longer takes pointer input. The surface's
input_regionis the body (ADR-0010; Panel > Input region) when there is a margin, and the whole surface when there is none; a reload that adds or removes the shadow sets it live. Before this the transparent area below a shadowed Bar blocked clicks on the windows under it (found on KWin). - M3b Panel (B2, first part):
Panel { Name, Layer, Anchor, Inset, Width, Height, Keyboard, Input_Region, Visible, Hide_After, Style, Children }in a Monitor'sChildren; an anchored Panel is placed byInset(left, top, right, bottom, reordered to tre's margin), a Panel with noAnchoris centred by the compositor, a size of 0 stretches between two opposite anchors; a shadow grows the surface and the body keeps its place, and the input region is the body (Input_Region: []passes clicks through,AUTOis the drawn shapes).Visible: falseopens hidden;Hide_After: 1500hides it after that many milliseconds and showing it again resets the timer; Escape hides a Panel that takes the keyboard. Hiding (D44, revised 2026-11-05): a hidden Panel has no window; showing makes a new one from the same Panel record and builds its tree again from the current values.On_Click { Action: Show | Hide | Toggle, Target: <Panel Name> }on a block, in a shell file or a module's layout, runs the shell action; aTargetthat names no Panel is an error with the nearest names. Not built yet:Attach_To/Attach/Alignment/Gap,Movableand saved positions,Animation,Exclusive_Zone,Input_Regionrectangles,AUTOsize,Meld, and the Panel's ownOn_Open,On_Visibleand the other surface events. -
Tests: the live reload test no longer reads the workspace top after the Bar may already have reserved its zone (a race that made it fail one run in five).
-
A Panel's
StyletakesCorner_Radius,Border_WidthandBorder_Color(applied to its body) as well asBackground,Elevation,ShadowsandShadow_Bleed; a Bar'sStyledoes not. - Panel: hiding now closes the window and showing makes a new one (D44, revised). The first version kept a transparent surface mapped; on KWin a hidden Panel kept showing and a shown one sometimes stayed empty (the maintainer's check), and clicks felt late. A
Visible: falsePanel never has a surface until it is shown, so there is nothing to go stale and no first-show flash. At DEBUG the shell logs each pointer press and release per surface, each dispatched action, and the time of a new Panel's first frame. - A handler stops its click at the first listener (as Material 3 and Tesserae UI do): a clickable inside a clickable takes its click alone.
- The
Defaulttheme is now a dark blue-grey with steel blue as its Primary (#5B97C9, 5.8:1 on the surface) and#4682B4as its Accent; its light variant uses#2F6B9A, its high-contrast variant black and white with a light blue (maintainer, D33).Accent: DESKTOPstill follows the desktop's accent. settings.tdlDebug { Panel_Hide: CLOSE | KEEP }(a restart applies it): CLOSE, the default, hides a Panel by closing its window; KEEP is the first version, which keeps the surface mapped and draws nothing, kept to find why it was not repainted on KWin (D44). At DEBUG the shell logs the first frames a Panel draws after each show or hide, and the frame count 250 ms later, in both modes.- The surface manager wakes tre's loop (a queued no-op) after it changes a window: a Panel shown or hidden, a reload, a theme change, a value update. tre 0.6.1 does not request a frame for a window whose node was changed during a callback of another window, so the change waited for some other wake (measured on a private sway with
tests/kwin/probe_hide.py: a child node's fill changed from another window's timer was not drawn in 500 ms, and was drawn in 1 to 2 ms when followed bycall_soon). This is the likely cause of the first hide route failing on KWin (the KWin log shows no frame after a show until the 250 ms debug timer). - The default way to hide a Panel is now the kept surface (maintainer, 2026-11-06): the surface stays mapped and draws nothing, so a hidden Panel keeps its tree and state;
Debug { Panel_Hide: CLOSE }selects the window-closing route. The kept surface works because the shell wakes tre's loop after each change it makes to a window; the maintainer checked it on KWin. The underlying fault is tre's and is written up as TRE-REQ-012 (tests/kwin/TRE-REQ-012.md, withrepro_cross_window_redraw.pyandprobe_hide.py). Attach_Toon a Panel (M3b):Attach_To: <Name>,Attach: LEFT | RIGHT | TOP | BOTTOM,Gap(pixels) andAlignment: START | CENTER | END(defaultCENTER) place a Panel against a Bar, another Panel (a chain) or a module used in a Bar (Clock { Name: Clock_One }). The module's rectangle is where tre laid out its first root block; the Panel meets the Bar's edge, not the module's, so it never covers the Bar, and it slides along the module. A target has one attached Panel; an unknown name, another Monitor, itself, a circle andAnchor/InsetbesideAttach_Toare errors at load. An attached Panel opens only while its target is open and hides with it. A body that would leave the output is moved back onto it, with a warning. A Panel on a module is placed again when it is shown, after the Bar is laid out and after a reload.- A Panel now has
exclusive_zone-1: with 0 the compositor measures its margins from the area the Bars leave free, so anInsetwas shifted by a Bar's thickness.Insetis now from the output's edges, as Panel.md says. - Stylesheet state selectors (M3b, D39):
Rule { Selector: "Button:hovered" }and":pressed", after a block word,.class,#nameor a module name, give a block a look while the pointer is over it or a button is down on it. A state rule has the weight of its base selector (name over class over module over type, the later rule wins a tie) and is not held back by the block's own style: it is the look while the state holds.$tokenvalues in a state rule resolve like those in the base style. The binder listens topointer_enter,pointer_leave,pointer_down,pointer_upandpointer_cancelon a block that has a state style, never stops the event (a click still reachesOn_Clickand the blocks around), applies the state's properties with the same conversion as the base, remembers the values they replace and puts them back exactly; pressed shows over hovered, and a leave ends both. A reload keeps a block in the state the pointer has it in with the new look. ATexttakes no pointer event in tre, so a state rule that reaches one is a load-time warning (state-never-applies; put the rule on the box around the text).:focused,:disabledand::partare still read and skipped with a warning that says why: no block can take focus, none has anEnabledkey and none has named parts yet. An unknown state name is an error naming the four states. - Popup (M3b, B4):
Popup { Name, Attach, Alignment, Gap, Width, Height, Max_Width, Max_Height, Adjust, Focus, Style, Children }as a Monitor child. A module opens one beside the use whose@actionruns withself.ctx.popup("Menu")(the shell supplies the calling use;ctx.popup(name, data=None, use=...)outside an action takesuse); calling the open Popup closes it, and opening another closes the first.self.ctx.close_popup(name=None)closes it. The built-in actionOn_Click: Close(noTarget) closes the Popup that holds the block. A Popup is built when it opens: the content is measured in a headless window (Width: AUTO,Height: AUTO, clamped toMax_Width300 andMax_Height400; taller content scrolls), a trePopupWindowof that size is placed beside the caller's rectangle (the use's first root block) by the spec'sAttach/Alignmenttable,Gapis the distance from the anchor to the visible body whatever the shadow margin, and the content is bound into it. The shell chooses the side itself: under a bottom Bar a Popup opens upward with no setting. It does not leave that to the compositor'sflip_ybecause sway and wlroots flip the anchor and the gravity but not the offset, so a gap and a margin that the offset puts right on one side land wrong on the other (measured: a 6 pxGapbecame 6 px of overlap);Adjust(default[FLIP_Y, SLIDE_X]) is still passed on.Focus(default true) is tre's grab: an outside click or Escape closes it, a click on one of the shell's own surfaces closes it (and is not a call to open it again), and a Popup dismissed within 150 ms of opening is logged as a probable denied grab. Not built:Attach_ToandAnimationon a Popup, percentages forWidthandHeight, submenus,caller.datain expressions (datais accepted and warned about), andCall. - Tooltips (M3b, B5):
Tooltip: trueon a Popup (no focus,Open_On_Enter,Close_On_Exit;Enter_Delay500 ms,Exit_Delay200 ms, each key overridable) and, on a block or a module use,Tooltip: <Popup Name>or an inlineTooltip { Children { ... } }. The pointer must stay on the block forEnter_Delay; leaving it, or leaving the tooltip, closes the tooltip afterExit_Delay, and crossing from the block into the tooltip keeps it open. A tooltip never opens while a focused Popup is open. An inline tooltip is expanded in the scope of the use that holds it, so{{ tooltip }}in it reads that use's values. ATexttakes no pointer events, so theTooltipgoes on the box around it.Tooltip: Name.tdl(a Popup in a file) is not built. ATextin a Popup withAUTOsize needsHeight: AUTO(tre lays out a text with no height at 0). - Clock:
locale(for examplede_DE) names the month and day names, through the C library'sLC_TIMEset around each format and put back at once; a locale the system lacks (locale -a) is warned about once and the default names are used.tooltip_format(default%A, %d %B %Y) is the text of the tooltip the shipped layout opens on the clock ({{ tooltip }}); the Clock sends it with the time. - A Panel's
Animation { Type: SLIDE | FADE | NONE, Duration }(M3b):FADEruns the surface's opacity,SLIDEalso moves its margin 24 px toward the edge it grows from (its target, or its anchored edge) so it never covers a neighbour; tre runs both in the engine. A Panel that is hidden while it leaves turns round from where it is; a leaving Panel takes no pointer at once; with the desktop's reduced-motion setting nothing moves. A Panel that does not name anAnimationdoes not animate. - A Panel's own events (M3b):
On_OpenandOn_Closerun when the request is made,On_VisibleandOn_Hiddenwhen it has happened (after the animation),On_Toggleon a Toggle,On_Anim_StartandOn_Anim_End. A shell file's handlers are the shell's actions (Show,Hide,Togglewith aTarget); a handler loop is stopped after eight turns and logged. Movable: trueon a Panel (M3b): the whole body is a drag handle (tre moves the margins of the anchored edges, clamped to the output, with no Python in the loop); when the button goes up the position is saved inregistry.jsonas anInsetand used at the next start. A floating Movable Panel is anchored top and left and starts centred. A saved position is kept on the output.MovablewithAttach_Tois an error.- A Panel attached to a module follows it: tre's
layoutevent on the module's root block places the Panel again when the module is laid out or changes size. -
A Popup draws no shadow for now (KWin check, 2026-11-06): its transparent shadow margin made KWin place a popup about 30 px from the screen edge and off the caller's edge, and took clicks, because tre cannot yet say which part of a popup is its body (TRE-REQ-007). An
ElevationorShadowson a Popup is ignored with one warning. An Escape key handler now closes a focused Popup, since tre's grab did not on KWin. -
Monitor hot-plug (M3c, C4): the shell listens to tre's
output_added,output_removedandoutput_updated. Each one plans the shell again for the new list of outputs (the same monitor matcher as at start, so an output anotherMonitortook stays taken) and compares it with what is running by key and output: a surface of another monitor is not touched; one on a removed output (Bars, Panels, a Popup or tooltip open on them, their timers) is closed and dropped; one on a new output is opened as at start (a Panel'sVisiblestart state, a Movable Panel's saved position clamped to the output); one whose output changed size or scale gets its geometry set live with no new window, and a Popup open on it closes. The modules are brought to the new set of uses by the reload path (use_removedanduse_added, a module with no use left is stopped and started again when one returns).Indexis evaluated again on every change, so aMonitor { Index: 1 }follows whichever screen is second. AMonitor { Index: default }now always carries the output in its surfaces' paths (Main@HDMI-A-1), so a second screen does not rename, and recreate, the first one's; a UID registered for the old path form is registered again.tests/kwin/prepare_m3c_hotplug.pywrites the KWin checklist setup. -
Frame(M3c, C1 and C2): aFrame { }block in aMonitor(one per Monitor) draws a ring around the output and reserves its sides. One painterLayerWindowper output (toplayer, all four anchors,exclusive_zone-1,input_region="auto") draws threepathnodes withhit_shape="painted"(outer border band, fill band, inner border band; each an outer contour and an inner one wound the other way, so the opening is a hole that takes no clicks); one 1 px reserver per side with a thickness has that side's total (thickness, both borders and margin) asexclusive_zoneand takes no input. Keys:ThicknessandMargin(a number, four sides or named sides),Corner_Radius(outer, default 0) andInner_Radius(one number or four corners),Inner_BorderandOuter_Border { Width, Color },Style { Background, Opacity, Border { Width, Color } },Visible,Layer: TOP. A radius the ring cannot hold is reduced with a warning naming the key; a side of 0 is open (no band, border, margin or reserver). Reload sets the zones, redraws the ring and adds or closes a reserver without making the painter again;set_lookre-reads the tokens;Show,HideandTogglewithTarget: <Frame name>close and reopen all of a Frame's windows (its zones are released and restored).Edges,Children,Border_Tile,Meld, gradients, shadows and a PanelAttach_Toa Frame are load errors (not built).tests/kwin/measure_frame.pyandtests/kwin/prepare_m3c_frame.pymeasure the Frame's cost and write the KWin checklist. -
Frame strips and melded Panels (M3c, C3):
Edges { Left | Top | Right | Bottom { Thickness, Padding, Children { ... } } }and a Frame-levelPadding(the space between a strip's children and its sides; an edge's own wins, an edge'sThicknessreplaces the Frame's for its side, both inside the side's reserved total). A strip is hosted in the Frame's painter (Option A): a box placed in the side's band (top and bottom strips own the corner squares and run the full width; left and right strips run between them and lay their children out vertically; text is not rotated). Strip content is bound like a Bar's tree and is aSurfacewhose window is the painter: module uses in it start with the shell's other uses and get live values, hot reload and hot-plug rebuild it by the keyed diff (the painter and the strip nodes are kept), a new look re-resolves its tokens, and Popups and tooltips open beside its blocks.Panel { Meld: true, Attach_To: <Frame>, Attach, Alignment, Depth, Length, Style { Corner_Radius } }(Depthis the extent away from the Frame's edge,Lengththe extent along it;WidthandHeighton a melded Panel, andDepthorLengthon any other Panel, are errors) is drawn in the same surface: the ring and every melded body are onepathcontour with a fillet at each join that uses the Frame'sInner_Radius(by quadrant), the body's own two corners take itsCorner_Radius, the inner border follows the contour, and the reserved zones do not change. A body flush with a corner replaces that corner of the opening; one larger than the opening is clamped; one that overlaps an earlier one, or sits on a side with no thickness, is not drawn (a warning).Show,HideandTogglewithTarget: <Panel>take the body out of the contour and back (no animation);Visible: falsestarts it hidden. AMarginon a melded Panel stops the meld (an error);Hide_After,Movable,Keyboard,Input_Region,AnimationandOn_*events on one, a Panel attached to a Frame withoutMeld, a melded Bar, strip expand, contract and peek stay load errors (not built). The painter's keyboard ison_demandwhen a hosted tree holds a text input andnoneotherwise (v1 has no text-input block, so it is alwaysnone).tests/kwin/measure_frame.py --melds=Nmeasures the one-contour path;tests/kwin/prepare_m3c_strips.pywrites the KWin check. -
Melded Panel animation, events and
Hide_After;Keyboardon the Frame (M3c): a melded Panel takesAnimation { Type: SLIDE | FADE | NONE, Duration },Hide_Afterand the Panel's events with the same semantics as a window Panel (SurfaceManager._fire, the generation guard, a timer of the painter window). SLIDE: while it animates, the ring nodes are drawn without the body (at alpha 1, so they keep the ring's click shape) and ansvgnode draws the ring with the body in it: the document holds the contour at depth 0 and at full depth with the same commands (lines and cubic Béziers, a degenerate cubic where a fillet has radius 0, every coordinate linear in the depth), an<animate attributeName="d">between them is sampled by tre's own clock (animate("svg_time", ...), eased in the engine, no Python per frame), so the body grows out of the band edge with its joins growing with it, and its content translates on the same clock; when it ends the ring nodes take the body back and the svg is hidden (the two renderings are pixel-identical at scale 1, 1.25 and 1.5, tested). FADE draws the ring without the body and the ring with it in the svg, faded in or out. The svg takes no input (hit_testable=False); the ring and strips are drawn above/below it byz_index(ring, morph svg, strip and body content), so a strip's blocks are never covered by a body that animates beneath them. A show during a hide (and the reverse) turns round from the current value;Show,HideandToggleare idempotent; reduced motion andType: NONEare instant; the sliding layer ishit_testable=False, so the part that is out takes no click until it has arrived (the Panel's box and its content do). Animating the path'sdatais not used: tre resamples both contours by length into polylines of 96 points a subpath (corners chamfer at once, the notch smears;tests/kwin/repro_path_morph_resample.py). The join spikes aretests/kwin/spike_join_{a_svg_morph,b_pieces_morph,c_scaled_pieces}.py.Frame { Keyboard: NONE | ON_DEMAND }(defaultNONE,EXCLUSIVEis an error: it would take every key of the desktop) sets the painter's keyboard mode, live on reload with the same painter window, together with the rule that a strip holding a text input also asks foron_demand; the keys the painter receives are logged at DEBUG.Movable,KeyboardandInput_Regionon a melded Panel stay load errors. -
Smoother joins and corners, and demo fixes (M3c, KWin review): the ring's fill and an opaque inner or outer border now overlap (the fill runs 1 px under the border) so the two anti-aliased edges that used to meet on one line no longer let the desktop through as a hairline along the curves (seam pixels were about 75 % opaque, now opaque; a translucent border or a translucent Frame keeps the old abutting edges); a ring with a melded body is written as cubic Béziers (kappa) instead of arcs, with a test that a fillet's midpoint lies on the arc and not on the chord.
tests/kwin/prepare_m3c_hotplug.py's check script ignores the shell's ownclosed (stopped)at exit and now fails a run with no unplug; the Menu_Button demo and the Dock centre their text withAlign_Items/Justify_Content: CENTERandWidth/Height: AUTOon the Text. - Moved to tesserae-engine 0.6.3 (lock only; the range
>=0.6.0,<0.7already allowed it). 1220 tests pass on it. 0.6.3 addsPopupWindow(geometry=)for TRE-REQ-007, which the shell does not use yet. - Two bridges removed on tre 0.6.2/0.6.3: the binder's
Textwidth default offit-content(tre now measures an unsized text) and the shell's wake after every change to a window (tre #264, TRE-REQ-012). One wake stays,SurfaceManager.start_wake, after an animation is started from a timer: a window whose own timer starts an animation still draws nothing until the loop wakes (measured on 0.6.3: the live Frame slide test failed 8 of 8 without it). The cross-window wake is untested on KWin: see the M3 Build Log retest. - Popups draw their shadow again, on tre 0.6.3's
PopupWindow(geometry=)(TRE-REQ-007): the popup proper is handed to the compositor as the geometry, so it places, flips and slides the body, not the transparent shadow margin. The margin arithmetic in the placement is gone.ElevationandShadowson a Popup work as on a Panel. Whether KWin also stops the margin taking clicks is for the KWin retest. - Moved to tesserae-engine 0.6.4 and raised the floor to
>=0.6.4,<0.7(the shell usesPopupWindow(geometry=)from 0.6.3). 0.6.4 also fixes an animation started by a window's own timer drawing no frames, so the last wake (start_wake) is gone: the shell no longer wakes tre's loop anywhere (the live slide tests passed 8 of 8 without it; 0 of 8 on 0.6.3). 0.6.4 brings the four TRE-REQ-013 mechanisms (transform origin and concave corners, shader animation, structure morph, parametric paths), not used yet. - The melded Panel's join, five ways behind one switch (M3c, Frame > Comparing the Join Options):
settings.tdlDebug { Frame_Join: SMIL | CONCAVE | SHADER | STRUCTURE | PARAM }(defaultSMIL, a restart applies it and a reload warns, as forPanel_Hide) chooses how the join of a melded Panel is drawn while its body slides or fades, so the maintainer can compare the five mechanisms tre 0.6.4 offers; nothing else changes and the default build is the SMIL morph as before. The Frame calls one small interface (surfaces/join.py:Join.begin/play/stop/destroy,JoinRun,ghost) and each option is its own module:SmilJoin(the svg morph, moved out offrame.pyunchanged),join_concave.py(boxes withcorner_style="concave",transform_origin,scale,translateandcorner_radius; a flush end gets a constant fillet that travels with the far edge),join_shader.py(one shader node withsd_round_unionand aShader.animated uniforms,hit_pathof the final shape, analytic edges at anyframe.scale),join_structure.py(pathdatawithmorph="structure") andjoin_param.py(the contour as a path template{c0 + d*c1 + r*c2}withanimate_paramon the depthdand the fillet radiusr).Ringgainedgeometry(BodyGeo: a body as pieces, with its flush ends) andmorph(s, radius)takes the fillets' fraction apart from the depth's. SMIL, STRUCTURE and PARAM draw the same frames; CONCAVE and SHADER draw over the ring (which is not ghosted) and differ by the anti-aliasing of the edge and, in CONCAVE, a thinner border along a fillet in the first frames. A body as deep as the opening cannot be drawn by CONCAVE or SHADER: the Frame says so and shows or hides it at once. Tests:tests/test_frame_anim.pynow runs every test for each option,tests/test_frame_join.py(pop at the start and the end at scale 1.0 and 1.5, turn-round, the same frames as SMIL on all four sides and both flush and free ends, clicks through the contour and the notches, a body across the whole opening, nothing drawn after it),tests/test_ring.py(BodyGeo, the template equals the morph) andtests/test_settings.py.tests/kwin/compare_join.pyprints the comparison on one table (PNG sheets at scale 1 and 1.5, pixel differences from SMIL, hits, code size, and with--livethe frame cost, frames at idle and memory per option, on a private sway with--swayor on the compositor you are on);tests/kwin/prepare_m3c_strips.pywritesrun-strips-join.sh OPTION,compare-join.shand a checklist section;tests/kwin/repro_shader_animate_start.pyandrepro_concave_stroke.pyare repros of two tre limits. -
Debug { Frame_Join }now defaults toPARAM(the maintainer's choice after comparing the five on KWin: PARAM, SMIL, STRUCTURE, SHADER, CONCAVE); the other four stay selectable and none was removed.DebugSettings.frame_joinandSurfaceManager(join_mode=)default toPARAM; README and the KWin generators say so. Border width on curves (maintainer: "the border looks slightly thinner while rounding"): measured, not changed. At rest the band is exactlyInner_Border.Widthfrom its outer contour all the way round (max error 0.005 px, joins and corners included) and the coverage tre draws on every curve equals the exact band's to within 2 % at scales 1.0, 1.25 and 1.5 (live on a private sway as well), so the width is right; what is thinner is the look of an anti-aliased edge of a light line on a dark ground, which tre blends in sRGB (straight 2.00, curve 1.70 at scale 1 and 1.80 at 1.5 as summed linear-light brightness;tests/kwin/repro_srgb_edge_blend.py).tests/test_border_width.pypins the exact parts. While a join grows the border is up to 20 % thicker at the fillet (2.4 px at half way), never thinner; not changed. -
Peek (M3c, maintainer's request):
Peek { Size, Enter_Delay, Exit_Delay }(defaults 24 px, 150 ms, 300 ms) as a block key of a melded Panel and of anEdgesentry;Nameon anEdgesentry (the target ofShow,HideandToggle, accepted withPeekonly). A melded Panel with a Peek rests as a tab: the ring draws its bodySizepx deep (radii that do not fit the tab are reduced by the same rule as at full depth), the Panel's clip box is the tab and takes the pointer, its content is not shown.pointer_enteron the clip box forEnter_Delayms starts the show (tab to full depth along the same contour, the fillets and the border following: the join blends the tab's contour with the body's, both with the same commands),pointer_leaveforExit_Delayms the hide back to the tab; each waits on a timer of the painter and a quick in-out or out-in cancels it.Showis fully out,HideandHide_Afterback to the tab (aVisible: falsePanel goes back to nothing),Toggleflips; events as for any melded Panel;Hide_Afterwaits while the pointer is on the body; the body stays out while a Popup hanging off it is open; a FADE Panel peeks by the contour like SLIDE; reduced motion andType: NONEswitch at once. A strip with a Peek rests as a sliver ofSizepx (the side's thickness and reserved zone), itsThicknessis the whole: the part beyond the sliver is a melded body that runs the whole side (the ring's contour, join and hit shape follow it), the children are laid out in the whole band, clipped to it and shown only while it is out, sliding with the contour, for 200 ms. The reserved zones never change with the peek. A peeking Panel needs a join that can start from a tab: PARAM, SMIL and STRUCTURE; SHADER and CONCAVE log one warning per option and a Panel that peeks is drawn with PARAM. Load errors:Sizebelow 1 px, a negative delay,Sizenot below the Depth or the strip's Thickness (a percentage Depth is checked at planning),Peekon a Panel withoutMeld,Peekon a strip without Children,Nameon a strip withoutPeek, unknown keys with the nearest names. Tests:test_frame_peek.py,test_frame_peek_strip.py,test_frame_peek_schema.py,test_frame_peek_live.py; the KWin checklist has a Peek section (variant C,run-peek.sh). -
Moved to tesserae-engine 0.6.5 (floor
>=0.6.5,<0.7):PopupWindow(input_region=)(TRE-REQ-014). A shadowed Popup now gives the pointer to its body only (input_region="geometry"), so a click in the shadow margin reaches the window below. A margin click over the shell's own windows is still that window's, not a dismissal. Not yet looked at on KWin. -
Peek triggers and handles (M3c, Frame > Peek Triggers and Handles, decided 2026-11-07):
Peek { Trigger: HOVER | CLICK | DRAG, Handle: AUTO | NONE | DOTS | BAR | CHEVRON, Slide_From }on melded Panels andEdgesentries (strips take Trigger and Handle; Slide_From on a strip is an error). A list for Trigger or Handle is a not-built error; Enter_Delay and Exit_Delay with CLICK or DRAG are a load warning (they are ignored). CLICK: a click on the tab, or on the far strip of the open body where the handle is, toggles it. DRAG: pointer_down on the tab captures the pointer (capture_pointer), the first move past 4 px starts the join drawing the body and each pointer_move sets its progress (Join.seek: PARAMset(params=), SMILsvg_time, STRUCTURE the blended path data; the content's translate and the handle with it), pointer_up finishes to the nearer end at 50 % from where it is, over a time in proportion to what is left; under 4 px is a click. SHADER and CONCAVE cannot be set at a progress, so a dragged host takes PARAM (one warning per reason). Events fire once at the release (On_Open or On_Close, On_Anim_Start, On_Anim_End, On_Visible or On_Hidden) and not at all if it ends where it began. The handle (surfaces/handle.py): the maintainer's three icons (made for Tesserae Shell; flattened copies ship inshipped/Handles/, with a NOTICE, and a test keeps their numbers equal tohandle.py's):tess_shell_dots.svgthree filled 6 px circles centred 8 px apart in a 24 x 8 box (nodes),tess_shell_bar.svgone 22 x 4 px bar with elliptical corners 1.5 x 1.0 (a path, since a box's corner radius is circular), and the chevron (tess_shell_chevron.svg, flattened: a filled triangle 22 x 6.73 px, no stroke) as a path template with a parameterp(animate_param, on the slide's clock and easing; the triangle has no area at p = 0.5, so it shrinks to nothing and grows back the other way) that points away from the Frame at rest and towards it when out; in a holder that takes no input, placed at the middle of the tab and moved with the far edge bytranslate; the Frame's inner border colour (else outer, else light or dark by the fill), 60 % opaque and full while the pointer is on the tab. Not drawn (one DEBUG line) when the tab Size or the side is thinner than 8 px (dots, bar, chevron): named constantsMIN_THICKNESS.Slide_Fromfor a corner Panel (Alignment START or END) slides it out of the other edge it touches: the body is the same rectangle, its Length becomes the depth; an edge it does not touch is an error. Tests:test_frame_handles.py(59), schema tests intest_frame_peek_schema.py, a live handle test; the KWin peek demo has the four triggers and handles. -
Fix: a new desktop look (light or dark) arriving while a melded Panel or strip slides no longer leaves the join in the old colours until it ends:
set_looksettles a running slide at once (the ring then draws the body in the new look). Tests (test_frame_peek_theme.py) cover the Frame's fill and border, a peeking Panel's content and text, a strip's content and the handle colour across a switch from dark to light and back at the tab, out and mid-slide, and that a button in an open body runs its own action without toggling the peek. The KWin peek demo now uses theme tokens ($color.surface,$color.primary,$color.on_surface, ...) andFollow_Desktop: true, has a labelled button in the Dock, Notes and Tray bodies, andtoggle-thin.sh(every Peek Size 7). - M3 (more surfaces) is complete and accepted by the maintainer after a final KWin pass (2026-11-08). Not built, waiting on specs: handle opacity and content fade, keyboard-only access, a Bar melded to a Frame, strip expand and contract.
-
The shell's shared converters now come from
tess_utils, the compiled file of the private tess-utils repository (v0.1.1), carried insrc/tess_shell/_vendor/with its type stub andVENDORED.json(tag, version, SHA-256 of each file).binder/convert.pykeeps the typedValue/BindErrorwrapping and hands the colour forms (now alsorgb()andtransparent), four-sided values and their order, corner radii and enum words to it.tools/vendor_utils.py synccopies a release in (the latest release, a tag, or a local build; it checks each file against the release stamp and the stamp against this Python),checkis the drift check, andtests/test_vendor.pyruns it. The wheel now carries a compiled file, so it is a platform wheel (cp314-cp314-linux_x86_64; a PyPI upload needs a manylinux tag, an M7 matter). -
The Frame's ring in linear light,
settings.tdlDebug { Frame_Blend: SRGB | LINEAR }(defaultSRGB: the path build, unchanged and pixel-identical; parsed and applied likeFrame_Join: a restart applies it and a reload warns; TRE-REQ-015, the maintainer's option 2, an interim before any engine change). tre blends the anti-aliased edge of a path in sRGB, so a light 2 px border on the dark ring is thinner to the eye on a curve (summed linear light 1.69 of 2.00 at 1x, 1.79 at 1.5x).LINEARreplaces the three path nodes by oneboxnode painted by a WGSL fill shader (surfaces/frame_shader.py,Ring.contoursfor the numbers) that draws the outer border, the fill and the inner border as signed distance fields and composites them in linear light, writing the encoded result; the node is below the strips, the melded Panels' content and the handles as the paths were. Melded bodies are in the same field: the opening is the outside of its rounded rectangle with each body joined bysd_round_union(an exact fillet at the joins, and at a corner the body runs into, the fillet between its far edge and the side, with that corner's own radius taken off), the inner border and the seal under it are offsets of it, and a body is five uniforms withs, how far out it is, animated byShader.animatewith the join's easing (LinearJoin, the join of the shader ring, PARAM's shape, no nodes of its own; a peek tab is the body at its shallow depth, a drag isseek).hit_pathis the painted contour, set for the body at its full size while it comes out. Measured (tests/test_frame_linear.py,tests/test_frame_linear_live.py): the border's outer edge loses 0.27 px of width at 1x with paths, 0.20 at 1.25x, 0.18 at 1.5x and 0.14 at 2x, and 0.00 with the shader; over a dark desktop the border reads 1.69, 1.79, 1.79 and 1.84 of 2.00 with paths and 1.88, 1.88, 1.93 and 1.94 with the shader, because its inner edge, against the opening, is blended by the compositor in sRGB (the private sway's screenshot gives 1.685 and 1.879 at 1x, 1.791 and 1.927 at 1.5x, the same as the composite the headless tests do). At rest every pixel not within 3 px of a curve is the paths' to 3 levels at 1x and 1.5x (a ring with margins, both borders, an open side, a fill only), a body in 26 places (four sides, either end, the middle, a whole side, a 6 px sliver, radius 0 and 12, an open side, an opening with 32 px corners) has the paths' contour up to anti-aliasing, a slide, a peek's tab and a strip's sliver follow PARAM's frames, the hit shape equals the paths' over a grid, and the reserved zones are the same. A Frame the shader cannot draw keeps the paths and logs one WARNING with the reason: a translucent colour,Opacitybelow 1,Animation: FADE, more than 8 melded bodies (strips that peek count), aFrame_Joinother than PARAM, a painter above 8192 physical px; a body as deep as the opening is drawn with paths while it is there. Two findings about tre 0.6.5 that shaped it: a change of a shader's uniforms alone draws no frame in a window that is still (the ring writes to its node after aset;tests/test_frame_linear_live.pyfails without it), andShader.animate(name, v, 0)is applied but wakes nothing (a uniform moved while another body slides uses 1 ms). Cost on the private sway (software rendering, 1920 x 1080, a 300 ms slide looping): frame total 6.1 ms against 4.9 ms, draw 2.7 ms against 0.5 ms, video memory 18.3 MiB against 10.5, 0 frames at idle in both. KWin:tests/kwin/prepare_m3c_strips.pywritesrun-strips-linear.sh [SRGB|LINEAR]andrun-peek-linear.shand a checklist section;tests/kwin/compare_join.py --blend=LINEARmeasures the cost;tests/kwin/spike_linear_band.pyis the probe (a 2 px band at radius 16/14: 2.00 on the straight, 1.99 on the curve with the shader, 1.69 with a path). - M4a
Enabledand:disabled(A1):Enabled: true|false(a value or a slot) on every block is tre'sdisabled(inverted) and, because tre does not stop input, the shell'sWireblocks the pointer itself: a blocked block (disabled, or under a disabled one) takes nohoveredorpressedstate, runs none of its enter, leave, down or up hooks (so no tooltip opens over it) and swallows the click (itsOn_Clickdoes not run and no block above or behind hears it;pointer_downandpointer_upstill bubble, so a Popup is dismissed by a press on it).:disabledis a built style state, folded by the precedence of:hoveredand:pressedand shown over both; aTexttakes:disabled(and no pointer state). Disabling a hovered or pressed block clears the state and gives back the stored pre-state values, runs theleaveanduphooks, and enabling restores the base; a reload or anupdatethat flips or dropsEnabledsets the node in place (every node is built withdisabled: falsefor that). The D53 warning for:disabledis gone;:focusedstill warns (M6). - M4a
::part(A1): a block in a module's layout may declarePart: track(unique in the module; an error outside a module); a stylesheet ruleModule::part(andModule::part:hovered,:pressed,:disabled) styles that block at every use of the module, folded with the other rules (specificity: a part rule 20, above a class (10) and a module root (5) and below a#name(100)); the module's parts are inModuleDef.parts,check_partsreports a rule naming an undeclared part with the nearest names, and a part takes the module's:disabledwhen the module's root is disabled..class::partand#name::partare skipped with a warning (not built); a part of something that is not a module is an error. The D53 warning for::partis gone. - M4a
Call(A3):On_Click { Action: Call, Target: "Module.action", Key: value }runs the module's@actionwith the other keys inevent.args;Targetmust name a module the shell has (a load error with the nearest names otherwise), and the module host checks after loading that the module is loaded and has the action (check_calls, at start and on reload); an@actionnamed like a built-in action (Show,Hide,Toggle,Close,Call) fails the module's load. An argument may be a{{ }}slot (model/args.py): compiled at load, evaluated when the event fires in a scope ofevent, the use's params and values, theForentries around the block and, in a Popup,caller; a slot that fails is logged at its position and the action does not run.Data { }on an action is a clear not-built error (M4c). - M4a
caller.data(A3): the Popup's content readscaller(module,use.{key,uid,name,monitor,params},rect,data,source): a slot in a shell-file block of a Popup or an inline tooltip is allowed (elsewhere outside a module it is still an error), a module used in a Popup reads it in its layout (UseScope),ctx.popup(name, data=...)passes a plain copy (not plain data: an error and the Popup is not opened) and the D59 warning is gone; no data is an empty mapping and a missing key a runtime warning. - M4a gallery skeleton (A4):
tests/kwin/prepare_m4a_gallery.pywrites/tmp/tess-kwin-m4a(gallery/config,run.sh,check.sh,checklist-m4a.txt): a Panel with Box, FlexBox, Rectangle, SVG, Text and Spacer in each state, aMetermodule with::trackand::fillparts, and aPadmodule whose button runsCallwith arguments and whose Popup readscaller.data; theme tokens only. Tests:test_enabled.py,test_parts.py,test_call.py,test_caller_data.py,test_gallery.py(headless) andtest_gallery_live.py(private sway). - Text fields (M4a, A2, tesserae-engine 0.6.6): the
TextFieldblock is a composition (a box that paints the background and border, a line box, a text that gives the field the height of its lines, and a tretext_inputover it;model/field.pysplits the block before binding). Keys:Text(data in: a module-set text raises noOn_Changed),Placeholder,Multiline,Selection: [start, end],Show_Whitespace,Padding,Wrap: WORD | NONE(multi-line, defaultWORD;CHARis a not-built error),Lines(the height of a multi-line field, default 3),Read_Only,Max_Length(0 is no limit),Password(single-line),Label; styleForeground,Font_*,Background,Border_*,Corner_Radius,Placeholder_ForegroundandOverflow: SCROLL | ELLIPSIS | CLIP(single-line, defaultSCROLL, so a single-line field is always one line; a stylesheet rule may set it). A key that means nothing to the form (Wrapon a single line,OverfloworPasswordon several) is a load warning and has no effect;On_Submiton a multi-line field too. With no look of its own a field takes the theme (raised surface, outline, text colour, body size; primary outline on hover, half opacity when disabled). EventsOn_Changed(event.old,event.new; user edits only),On_Submit(Enter, single-line),On_Text_Commit(event.text: typed, pasted or from an input method). A disabled field takes no pointer, no keys and gives up the focus; a press in its padding focuses it; a module that echoes the typed text back does not move the caret. A Bar or Panel that holds a field and has no keyboard mode takeson_demand(INFO log);EXCLUSIVEis only ever written. - TextInput and TextEditor (M4a): shipped modules over
TextField(no config needed):TextInput { Text, Placeholder, Read_Only, Max_Length, Password, Enabled, Width },TextEditor { Text, Placeholder, Read_Only, Max_Length, Wrap, Lines, Enabled, Width }, with the part::placeholder(Rule { Selector: "TextInput::placeholder", Foreground: ... }). A module call may now carryOn_Changed,On_SubmitandOn_Text_Commit(anyOn_key its root block raises):TextInput { On_Changed { Action: Call, Target: "Search.typed" } }in a shell file, or a bare action name in a module's layout; the handler runs in the module that holds the call.Eventgainedold,newandtext. - M4b display widgets (not committed; see /tmp/frame-review/M4B.md): the standard modules Label, TextBox, ProgressBar, Badge, Marquee_Text, Icon, Image and Expander (shipped, with the Default stylesheet's rules for their parts and their disabled look); a string
Tooltip: "text"(a one-line tooltip Popup, also the block's accessible description); the blocks Bitmap, Circle, Ring and Path (tre paths, hit where painted) and Marquee; the common keys Position, Left/Top/Right/Bottom, Translate_X/Y, Scale, Rotation, Clip_Children, Role, Description, Live, and the accessibility state keys a module sets (Value, Value_Min, Value_Max, Value_Step, Checked, Selected, Expanded); the motion style keysTransition,DurationandEasing(an eased change of a listed key, also to AUTO and to a percentage; reduced motion makes every duration 0); module calls: params as{{ }}slots (evaluated in the caller's scope, followed live),Children { }content placed by aContent { }marker, common block keys forwarded to the module's root block, param typespathandicon; module-root stylesheet keys the root does not take pass to its first inner block that does; Spacer takes no pointer unless it has anOn_Click; decorative blocks areA11y_Hiddenunless they have aLabel. Image decoding:tess_utils.image0.2.0 (carried into_vendor, Pillow lazily imported there; Pillow is a dependency of the shell and nothing here imports it), cached by path and modification time, 4096 x 4096 limit, an error image for a bad file. Gallerytests/kwin/prepare_m4b_gallery.py. - M4c interactive widgets (not committed; see /tmp/frame-review/M4C.md): the standard modules Button, Toggle, Checkbox, Slider, List, Menu and MenuItem, and the block ScrollBox. Pointer only (focus, the focus ring and the keys are M6).
- Controls (
binder/controls.py): a block of a module's layout becomes a control by a key that gives tre nothing (written only in a module's layout, like the accessibility state keys):Toggles: true(a click flips tre'scheckedand raisesOn_Changed),Selection_Mode: SINGLEwithChosen(the block's children, or the children of the one child of a ScrollBox, are entries chosen by a click; an entry'sKey, or the key of itsForrepeater, names it),Slides: HORIZONTAL | VERTICAL(a press jumps and a drag with the pointer captured movesvaluebetweenvalue_minandvalue_maxin steps ofvalue_step; the partsfillandhandlefollow it) andMenu_ItemwithOpens(a menu row). Data in, edits out: the value a module sets (checked,value,Chosen) moves the control and raises nothing; the user's value stays until the module sets a different one, also across a rebuild of the surface.On_Changedcarriesevent.old,event.newandevent.value(Eventgainedvalue;oldandnewmay be a bool or a number).On_Changedon a plain block, or on a module whose root is not a control, is an error. - Flag states:
:checkedand:selectedare built style states (the control sets them; a block with no control takes them from itsCheckedandSelected), weaker than:hovered,:pressedand:disabled; a part takes them from its module's root block, and a state now eases the properties the block lists inTransition(the Toggle's thumb slides, its track changes colour, under the theme's motion duration and at once under reduced motion).Keyis a common block key (aForentry's root block gets its repeater key unless it writes one). - ScrollBox: tre's
scroll_viewas a block (Orientation: VERTICAL | HORIZONTAL,Scroll_Offset); it scrolls its one child by the wheel (more than one child is an error), keys are not built,Scroll_SnapandOn_Scrollare not built. - Button (
Text,Icon,Icon_Position,Label; parts::icon,::label; states hovered, pressed, disabled), Toggle and Checkbox (Checked,Label,Text; parts::track/::thumband::box/::mark/::label), Slider (Value,Min,Max,Step,Orientation; parts::track,::fill,::handle), List (Selected,Selection: NONE | SINGLE; entries styled by a class, the Default stylesheet has.list_item), Menu and MenuItem (Text,Icon,Shortcut_Text,Separator,Submenu; parts::icon,::label,::shortcut,::arrow,::rule). Roles, names and state are set as the Accessibility note says. The look is in the Default stylesheet (theme tokens only). - Show, Toggle and Hide on a Popup:
On_Click { Action: Show, Target: File_Menu, Data { Id: {{ item.id }} } }opens the Popup of the Monitor beside the block that raised the event, withDataascaller.data(a literal or a{{ }}slot per key);Togglecloses it when it is open from there,Hidecloses it.Dataon any other action is an error. - Popup submenus: a Popup opened from a block of an open Popup (a MenuItem with
Submenu: Name, orctx.popup(name, use=<a use inside the Popup>)) is its submenu: a trePopupWindowwhose parent is the open Popup's window, placed to the right of the row (flipped to the left by the compositor when there is no room), up to three levels. A submenu opens on a click on its row and after the pointer rests on it for 250 ms, closes when the pointer rests on another row of the same menu for 300 ms, with its parent (the shell closes it first: tre does not close a submenu with its parent), and on a click elsewhere. Only one submenu is open at a time per level and one root Popup at a time. A click on a row that opens nothing runs its action and then closes every level. Probed on a private sway first: three nested popups open, with the placement the protocol says. - Gallery:
tests/kwin/prepare_m4c_gallery.pywrites/tmp/tess-kwin-m4c-widgets(config,run.sh,check.sh,checklist-m4c.txt);tests/kwin/measure_m4c.pymeasures the frames at rest (0 with the controls, a List and a Menu with two submenus on screen). Tests:test_controls.py,test_menu.py,test_gallery_m4c.py. Tooltip_When_Disabled: true(a common block key, default false; a module call forwards it like the other common keys): the block's tooltip opens although the block is disabled, after the Enter_Delay, as for an enabled one. Nothing else about the block changes: it still shows no:hovered, takes no click and runs none of its other hooks (the tooltip hook is registered asalwayson the wire). Without the key a disabled block opens no tooltip (M4a decision 4, unchanged). The shippedMarquee_Textsets it, so a disabled (or reduced-motion) Marquee cut with an ellipsis shows its whole text as a tooltip (KWin M4b row 5). Fix found on the way: the Marquee's tooltip was writtenTooltip: "{{ params.Text }}"(a quoted string is literal text, so it would have shown{{ params.Text }}); it is nowTooltip: {{ params.Text }}.-
Moved to tesserae-engine 0.6.7 (floor
>=0.6.7,<0.7; TRE-REQ-017): in a text input with awrapset (every multi-line TextField sets one) Up/Down/Home/End/Page keys move by visual row and Shift extends the selection; every text input takes Ctrl+Left/Right/Backspace/Delete by word, Ctrl+Home/End to the start/end of the whole text, Insert for overwrite, a double click for a word and a triple click for the string up to the spaces. The 0.6.6 limit (arrow keys by logical line in a wrapped field) is gone. One test that sent End to reach the end of a wrapped paragraph now sends Ctrl+End. Untested on KWin and with an input method. -
Fix: with
Debug { Frame_Blend: LINEAR }nothing peeked on KWin (hover, click and drag on a tab or a sliver did nothing). Cause: the painter'sinput_region="auto"is the union of the drawn, hit-testable nodes, and a shader node with no paint of its own is not one, whatever itshit_pathsays; the painter's input region was empty, so the compositor never delivered the pointer (a headlessWindow.simulatefollowshit_pathand passed, which hid it). The fill band's path node now holds the painted contour at alpha 1 under the shader (the shader is opaque over it;hit_shape="painted"), the way the ring nodes sit under a ghosting join; the shader node keepshit_pathso a click in the opening still falls through. Found and checked with a real virtual pointer on the private sway (tre'swlr_pointerhelper in tre's environment,tests/live_pointer.py):tests/test_frame_peek_live.pyruns one pointer script (HOVER with its delays and leaving, CLICK, DRAG of a tab, DRAG of a strip's sliver) under SRGB and LINEAR and fails for LINEAR without the fix;tests/test_frame_linear.pygained the same pointer scripts throughsimulate(hover, click on the tab and on the far strip, drag out and back, a strip's sliver by hover and by drag) with equal states under both blends. The shader build's idle and cost numbers are unchanged. -
Debug { Frame_Blend }now defaults toLINEAR(maintainer, 2026-11-12, after the KWin look: the border reads as wide on a curve as on a straight, on every variant).SRGBstays selectable. A Frame the shader cannot draw (aFrame_Joinother thanPARAM, a translucent colour orOpacitybelow 1,Animation: FADE, more than 8 bodies, a painter over 8192 px) still falls back to paths with one warning. The path-build tests now pinblend_mode="SRGB"; the live Frame tests run on the shader. -
Fix: with
Debug { Frame_Blend: LINEAR }a DRAG of a peek did not follow the pointer smoothly on KWin (the content went up and the panel's contour lagged behind). Cause:Join.seekon every pointer move set the body's uniform withShader.animate(name, p, 1); an animation starts on the next tick and each pointer move asks again, so with moves faster than frames it never got to start (headless: after each move and a 16 ms frame the uniform stayed 0 while the drag was at 0.21 to 0.71) while the content, moved by plain node properties, followed at once.RingShader.seek_bodynowsets the uniforms in the call of the move and writes the node so the window draws that frame (the 1 msanimatestays only when another body is sliding, sincesetwould stop it).tests/test_frame_linear.pychecks the uniform equals the drag's progress and the contour's far edge equals the path build's after each frame (fails with the old seek);tests/test_frame_peek_live.pydrags the Tray tab with a real virtual pointer at one move per 2 ms while grabbing the screen and checks contour and content stay together to 2 px under SRGB and LINEAR. On the private sway (software rendering, 60 Hz) I could not make the old code lag visibly (contour/content deviation 1.3 px old, 0.9 new): the stall shows headless; KWin's pointer rate is the difference. -
M5a A1
services/bus.py: oneBusper bus (session, system) on the onedbusthread: the system bus opens on first use only; a dropped connection is retried with a back-off of 1, 2, 4, 8, 16, then 30 s, puts every match rule back, reads every watched name's owner again and runs theBus.on_reconnecthooks (where an owner of a bus name of the shell's own will ask for it again; the shell owns none yet).ServiceThread.sessionis now the sessionBus(it was a coroutine returning the connection). - M5a A2
ctx.dbus(services/api.py,services/layer.py):session()andsystem()give a bus withproxy(name, path, interface):get(from a cache),call(default 5 s timeout;ServiceTimeout,ServiceUnavailable,ServiceError),on_property_changed,on_signal;Bus.run(a future, any thread) andBus.run_blocking(raisesBlockingCallErroron the loop thread and on thedbusthread). At most one warning a minute per service for timeouts and for a service with no owner. - M5a A3 one match rule per (sender, path, interface, member, arg0) however many modules subscribe, removed with the last subscriber (checked on the daemon with a monitor connection).
- M5a A4
NameOwnerChangedwatching: a service that leaves isUNAVAILABLEand giveson_service_lost(name); one that returns is read again (GetAllonce, thenPropertiesChangedonly) and giveson_service_found(name); both hooks reach the loop thread throughcall_soon.Modulehas the two empty hooks. - M5a A5 the empty-state convention: the layer sends
available(boolean) withctx.sendwhen the state of a module's services changes;Childrenwrap inIf {{ available }}(test through a realIf). - M5a A6
tests/fake_dbus.py(a privatedbus-daemon, fake services with settable properties, methods and signals, a name that moves away or a service that restarts, a daemon that restarts, a monitor that counts match rules); the portal tests run on it. A callback on the service thread over 50 ms logs a warning with the module name. Measured: a callback that callsctx.sendtakes p50 7 us and p99 26 us of its own work; a property change reaches the callback in p50 0.23 ms, p99 0.82 ms. -
M5a A7
tests/test_dbus_layer.py,test_dbus_module.py,test_dbus_idle.py: with a connected layer, subscriptions and no signal traffic thedbusthread had 0 loop iterations, 0 kernel timeslices and 0 voluntary context switches in 60 s (pytest -m perf tests/test_dbus_idle.py; a 5 s run is in the suite). The Settings portal reader now runs on the layer, so it follows a restart of the bus daemon too. -
M5b B1
shipped/Battery: the display device of UPower on the system bus (icon, percentage, tooltip with the state and the time left,lowandcriticalfrom UPower's warning level, an optional read-onlyprofilefrom the power-profiles service). Reads once, thenPropertiesChanged; no timer and no thread; a value is sent only when it changed; hidden when UPower is absent orIsPresentis false (nothing is logged). All 24mdiicon names it can send are checked against the shipped set; the icon is oneSVGline per name because a{{ }}slot is not built in aniconparam and a module call is not built insideIf.show_percentparam. - M5b B2
shipped/Workspaces: KWin's virtual desktops (/VirtualDesktopManager, session bus) as a row of buttons; the current one takes the:selectedstate (.workspacerules in the Default stylesheet); a click sets KWin'scurrentthrough the layer without waiting on the loop;label: name|number; an empty name shows the number;desktopsis read asa(uss)ora(iss); refreshes onPropertiesChangedand the three desktop signals; hidden with no KWin. - M5b layer:
Proxy.set(prop, value, signature);proxy(..., optional=True)(not counted inavailable, absence logged at debug); a service that is absent at the first read is an info line, one that leaves is a warning (once a minute);ctx.dbussendsavailablefalse at its first use, and a use added later gets the current value (ModuleContext.send_available). - M5b B3 tests on fake services (
tests/modules_rig.py,test_battery.py,test_workspaces.py,test_modules_idle.py,test_m5b_live.py,test_gallery_m5b.py): per-signal module work p50 7 us and p99 36 us (Battery), p50 15 us and p99 36 us (Workspaces); 0 loop iterations, timeslices and context switches on thedbusthread in 60 s with both modules shown. The private sway's environment now pointsDBUS_SYSTEM_BUS_ADDRESSat a socket that does not exist. -
M5b KWin kit
tests/kwin/prepare_m5b_gallery.py(/tmp/tess-kwin-m5b): the Bar,run.shfor your real buses,run-battery-fake.shwith a fake UPower on a private bus (tests/kwin/fake_upower.py),battery-set.sh,battery-upower.sh,check.shand a 21-linechecklist.txt. -
M5b icon slot:
Icon: {{ icon }}works in anSVGblock and as aniconparam of a module call (theIconmodule,Button,MenuItem), also insideIfandFor: the name a module sends goes through the same icon sets as a name written in a file (model/icons.py, reached throughLook.icons, whichScanfills, so the user'sIconsfolder and a hot reload apply). A change of the name swaps the document in the same SVG node; an unknown name shows theimage-broken-varianticon with one warning naming it (once for each name); an empty name shows nothing; a document (<svg ...) is used as it is. Battery now uses it: its 24If {{ icon == ... }}branches are gone and the icon takes the warning and error colour with the number and the dot. -
M5b hidden modules take no space: Battery and Workspaces have
Visible: {{ available and present }}(available and ready) on their root, so a hidden one leaves no Spacing beside it in the Bar (tested on the nodes' rectangles). tre 0.6.7 keeps the layout space of a node that is built hidden when it also has an explicitdisplay(every FlexBox):View.reindexsetsvisibleonce more on such a node, which takes it out of the layout. -
M5 module call inside
IfandFor(a module's layout; a shell file still has neither). In anIf(andElse) the call is one use that lives as long as the layout around it: only its blocks come and go, its values and state stay. In aForthere is one use for each entry, made when the entry appears, with the key<Module>@<outer use>.<place of the For>.<entry name>.<place of the call>(no source line in it, so editing the file does not make the entries new uses), and ended when the entry goes; the module getsuse_added/use_removedandctx.send(..., use=)reaches the entry. Params written as slots (Clock { format: {{ item.fmt }} }), a handler with an argument slot (On_Click { Action: pick, Id: {{ item.id }} }) andChildrenread the entry's variables; aTooltipis per entry. The keyed diff keeps the other entries' nodes and uses across a reorder, an add or a remove. A module called only inside aForis loaded at start. The uses survive a hot reload, also one that replaces the module's code. Not built: aForcall in a Popup (an error naming it). The call is checked when the file is read (a handler the root cannot raise, a cycle, a missingContent), not on the first entry; module call cycles throughIfandForare now found. -
M5 module call inside a
Forin a Popup: a module in a Popup's content (Popup { Children { TrayMenu { } } }, whereTrayMenu's layout holdsFor e In {{ caller.data.items }} Key {{ e.id }} { MenuItem { Text: {{ e.text }}, On_Click { Action: pick, Id: {{ e.id }} } } }, or a list the module sent) now works: the entries' uses are made when the Popup opens (or when the list changes while it is open) and end when it closes, are replaced by a reload, or when it is replaced by another Popup. The keys follow the same scheme (parent use,Forplace, entry name, call place), so two Popups never collide, and a reopened Popup with other data has new entries. The module hearsuse_added/use_removed; a click on an entry runs its action with the entry's arguments. An entry's use has a root block forctx.popup(a submenu or a menu beside it), in a Popup and in a Bar that has Popups (an omission of the first version: aForentry could not open a Popup). A send to a use that ended lately is a debug line, not an error. Not built: anIf/Forwritten directly in a Popup's own shell-file content (it still needs a module's scope). -
Fix: the Workspaces mark did not follow a desktop change on KWin (Ctrl+F2) and a click back to the previous desktop did nothing (maintainer's KWin check, M5b rows 4 and 5). The module now also reads
currentand the list on KWin'scurrentChangedandcountChangedsignals, and a click always setscurrent(the shell no longer compares it with its possibly stale copy). New test: a KWin that emits onlycurrentChanged. -
Fix (Battery, from the maintainer's KWin check, rows 15 and 16): at
lowandcriticalthe icon was not drawn (the number and the dot were), and the icon-only Battery lost its hover area and tooltip with it. A headless tree and a private sway (scale 1, 1.5, 2, dark and light, the samebattery-set.shorder of changes) draw it, so the cause on KWin was not found; the layout built a new box with a coloured icon each time the level changed (If/Elsearound the box). The three looks are now three boxes that exist from the start, one shown withVisible:: a level change creates and removes no node and never changes an icon's colour, only which box shows and the icons' documents (the same moves as hiding and showing the module, which work on KWin). The Root keeps its size from the box that shows, so the tooltip area does not depend on the icon. Tests: no node is created or removed across normal, low, critical and back; the icon's own pixels in a snapshot have the level's colour; the icon-only Battery keeps its size at every level (the first fails on the old layout). -
Battery icon, second KWin report (rows 15 and 16: "the icon disappeared when the dot was supposed to show up, it reappeared when not"). Still not reproducible: the private sway (scale 1, 1.25, 1.5, 1.75, 2, dark and light) and headless
Windowsnapshots (a dot hidden then shown on a live frame, the row hidden then shown, the dot first, wrapped icon, noForeground) draw the icon in every variant. The dot is no longer a node: an icon name may end in+dot(mdi:battery-10+dot, in a file or sent by a module), which gives the same icon with a dot of the same colour to its right in ONE SVG document (half an icon's height wider;files/icons.py). The Battery sendsicon_alert(the name plus+dot) and its low and critical boxes show it (24 by 16 instead of 16 by 16 and aCircle), so low and critical draw one SVG node and no path node beside it; the dot now takes the icon's colour (it was already the same). Test: the dot is in the icon's document, there is noAlarmnode, and snapshot pixels show the level's colour on the icon and a dot beside it at low and critical and none at normal. - KWin probe
tests/kwin/prepare_m5b_dotprobe.py(writes/tmp/tess-kwin-m5b-dot): one Bar with twelve labelled variants of the low-battery icon (A to L: the icon alone, with a Circle, a rounded Rectangle, the dot first, a bigger dot, a wrapped icon, the normal look, noForeground, the dot inside the SVG document with and withoutForeground, a literal colour in the document, the icon in the text colour), fixed values, no module and no D-Bus; the answer is the letters that lose the icon. -
Fix (M5b kit):
battery-set.sh 15 discharging lowreadlowas the present/absent word, so it made the fake battery ABSENT (the Battery hid: icon and tooltip gone) instead of low; the script now takespresent|absentandnormal|low|criticalin any order after the state and rejects other words. This, not the layout, was the maintainer's rows 15 and 16 failure on KWin. -
M4 decisions of 2026-11-13 (M4 Brief questions 16 to 24, as recommended):
- Q22: a submenu with no
Dataof its own reads thecaller.dataof the Popup that opened it (a copy at open; it was empty). A second level inherits it too. - Q20:
On_Text_Commitis not raised for a commit that left the text as it was (tre raisesinputfor an editMax_Lengthrefused). The wire remembers the text of the last user edit (change, now always listened to: a node has one listener per event) and of the last text the shell set (anupdateor a rebuild), and compares. - Q24: the exception is exact and the key stays. A disabled Marquee box opens its own tooltip by itself, after the Enter_Delay, only while its text is cut with an ellipsis (
tooltip_gate; itsleavestill runs to cancel a tooltip).Tooltip_When_Disabled: true(the common key of 3ecb168) stays for any other block, andMarquee_Textstill writes it; without the key no other disabled block opens a tooltip, and a Marquee that fits has nothing to add whatever the key says. A live test with a real (virtual) pointer on the private sway (tests/test_marquee_tooltip_live.py) checks a cut disabled one, a disabled one that fits, an enabled scrolling one, and an enabled and a disabled block with a tooltip. - Q17:
Keyboard: NONEwritten on a Panel or a Frame that holds a text field is still overridden withon_demand, now with ONE warning at the Panel's or Frame's position naming the surface and the field (PanelDef.keyboard_written,FrameDef.keyboard_written); an unwritten key gets the info line only. - Q16:
Enabledon a module use already forwards to the module's root block, and every block under it is blocked; pinned by a test (it passed before). - Q18: every image decode on the loop thread is timed (
IMAGES.timings, the last 64) and one over 8 ms logs a debug line naming the file (binder/images.py,SLOW_MS). -
Q14 (maintainer, 2026-11-13: the rule as proposed): the parameters of an
@actionmethod aftereventare its arguments. At load,Call(in a shell file, a Popup, a module layout, aForentry) and a bare action name in a module's layout are checked against them: an argument the method does not have is an error at the handler naming it and the nearest parameter (unknown-argument), and a required parameter (no default) with no argument is an error naming it (missing-argument); a{{ }}argument is checked by its name only. The declared arguments arrive as keywords, andevent.argsstays whole. An action with no parameter afterevent(every shipped one, e.g. Workspaces'switch) takes any names unchecked and readsevent.args; one with**kwargstakes any names, gets them as keywords, and still needs its required parameters. One finding for a handler however many uses its layout has. -
M5c, the Network module (
shipped/Network/, Network Module spec accepted 2026-11-13):Network { show_name: false, show_vpn: true }reads NetworkManager on the system bus, read-only, with no timer, no thread and no polling. It followsPropertiesChangedon the manager, on every active connection, on the primary connection's device (DeviceandDevice.Wireless) and on that device's access point, replacing the last three when the primary connection, the device or the access point changes (one match rule per object and interface, removed with its last subscriber). Keys:ready,state(CONNECTED,LIMITED,PORTAL,CONNECTING,DISCONNECTED,DISABLED,UNKNOWN),kind,name,strength,vpn,icon,tooltip,label; a value is sent only when it changed, andstrengthonly when the Wi-Fi step or the tooltip's percent in fives changes. The layout is three boxes that exist from the start (text colour, warning colour forLIMITEDandPORTAL, muted forDISCONNECTED,DISABLEDandUNKNOWN), shown withVisible:, each with one icon and thevpnicon (Visible: {{ params.show_vpn and vpn }}): a change of state creates and removes no node. Hidden only when NetworkManager is absent (Visible: {{ available and ready }}); a disconnected machine showsnetwork-off. Departures from the spec and the gaps it left are in/tmp/frame-review/M5C.md. - Tests for the Network:
tests/fake_nm.py(a fake NetworkManager: the manager, three active connections, two devices, two access points, with the real types),tests/test_network.py(the derivations and 55 tests on the fake bus: wired, Wi-Fi at every step and the 5-rounding, portal, limited, State 50, connecting, VPN on and off, VPN over Wi-Fi, roaming and the old access point no longer heard, the subscriptions replaced on the daemon's monitor, disconnected stays visible, NetworkManager absent, leaving, returning and restarting,show_name,show_vpn, the icon drawn in each state's colour in a snapshot with no node made or lost, a hidden module takes no Bar space, no thread, never writes, per-signal callback time),tests/test_network_idle.py(5 s in the suite, 60 s markedperf),tests/test_m5c_live.py(a private sway,grim),tests/test_gallery_m5c.py. - Fix (D-Bus layer, found by the Network's tests): a
PropertiesChangedthat arrived while the firstGetAllof an interface was in flight could be lost: the signal is handled before the coroutine that awaits the reply resumes, and the reply, read before that change, replaced the cache. A module that changed two properties right after it started (the fake NetworkManager'sActiveConnectionsandPrimaryConnection) was left with half of the update in about one run in twelve. The cache now keeps the changes that arrive during a read and puts them on top of the reply (_Cache._pending); a test models the race directly. -
KWin kit for the Network (
tests/kwin/prepare_m5c_gallery.pywrites/tmp/tess-kwin-m5c):run.shon the real buses (read-only),run-fake.shwith a private bus and a fake NetworkManager (tests/kwin/fake_nm.py),network-set.sh(the words wired, wifi, none, a strength, vpn, novpn, online, limited, portal, local, connecting, disabled, ap1, ap2, wifioff, wifion, in any order; any other word is refused and nothing changes),network-nm.sh away|back,check.shand onechecklist.txt(24 lines). The test runs every command line of the checklist against the real fake, in order. -
Peek { Handle_Opacity }and the content fade (Frame > Peek Triggers and Handles, accepted 2026-11-08).Handle_Opacityis a number from 0 to 1, default 0.6 (the oldREST_OPACITY), on a Panel's or a strip's Peek: the handle's opacity at rest (Handle.rest; hover raises it to 1 and leaving returns to it; a reload changes it in place); outside 0 to 1 is a load error and it does not warn with CLICK or DRAG.Content_Fade(default true; a key of a melded Panel and of anEdgesentry; a load warning on a Panel in a window of its own, which fades its whole surface already) makes the content's opacity the slide's progress:_begin_motionsets the mover's opacity to the start of the slide,_runanimates it on the contour's clock and easing (the samemsandeasingas the translate and the join, so opacity = progress at every frame, a turn round retargets both from where they are) and_seekwrites the content's place and its opacity in onemover.setin the same call asJoin.seek(the PARAMparams, the SMILsvg_time, the STRUCTURE path or theRingShader.seek_bodyuniforms), underFrame_Blend: SRGBandLINEAR. It applies to a peek's tab-to-body slide, a drag, and a plain show and hide of a melded Panel; a strip's children fade with their strip; the tab still shows no content (the container is hidden at rest). Reduced motion has no fade (a drag still follows the pointer, opaque).Type: FADEandType: NONEare as before. No new wakes or timers: idle draws no frame (a test counts them headless and on the private sway for both blends). An Expander's content fade was built with the Expander (Content_Fademodule parameter). Tests:test_frame_fade.py(26), schema tests, live drag with the real pointer measuring the dot's colour against the contour under SRGB and LINEAR, live idle frames. -
M5d, the Media module (
shipped/Media/, Media Module spec accepted 2026-11-13):Media { show_art, show_title, show_controls, show_position, max_width }finds the MPRIS players on the session bus by prefix (oneListNamesand oneNameOwnerChangedrule, no polling), followsPropertiesChangedandSeekedof each, chooses one by the spec's four rules (playing, most recently started; else the one shown before; else the paused one that changed last; stopped with no title never), counts aplasma-browser-integrationplayer and a chromium or firefox player of the same browser as one (the integration one is shown), and hides with no player (Visible: {{ available and has_player }}, no Bar space). Previous, play or pause and next areButtons (disabled when the player cannot, orCanControlis false), the title aMarquee_Text, optionally anImage(the cover: afile://URL whose file exists; a web address or a missing file shows the placeholder music note, one debug line, no request) and aSlider. A click is a call throughbus.run(PlayPause,Next,Previous; a released sliderSetPosition(trackid, microseconds)) and the look changes only when the player's own signal says so; a failed call is logged once a minute per player. The position is the storedPositionplus the elapsed time timesRate(read again on a change of status, track or rate, and onSeeked); a one-secondon_tickexists only while the shown player plays and a use shows the position, so with none there is no timer and nothing wakes. No node is created or removed by a state change. Departures from the spec are in/tmp/frame-review/M5D.md. - D-Bus layer additions for the Media (
Bus.watch_prefix(prefix, on_added, on_removed)andBus.forget(name);services/bus.py,layer.py,api.py): the prefix watch is oneNameOwnerChangedrule byarg0namespaceand oneListNames, shared by every module that asks, and is listed again, with the names that went told as gone, after a reconnect;availableis the bus being reachable (a pseudo service of the prefix), not the players, so a player that leaves (a proxy made withoptional=True) never makes the module unavailable;forgetlets go of a name's watch and cached properties once its player is gone.MatchKeytakesarg0namespace. - Fix (found with the Media): a common key written on a module call and placed on its root block (
Button { Enabled: {{ can_next }} },Marquee_Text { Width: {{ params.max_width }} }) read the callee's scope and failed with "not defined"; it now reads the scope of the module that holds the call and follows its values (SlotValue.use, set in_forward; read inLiveTree._slot). A key written in a shell file is unchanged. Not covered: aForloop variable in such a slot (the handler arguments have the same limit). - Tests and kit for the Media:
tests/fake_mpris.py(fake MPRIS players with the real types),tests/test_media.py(the choice rule, the duplicate rule, every acceptance bullet on fake players, pixels and nodes in the real binder, no thread, the layer forgetting a player, per-signal callback time),tests/test_dbus_prefix.py,tests/test_call_common_slots.py,tests/test_media_idle.py(5 s in the suite, 60 s markedperf: zerodbuswake-ups in every scenario, and the time source wakes once a second only while playing with the position shown),tests/test_media_live.py(a private sway, a real pointer click on play and next), and the KWin kittests/kwin/prepare_m5d_gallery.py(writes/tmp/tess-kwin-m5d:run.shon the real session bus,run-fake.shwith fake players that behave like real ones,media-set.shtaking its words in any order and refusing any other,check.sh, onechecklist.txtof 22 lines) withtests/test_gallery_m5d.pyrunning every command line of the checklist against the real fake with the realbusctl. - T-023
On_Releasedon the Slider (D-018):Slider { On_Released { Action: ... } }(a call in a shell file or a module's layout; a bare action name in a module's layout) is raised once per press on the slider, when the press ends: the button goes up on the slider, or anywhere else because the pointer is captured, or the press is taken for a window move (pointer_cancel), or the slider is disabled while it is held.event.value(andevent.new) is the final value,event.oldthe value when the press began; a click on the track gives oneOn_Changedand then oneOn_Released, a press that moves nothing onlyOn_Released(same two values).On_Changedis raised as before, for each new value while the pointer moves. A keyboard step is M6 (the Slider has no key handling yet). The event key is inEVENT_KEYSandCONTROL_EVENTS(only a block withSlidesraises it; on a Toggle, Checkbox, List, a plain block or a shell file's block it is the usual "does not raise On_Released" error); the Call argument check (unknown-argument,missing-argument) applies to its handler as to any. Media: the seek is now sent fromOn_Released { Action: release, position: {{ event.value }} }(it wasOn_Click, which a drag released outside the slider does not raise); a press that moved nothing seeks nowhere, the position display waits while the handle is held, as before. Tests:test_controls.py(7 new),test_media.py(a release outside, a touch),test_slider_released_live.py(a real virtual pointer on a private sway). -
Test safety (T-025): a bare
pytestrun withWAYLAND_DISPLAYorDISPLAYset is refused (exit 3) unlessTESS_SHELL_TESTS_REAL_SESSION=1; the pytest process loses the real session bus, points the system bus at a missing socket and gets private runtime, state and config directories; the private sway process no longer inherits the real session bus address. Run the suite asenv -u WAYLAND_DISPLAY -u DISPLAY uv run pytest. -
T-014 schema export:
tesserae-shell schema --json [--out FILE]prints, or writes, the shell's schema as JSON for the tess-ui configuration application (schema_version1.0).tess_shell.schema.export(schema_json(),schema_dict()) walks the tables the loader uses (schema/blocks.py, the surface key tables ofschema/shell.py,config/settings.py, the shippedDefaulttheme and stylesheet, the defaults of the typed model), so the export lists every key the loader accepts and no other, with its kind (and the range, units, choices, theme tokens it takes), whether a{{ }}slot is read, its default (null where the model states none), whether it is built, a form group and a line of documentation.rootsholds the shell file's surfaces (Shell, Monitor, Bar, Panel, Popup, Tooltip, Frame, Edges, Edge, Border, Animation, Peek, Shadow, ...) and the other files' blocks (Stylesheet, Rule, Style, Class, Module, Param),blocksthe 13 block types,settingsthesettings.tdlkeys, plusevents,actions,enumsandtokens(the Default theme, with the modes that override each). The authored text (a doc line for every key, groups, units, examples) isschema/docs.py;tests/test_schema_export.pyputs every exported key, enum choice, default and example into files and asks the loader, probes a pool of words for keys the export lacks, checks that no doc line is stale and that two runs, even with another hash seed, give the same bytes.tests/test_imports.pygivesschema.exportits own import rule. - T-026 schema 1.1 (
schema_version"1.1", additive): (1) a key'sdefaultis read from tre:binder/defaults.pybuilds each block bare on a headless window through the binder and reads every tre property a key sets withnode.get, written as the key's own text (true,RELATIVE,AUTO,"#00000000",[l, t, r, b]); a few shell-owned keys with no tre property (Easing,Toggles,Selection_Mode,Slides,Menu_Item) have an authored default inschema/docs.pywith its reason, andDurationisbinder.motion.DEFAULT_DURATION; each is pinned by a test, and writing a default changes no tre property. (2) Ranges:schema/ranges.pyis the one table thatschema/values.py(coerce,from_pythonfor slots,named_sides) judges by and the export reports asmin/max:OpacityandHandle_Opacity0 to 1,Scale,Font_Size,Line_Height,Aspect_Ratio,SpeedandDiameterabove 0,Flex_Grow,Flex_Shrink,Border_Width,Hide_After, Popup delays, lengths, bounds, sides and radii 0 or more (a Panel'sInsetmay be negative),Font_Weight1 to 1000; an out-of-range value is a finding at its line naming the range (the loader's old hard-coded range checks and_frame_sidesare gone). (3) Every key haspreferred_tokens(docs.PREFERRED_TOKENS, a colour key getscolor), next to the mechanicaltokens. (5)modules: every shipped module with its params (type, kind, default, doc, required), the events a call may handle, the common keys it may write and its@actions (read from the module's source, not imported). (7) The tables the export reads are public (BAR_KEYS,BAR_CHOICES,PEEK_WORDS,IMAGE_SUFFIXES,token_kind, theconfig.settingskey tuples); the private names are gone. - T-018 audio access spike (
tests/spikes/audio/, not collected by pytest, run only under abwrapsandbox against a private PipeWire stack): four routes measured (native PulseAudio protocol client, pulsectl-asyncio,pactl subscribe,pw-dump --monitor); recommendation and numbers in the M5 Build Log. - T-029 pointer events:
On_Secondary_Click(the secondary button,event.button == "secondary", never runs anOn_Click) andOn_Scroll(one wheel step,event.delta+1 scrolling down and -1 scrolling up; a sideways wheel raises nothing) on every block that takesOn_Click, in a module's layout and in a shell file, with the same swallow rule as the click (a disabled block raises neither and hides the event from blocks above it; the nearest block with the handler takes the event alone, a block without one lets a wheel bubble to the ancestor that has it).Event.deltais new intess_shell.module;event.deltaandevent.buttonread in a handler argument slot likeevent.value. The schema export lists both keys with an authored doc line. - T-029 sound client (
services/pulse_native.py): the shell's own client of the PulseAudio native protocol (whatpipewire-pulseand PulseAudio speak), standard library only: AUTH with the protocol version negotiated from the reply (13 to 35; fields read per version, port types from 34),SET_CLIENT_NAME,SUBSCRIBEand its events, server, sink and source info in one round trip, set sink volume and mute, set source mute, set the default sink;scaledsets a mean volume and keeps the balance between channels;default_socketandread_cookietake the environment as an argument (a zero cookie first, the user's cookie file when it is refused). Decisions D-027 and D-028, ADR-0021. - T-029 sound service and
ctx.audio(services/audio.py,services/api.py): oneAudioServiceon thedbusservice thread's loop owns the connection and hands each module anAudioState(default output volume, mute, name and kind, default input mute, the outputs) when it differs from the last; setters (set_volume,step,set_muted,toggle_mute,toggle_mic,set_output) return futures at once, the volume clamps to 0 to 100, steps that follow each other before the server's event add up, a failure is logged once a minute per module. No timer: with no server it watches the socket's folder with inotify (the nearest folder that exists) and retries on a create; while connected it holds no watch. Idle: 0 timeslices and 0 voluntary switches over 5 s and over 60 s. - T-029 Audio module (
shipped/Audio,shipped/Audio_Outputs):Audio { show_percent, show_slider, show_mic, step }shows the default output (icon by kind, level and mute; muted colour), a click mutes, scroll steps the volume bystep, a secondary click opens the PopupAudio_Outputs(a module with a Menu of the outputs and a dot on the default one), the slider writes at most 20 times a second while dragged and the final value on release, a crossed-microphone mark while the input is muted; hidden (no space) when there is no sound server and back when it starts or restarts. - T-029 tests:
tests/fake_pulse.py(an in-process PulseAudio server on a unix socket under a temporary path, per-version encoders, events, restart and stale-socket simulation) withtest_pulse_native.py,test_audio_service.py(kind lookup, reconnect, cookie, idle) andtest_audio_module.py; the conftest removesPULSE_*andPIPEWIRE_*from the environment, anddefault_socketnames a socket that does not exist in every test. Tests against a private PipeWire stack (tests/test_audio_sandbox.py, markeraudio_sandbox, deselected by default) run only throughpython -m tests.spikes.audio.run_sandbox_tests, which re-executes underbwrap. - T-029 KWin kit
tests/kwin/prepare_m5e_gallery.py(/tmp/tess-kwin-m5e):run.shon the real sound server (the checklist marks every line that changes the real volume, mute, default output or microphone mute and asks to note and restore them),run-fake.shon a private fake server,audio-set.sh(words in any order, unknown words refused),audio-server.sh away|back, onechecklist.txt;tests/test_gallery_m5e.pyruns every command line against the fake. check --jsonandversion --jsonnow carryconfig_dir, the folder the answer is about (--config-dir, else the XDG one). Recorded outputs ofschema --json(1.1),check --json(a clean folder and one with a finding) andversion --jsonare intests/fixtures/cli/for tools that never run the shell (the configuration application);tests/test_cli_fixtures.pyfails when one no longer equals what the command prints (rewrite withpython -m tests.cli_fixtures).status --jsonhas no fixture:statusis not built yet.-
Test: a module that echoes the typed text back (
Text: {{ value }}) does not make typing after Home jump to the end (tess-ui found that tre'sset(text=<what the input holds>)moves the caret). The binder already skipped an equal set on both paths (the property update and the keyed rebuild);tests/test_textfield.pynow pins both with Home, two typed characters and an echo after each, and fails if either guard is removed. The shell does not rely on tre making an identical set a no-op. -
T-030
Bus.own_name(name)/release_name(services/bus.py): the shell owns a well-known name (DO_NOT_QUEUE), asks again after a reconnect throughBus.on_reconnect, one warning if it was taken meanwhile. For the shell's own services only:ctx.dbushas no way to take a name (tested). A call argument of typevis written("s", "")so a module needs nodbus_fast. - T-030
services/icons.pyandctx.icons(theme_icon(name, size, theme_path),pixmap_icon,png_icon): the freedesktop icon theme lookup (index.theme,Inherits,hicolor,/usr/share/pixmaps, an item'sIconThemePath; SVG preferred, else the png nearest above the size; the user's theme fromkdeglobals), each theme chain indexed once, a lookup after that reads no folder (cache by name, size, theme path and the file's modification time), ARGB32 pixmaps to RGBA. The result is an SVG document orpixels:<digest>, decoded pixels the binder registers (ImageCache.register) and a Bitmap'sSourceand anIcon:slot accept; never a path. Shared later with Tasks and the launcher. - T-030
services/tray.pyandctx.tray.on_host: the shell is a second StatusNotifier host: it ownsorg.kde.StatusNotifierHost-<pid>(-<pid>-1,-<pid>-2when taken, then one error), registers it with the watcher and again when the watcher or the bus comes back, never starts a watcher (one warning with none), gives the name up with its last subscriber. - T-030
Traymodule (shipped/Tray,Tray_Item,Tray_Menu): one icon per item in the order of registration,Passivehidden unlessshow_passive, the attention icon and the:selectedlook forNeedsAttention, tooltip,Activate,SecondaryActivate(middle click),Scroll(wheel, Qt units),ContextMenuwhen there is no menu, anItemIsMenuclick opens the menu,New*signals followed by a fresh read, an item that loses its name is removed, empty and hidden with no watcher; the item'scom.canonical.dbusmenuis drawn by the shell in the PopupsTray_Menu,Tray_Menu_2andTray_Menu_3(three levels, labels without mnemonics, separators, check and radio marks, disabled, shortcuts, icons;AboutToShowandGetLayoutbefore the first draw;Event(id, "clicked")once and the menu closes;LayoutUpdatedrebuilds the open menu; an item that leaves closes it). Icon files are read on a worker thread. - T-030
On_Middle_Click(a middle press and release on the block;event.button == "middle"and the pointer's position);ctx.call_soon(fn)andctx.is_popup_open(name)for a module whose work ends on another thread;MenuItemhas a paramId(a text a submenu reads ascaller.use.params.Id). - T-030 fixes found with the menu: a key written on a module call inside a
For(MenuItem { Enabled: {{ e.enabled }} }) now reads the entry's variables; a submenu opened from a row of aForhas that row's use ascaller.use(it was theforprefix of the block id). - T-030 tests:
fake_sni.py(a fake watcher, items and dbusmenu on a private bus),icon_theme.py(a temporary theme folder),test_icon_service.py,test_dbus_own_name.py,test_tray_host.py,test_tray_module.py,test_tray_idle.py(5 s in the suite, 60 s underperf: no wake-up),test_tray_live.py(private sway and its virtual pointer),test_icon_refs.py. KWin kittests/kwin/prepare_m5f_gallery.py(/tmp/tess-kwin-m5f):run.shon the real session bus (the checklist marks every line that calls a real application or runs a real menu entry),run-fake.shon a private bus withtests/kwin/fake_tray.py,tray-set.sh(words in any order, unknown words refused), onechecklist.txt;tests/test_gallery_m5f.pyruns every command line against the fakes. -
Fix: the audio service no longer lets an EARLIER step's echo from the sound server clear the written volume (a fast run of steps could start the next step from a stale value and end off); the written volume stays the base until the server shows it or one second passes (an intermittent failure of
test_steps_that_come_before_the_servers_event_add_upin full runs). -
T-028 range checks: (1) a value that arrives through a theme token is judged by the range of the key it fills:
model/look._ref_valuepasses the key tocoerce, soOpacity: $space.step_1(2) orFont_Weight: $xoutside 1 to 1000 is abad-tokenfinding at the use site,Opacity: $space.step_1 cannot be used here: expected a number, from 0 to 1, found 2, withdefined at <theme file:line>as its hint, incheckand when the look resolves (the key keeps its default); the Light/High_Contrast overrides are the same tokens, so they go through it too, and the theme reader already judges a token written under a key of its own (Font_Weight).tests/test_token_ranges.pyalso resolves every token that the shipped stylesheets, styles and modules use, in every mode of the Default theme: none fails. (2) The Peek (Size1 or more; delays;Handle_Opacity0 to 1), an Edge'sThickness, a Frame border'sWidthand a Shadow'sBlurare checked byschema/ranges.pytoo (keys listed asPeek.Size,Edge.Thickness,Border.Width,Shadow.Blur,ranges.scoped), with its wording (Size: expected a number, 1 or more, found 0); the in-place checks and the export-only kindspeek_size,non_negative,non_negative_msare gone. A Panel'sInsetstays negative-capable.tests/fixtures/cli/schema.jsonregenerated. - Expander
On_Changed(M4 owed item): a call of the Expander may writeOn_Changed; it is raised when an opening or a closing has finished (event.valueis true when open;event.old,event.new), also when the module's own value changedExpanded; with nothing to ease (reduced motion,Duration: 0) it is raised at once; an opening reversed half-way raises only the finish that happens. New layout keyReveals: OPEN | CLOSED | NONE(module layouts only, no tre property;binder.controls.Expand), schema export and fixture regenerated. - T-035 control interface (server):
services/control.pyexportsio.github.mindderivative.TesseraeShell//io/github/mindderivative/TesseraeShell/...TesseraeShell1on thedbusthread (methodsReload,Quit,Status,Show,Hide,Toggle,ClosePopup,Call,SetLogLevel; propertiesState,Version,ApiVersion; signalsReloaded,ErrorReported,SurfaceChanged). The name is taken withBus.own_name(DO_NOT_QUEUE); an owned name means another shell runs and the shell exits 4; a reconnect exports and asks for the name again. A handler never touches a node: it queues the command to the loop withcall_soonand waits five seconds (a stuck loop answers with theTimeouterror);Quitalso stops the engine from the service thread.Settings { Control: false }(new key, default true) exports nothing; the settings docs table and the schema export (1.1) list it. - T-035 commands (loop side,
commands.py):Statusis names, kinds and flags only (never a param value or a log line);Show/Hide/Toggleon a Panel, a Frame or a melded Panel byName, idempotent, a Bar cannot be hidden, an unknown name or a Popup is an error with the nearest names;Callruns only@actionmethods with the signature binding ofCall(ModuleHost.call_action) and names the module in every error;SetLogLevelthroughlogging.set_level(kept until the nextsettings.tdllogging change);Reload(Reloader.prepare/apply_for_control) answers after the apply with the errors;SurfaceManager.on_surfaceandlogging.finding_sinksfeed theSurfaceChangedandErrorReportedsignals. - T-035 client (
client.py, jeepney added to the dependencies):tesserae-shell reload|quit|status|show|hide|toggle|call|log-levelwith--timeout; exit codes 0, 1, 2 (no session bus), 3 (no shell is running), 5 (timeout), 4 for a secondrun; with--jsonan error is{"ok": false, "error": ..., "exit": N}on standard output. A test lists the modules areloadimports (notess_re,loguru,tess_dl,tess_el,dbus_fast) and measurestoggleend to end. - T-035 fixtures for tess-ui:
tests/fixtures/cli/status_running.json(recorded from a real shell on a private sway and bus) andstatus_not_running.json({"ok": false, "error": ..., "exit": 3}); the staleness test covers both. - T-035 tests:
test_control.py(introspection, loop handoff, timeout, name taken, reconnect, signals),test_client.py,test_control_live.py(a real shell on a private sway),test_control_idle.py(zero wake-ups, 5 s, 60 s underperf). - T-039
Event.rect: a pointer event (On_Click,On_Secondary_Click,On_Middle_Click,On_Scroll) gives the module's action the block's(x, y, width, height)on the OUTPUT (Nonefor a block inside a Popup);ctx.popup(name, data, anchor=event.rect)opens a Popup beside that rectangle, so a module can anchor to one block of its ownForentries. The Tray menu now opens beside the clicked icon andActivate,SecondaryActivateandContextMenuget the icon's centre on the output. - T-039 a Popup's
Max_Heighttakes a percentage of the output's height (above 0, at most 100; a pixel value works as before;Max_Widthstill refuses one); the schema export listspercent_min,percent_maxandpercent_min_exclusivefor it. - T-039 shipped default Popups (
schema/default_popups.py): a Monitor that showsTraygetsTray_Menu,Tray_Menu_2andTray_Menu_3(Max_Height: 60%), one that showsAudiogetsAudio_Outputs, so a shell file writes none; a Popup of the same name in the file replaces the shipped one whole. The KWin kits of Audio and Tray write no Popup, and each hasrun-override.shto try the override. - T-039
ErrorReportedfor module exceptions: an action, a controlCall, a D-Bus callback, a service hook, a tick or actx.call_sooncallback that raises is logged as before and also reaches the control interface asErrorReported("module-exception", file, line, "<Module>: <where> raised <Type>: <message>")(the file and line are where it was raised), once for each distinct error a minute;Statuslists it among the last errors. - T-039 a Popup of 100 module entries opens in about 85 ms instead of about 130 (
LiveTreecompiles each slot expression once for the entries of aFor; the host tells a module of new entry uses without comparing every use it has). - T-042 the cheap measure of a menu (
surfaces/popup_measure.py): a Popup whose content is a column of uniform rows (the Tray menu, the Audio outputs menu) is measured from ONE built row of each kind (a row's blocks and keys, not its texts) plusWindow.measure_textfor the words, instead of building every row a second time in the meter window; the numbers are EXACTLY those of the full pass (tests/test_popup_measure.pypins it for 1, 5 and 100 entries, separators, icons, shortcuts, submenu arrows, disabled rows, a long label, a taller-than-the-popup menu and the Audio outputs), and anything else (a hand-written Popup, a menu with spacing, a border, a fixed size, a label wider than the Popup) takes the full pass. The measure of 100 entries went from about 48 ms to 3 ms. - T-042 schema 1.2 (additive):
schema --jsonhas apopupssection listing the Popups the shell provides (the Popup's name, the module that brings it, its content module, placement keys,Max_Heightas written) and which Monitors get them, derived fromschema/default_popups.py. - T-042
ErrorReported(rule, file, line, message, module): the signal carries the module's name as a fifth field (empty when the error is not from a module's code);Statuslistsmodulein each last error andstatusprints it; a finding from a module's code is aModuleFinding(check --jsonis unchanged). - T-047 key strings (
schema/keys.py, pure): modifiers and one key joined by+(Ctrl+Alt+Shift+Meta+Keyis the written order; any case and order is read), key namesEnter Escape Tab Space Backspace Delete Insert Home End PageUp PageDown Left Right Up Down F1..F24 Plus, a letter, a digit, the media and hardware keys by their X names withoutXF86(AudioRaiseVolume,MonBrightnessUp, ... 64 hardware and media names, 143 key names in all), and the aliasesReturn Esc Del Ins PgUp PgDownand theXF86forms (read, never written).parse_chordgives the Qt key integer (modifier bits OR-ed with theQt::Keyvalue); every number is pinned by a test to Qt's ownqnamespace.hwhen it is installed. An unknown name or a malformed string is a value error withfile:line:columnnaming the nearest known name. - T-047
Shortcuts { }insettings.tdl:Enter_Shortcut_Mode,Exit_Shortcut_Mode,Set_Shortcut_Mode,Next_Focus,Previous_Focus:"keys"(their behaviour is built with the focus work, a press of one says "not built" at debug),Toggle_<Name>,Show_<Name>,Hide_<Name>:"keys"for a Panel, Bar or Frame (a name that matches none is a load warning naming the nearest, and the shortcut is not registered; a Popup is refused: no key opens one), and<Any_Name> { Keys: "keys", Action: Toggle | Show | Hide | Call, ... }with the handler form of Events and Actions (theCallargument check applies).Panel { Shortcut: "keys" }is aToggle_<Name>entry andBar { Reveal_Key: "keys" }(now built) aShow_<Name>entry; when both are written the entry wins with one warning. Two actions with the same key (any case, order or alias) are one warning naming both withfile:line:column, the shell starts and neither gets the key.Settings { Global_Shortcuts: false }(defaulttrue) makes no call to the desktop's shortcut service at all.tesserae-shell checkreports all of these. - T-047 the shell's shortcuts with KDE's service (
services/shortcuts.py, on thedbusthread): the componenttesserae-shell("Tesserae Shell") oforg.kde.kglobalaccel; each actiondoRegisterthensetShortcutKeyswith the active keys and flag 2, then the default keys and flag 8 (neverNoAutoloading, so a key the user changed survives); an empty answer for a requested key means the desktop owns it: the action stays registered with no key and one warning names it;getComponentgives the object path,globalShortcutPressedis mapped to the same command asToggle/Show/Hide/Callon the loop thread (ShellCommands.press; the five fixed actions go to afixed_actionstable other parts fill), a press while starting or stopping or for an unknown action is dropped, release and repeat are ignored;yourShortcutsChangedis followed; an owner change of the service registers again; at start the component's actions the shell no longer declares are unregistered; a stop makes every action inactive and keeps the component and the keys; no service is one warning and the commands still work; idle: no timer, no wake-up. - T-047 hot reload applies
Shortcutsand the surfaces' keys with no restart: a new action is registered, a changed key replaced (unregistered and registered again), a removed action unregistered, an unchanged one untouched; an invalid new block refuses the reload with its findings and the old registrations stay;Global_Shortcutstrue to false makes every action inactive and drops the subscriptions, false to true registers as at start. - T-047 schema 1.3 (additive): the
key_chordkind (the modifiers in the written order, the key names by group and the aliases are inkinds.key_chord),Shortcuton a Panel andReveal_Keyon a Bar as built keys of that kind,ShortcutsandGlobal_Shortcutsinsettings, and ashortcutssection with the entry forms. - T-047 tests: a fake
org.kde.kglobalaccelon a private bus (tests/fake_kglobalaccel.py), the service, plan, live (private sway), idle and reload tests, and the hand-check kittests/kwin/prepare_m6c_shortcuts.py(/tmp/tess-kwin-m6c: backup first, the only place the real service is touched). - T-053 the fake
org.kde.kglobalaccelhas the signatures the vault session read from the real service (read-only introspection):unregisteranswersb,allShortcutInfosisa(ssssssaiai), andsetShortcut(older,as ai u -> ai) andglobalShortcutAvailable((ai) s -> b) exist;isGlobalShortcutAvailabletakes one key and the component name. dbus-fast finds a method by name and signature, so a call with another signature finds no method (tests/test_fake_kglobalaccel_signatures.pycalls every member with a right and a deliberately wrong signature). The client already sent the real signatures; nothing in it changed for them. The fake exports oneallShortcutInfos(dbus-fast cannot export two signatures of one name; the real one also takes ans). - T-053 an empty answer of
setShortcutKeysis no longer reported as taken at once: the shell asksisGlobalShortcutAvailable(<the key>, "tesserae-shell")once for each such key. A free key is the user's own clearing in System Settings (which autoloads as an empty answer): a debug line, no warning, the action stays registered with no key. A key that is not free is the existing warning. A call that fails gives the warning with "could not be checked" appended. - T-053 a
Callshortcut loads its module (an instance with no use) when no surface uses it, started once, shared with a surface that uses it, and stopped at a reload when neither a surface nor a shortcut names it (shortcuts.shortcut_modules, planned inapp.pyand the reloader like the modules of aFor). A missing action or a bad argument is still a load finding. - M6a focus (T-041):
FocusableandTab_Index(0 to 2147483647, a load error withfile:line:columnoutside it) on blocks, andTab_Indexon Bar, Panel, Frame and strips; a block with an interactive role (BUTTON,CHECKBOX,RADIO,SWITCH,SLIDER,LINK,TAB, andLISTandMENU, one stop each: their entries are reached by the arrow keys of M6b),TogglesorSlidesand a TextField's text input is focusable by default, a disabled block is not. tre walks Tab and Shift+Tab; the binder ranks theTab_Indexblocks (View.reindex, held in memory, remade at each load and reload). Every shipped widget is one Tab stop, however many nodes it is made of (tests/test_focus_shell.py, tests/test_focus_modules.py: Button, Toggle, Checkbox, Slider, TextInput, TextEditor, List, Menu, Tray_Item, the Workspaces, Media and Audio controls); Label, TextBox, Badge, Icon, ProgressBar and Marquee_Text take none. - The focus ring: the style state
:focusedis built (keyboard focus only; a click focuses with no ring). A focusable block that takesShadowsgets, under any:focusedrule, a ring of one non-blurred shadow in the theme'scolor.primary,space.step_1thick, so it does not shift the layout. AScrollBoxnow takesShadowsandElevation(a List is one, and shows the ring). A Text, SVG, Spacer, Bitmap, shape or Marquee takes noShadowsand so shows no ring: putFocusableon a Box, FlexBox or Rectangle around it. The shell's DEBUG log saysfocus: <block id> '<label>' (ring | no ring)at each focus change. - The content of a closed Expander is hidden (
visiblefalse) when the closing has finished, and shown again the moment it opens, so a Button or a text field in it is no Tab stop while it is closed; focus that was inside when the content hid goes to the Expander's own block (no key reaches a hidden field; the next Tab starts at the first stop).View.tab_stops()leaves out a block under a hidden block. - A reload keeps focus on a block that is still there (the keyed diff keeps its tre node, also when a
Forlist reorders) and Tab then follows the new order; when the focused block is gone nothing is focused and the next Tab goes to the first stop (Shift+Tab to the last). - A reload that changes a Bar's or Panel's
Keyboard, or adds or drops a TextField in it, now reaches the live window (it was only read when the window was made); a hidden Panel keepsnoneuntil it is shown. - A Popup opened from a focused block returns focus to it when it closes (Escape, outside click, selection, compositor dismissal); one opened from the keyboard also focuses its first Tab stop.
- A Bar takes
Keyboard: NONE | ON_DEMAND(it was not built); the surface manager keeps the shell's surface order byTab_Indexand moves the focus bookkeeping to the next surface when the one with focus closes. On the private sway a click gives a Bar withKeyboard: ON_DEMANDthe keyboard, Tab and Shift+Tab then move the ring inTab_Indexorder, and a Bar withKeyboard: NONEis given no key (tests/test_focus_live.py, a virtual pointer andwtype). - Fix (T-058):
test_a_restart_of_the_service_registers_again_and_the_keys_workfailed about one run in five. After the shortcut service restarts, the shell registers its actions again and subscribes to the press signal only at the end, so a key pressed as soon as the action showed as present was lost. The shell now logsshortcuts: registered again: N of M actions, listening for keyswhen that is done, and the test waits for it. - GitHub Actions CI (
.github/workflows/ci.yml):lint(ruff check,ruff format --checkonsrcandtests,mypy) andtest(the full suite onubuntu-24.04with a headless sway,wtype,grim,dbus-daemonand Mesa's software Vulkan) on every push tomainand every pull request.tests/test_display_widgets.pywas reformatted so the format check passes. - Fix (T-045, the flaky Media tests):
Bus.watch_prefixcould lose a player.ListNameswas answered without a player that came up a moment later, itsNameOwnerChangedwas handled before the list's own reconciliation, and the list then removed the name again, so the module never saw the player (found as 10 failures in 1200 runs oftest_a_pause_keeps_the_position_...under 96 busy loops, where the player is started after the shell: the assertion thatstatusbecomesPLAYINGtimed out with the module's player table empty). A signal is newer than a list in flight: the names a signal set while the list is being read (_Prefix.touched) are neither added nor removed by it. Deterministic tests with a stub connection (tests/test_dbus_prefix.py) fail on the old code. - Fix (found by the first CI run): a SIGTERM or SIGINT that arrived while the shell was starting killed it outright (exit -15, no clean stop, no
stoppedline), because the signal handler was installed at step 9 andstartingis logged at step 4. A smallEarlyStophandler is installed first thing inrun(): it holds the first signal and the normal stopper acts on it as soon as it exists; a second signal still forces an exit (130), so a start that hangs can be interrupted; it is removed on every return path. An early Ctrl+C is now a clean stop like a later one (it was an immediate exit 130).test_signal_right_after_starting_still_stopsfailed 18 runs of 20 on the old code under 48 busy loops and passes 20 of 20 now. - Test fix (found by CI):
test_global_shortcuts_false_makes_no_call_and_a_reload_turns_it_on_and_offread the shell's log FILE right after the console showedrunning; the console and the file are written by two queued sinks (enqueue=True), so a line logged just beforerunningcould still be waiting for the file.Shell.wait_logwaits for a line to reach the file; the two checks that read it while the shell ran use it, and a negative check intest_control_live.pyreads the log after the shell has ended. Under 48 busy loops the test failed 2 runs of 20 before and passed 20 of 20 after. -
CI and release, rebuilt to the gh-cicd baseline: every action pinned to a commit SHA (with Dependabot to keep them current), read-only permissions, no stored credentials, concurrency that cancels only pull-request runs,
paths-ignorefor the generateddocs/,uv sync --locked. The suite runs in 4 parallel shards withpytest-split(a dev dependency;.test_durationsholds the measured time of each test), about 3.5 minutes instead of 10.5. The real-pointer live tests, thebusctlgallery tests and the German-locale Clock test no longer skip on the runner (tre's virtual-pointer helper is fetched at the pinned engine release, withpywayland);-rsprints every skip reason. Apackagejob installs the wheel alone and runstesserae-shell version.CI resultis the one check to require.release.yml, for avX.Y.Ztag: runs the same CI on the tagged commit, checks the tag, the wheel version and the changelog agree, and makes a GitHub Release with the wheel and the sdist. It does not publish to PyPI: the wheel is alinux_x86_64platform wheel (it carries a compiledtess_utils) and PyPI accepts only manylinux or musllinux tags, which is the M7 packaging decision. -
T-050 shortcut mode (M6d, Focus and Keyboard > Shortcut Mode): the maintainer's seven rules as a pure state machine (
surfaces/mode.py: one surface is in the mode or none, and one has the focus;Enter_Shortcut_Modeputs the Frame, else the first surface, in it with the focus on the default surface; setting one true sets every other false; false on the one in the mode turns the whole shell off and does not go back to the Frame;Set_Shortcut_Modetoggles the focused surface;Next_FocusandPrevious_Focusgo round the surfaces inTab_Indexorder while the Frame has the mode and do nothing elsewhere) andsurfaces/mode_driver.py, which applies each change to the windows: the surface that has the focus takes the keyboard (EXCLUSIVEfor the length of the mode,Debug { Mode_Keyboard: ON_DEMAND }for a compositor that hands focus over after a global key) and has its writtenKeyboardback when the mode moves on or ends (a reload no longer sets a held window's keyboard); a Frame in the mode shows every peek (melded Panels and strips) at once and sends back the ones it brought out (Hide_After, the hover and the trigger do not hide them meanwhile); the focus ring starts on the first Tab stop of the surface; entering, each move and leaving set a polite status (a hidden text node withlive: polite); a surface that closes or hides passes the focus on, and ends the mode if it had it; a surface that is not made active by the compositor within 1500 ms is one warning. - T-050
Shortcut_Mode: true | false(default false) on Bar, Panel, Frame and strip (Edges { Top { Shortcut_Mode: true } }); a melded Panel and a Popup take none (errors). Two or more written true are ONE warning naming each withfile:line:column, and the first in document order keeps it; the shell starts in the mode on that surface. A reload that writes a surface newly true moves the mode to it (rule 1), newly false on the one in the mode turns it off (rule 2), and a reload that changes nothing leaves what the run made. - T-050 the five fixed actions run (
ShellCommands.fixed_actionsis filled: it was empty and a press logged "not built"). OnlyEnter_Shortcut_Modeis registered with the desktop with its key: the other four (Exit_Shortcut_Mode,Set_Shortcut_Mode,Next_Focus,Previous_Focus) are declared with no key (a key registered globally is a key taken from every application) and the keys written for them arrive as key events on the surface that has the keyboard (Escapeleaves the mode when the Frame has it); a key the user binds to one in the desktop's own settings runs it too.Shortcutskeys are read again at every reload. - T-050
ctx.focusfor modules (loop thread):ctx.focus.default = "Dock"(the surface that has the focus when the mode is entered) andctx.focus.set_mode("Dock", True); a name that is no surface is one logged error with the module and the nearest names. - T-050
Debug { Mode_Keyboard: EXCLUSIVE | ON_DEMAND }insettings.tdl(a restart applies it). Schema 1.4 (additive):Shortcut_Modeon Bar, Panel, Frame and Edge, andDebug.Mode_Keyboard; the docs of the fiveShortcutskeys say which act inside the mode only. - T-050 tests: the state machine (
tests/test_shortcut_mode.py, 40 table tests), the manager with a Frame, two peeks, two Panels and a Bar (tests/test_shortcut_mode_shell.py,tests/mode_rig.py), the loader and its warning (tests/test_shortcut_mode_schema.py), the five actions andctx.focus(tests/test_shortcut_mode_api.py), a private sway withwtypeand the fake kglobalaccel on a private bus (tests/test_shortcut_mode_live.py), and the hand-check kittests/kwin/prepare_m6d_mode.py(/tmp/tess-kwin-m6d, checked bytests/test_kwin_m6d_kit.py).test_the_five_fixed_actions_go_to_a_hook_table...of T-047 now empties one hook before it checks "not built" (the table is filled). - Test fix (found when CI began to run the real-pointer live tests): on the runner's compositor (sway 1.9 on wlroots 0.17) the mouse cursor is drawn into a
grimscreenshot, and on sway 1.12 it is not. Intest_media_live.pythe cursor sat on the bar and added its pixels to the count of text-coloured pixels; in the peek-drag tests its tip covered the contour edge the test searches for at x = 100. The Media test now parks the pointer in an empty corner before it measures (the look at rest is what it compares), the peek tests read the contour at x = 150, clear of the cursor, and the Media test waits up to 30 s for the first frame (the runner took several seconds). Found by saving the runner's screenshots from a scratch workflow. - Test fix (found by CI):
test_plugging_and_unplugging_an_output_opens_and_closes_only_its_windowswaited for the log lineclosed (output_removed), which appears only when the compositor's event reaches the window before the shell has closed it; on a slower machine the shell closed the windows first (closed (app)) and the test timed out. Both orders are correct. The test now waits for the shell's own record of closing exactly the windows of the removed output. - Test fix (found by CI):
test_calling_another_popup_replaces_the_open_one_on_a_real_compositorwaited 5 s for the second popup's colour. On a fresh CI machine the first graphics work is slow (5 runs of the test alone in fresh processes: the first took 16 s and failed, the next four 2.8 s each), and the test failed only when the shard split happened to put it first.wait_for_shotis an upper bound of 30 s now. - Fix (found by CI): a Popup closed before the compositor had placed it stayed on screen for good. tre's
PopupWindow.close()does nothing until the popup has a window id, which it gets when placed, so a replaced or toggled popup that was closed a few milliseconds before itsconfigurewas never destroyed (on a cold CI machine the first popup oftest_calling_another_popup_replaces_the_open_one_on_a_real_compositorwas closed 4 ms before it was placed, and its red body covered the second popup's green). The shell now remembers the close and makes it whenconfigurearrives. tre's side is for the maintainer to report:close()should not be silent. - M6b keys of the widgets (T-048; Standard Modules > Keyboard Operation): a Button takes Enter and Space (
:pressedand the accessibility statepressedshow while the key is held, also for a pointer press; a focus lost with the key down ends it); a Toggle and a Checkbox flip on Space and ignore Enter (tre clicks the focused block for both: the control remembers an Enter, and a repeat of a held Space, from thekey_downbefore the click and takes neither); a Slider takes Left/Down and Right/Up (oneStep), Page Up and Page Down (ten), Home and End, each moving key raisingOn_Changedand then at onceOn_Releasedwitholdthe value before the step (a key at an end raises nothing); a List (Selection: SINGLE) takes Up, Down, Page Up, Page Down, Home, End, Enter and Space and typed letters (a search ends a second after the last letter, a space inside one is a letter of it), each move being a choice withOn_Changedandscroll_into_view, a disabled entry passed over. A Menu in a Popup takes Up and Down (round the ends, the lit row shows the:hoveredlook,Wire.active), Home, End, Enter and Space, Right (opens the submenu of the lit row and lights its first row) and Left; Escape closes the innermost level and the first menu gives the focus back to its opener; the pointer on a row takes the light from the keys. A control listens forkey_downon its block (Control.takes_keys): tre then gives it every key, so the arrow keys do not scroll a ScrollBox around it. A key with Ctrl, Alt or Meta is never a widget's. A disabled block takes no key even if it is given the focus. - The Button module takes
ExpandableandExpanded: a Button that controls an Expander carries the accessibility stateexpanded(Expandable: true, Expanded: <| open |>); withoutExpandableit says nothing. The M4b gallery'sTogglermodule now controls its Expander with such a Button (it was a plain box, no Tab stop). - The click path of a block is
View._run_click: a control may refuse a click (Control.accepts), andView.activateruns it with no pointer (a menu row chosen with Enter).tests/widgets_live.runningtakes a whole shellbodyand ahomesurface, so a gallery's real shell text is operated headless. -
tests/test_keys.pyoperates the M4a, M4b and M4c galleries by key events only, one test a widget (Button, Toggle, Checkbox, Slider, List, Menu with submenus, TextInput, TextEditor, Expander) and the cases around them (type-ahead, a rebuild, a value from the module, modifiers, a disabled block).tests/test_keys_live.pyTabs to a Button and a Slider on the private sway with a virtual pointer andwtypeand sees the module's actions. Not tested, on purpose: Ctrl+C, Ctrl+X and Ctrl+V, because tre's clipboard is the operating system's even on a headless window. The one criterion that fails today, Tab leaving a multi-line TextEditor, isxfail(strict): tre types a tab character and has no property that lets Tab through. -
T-044 portal settings (M5h, H1 and H2): the Settings portal reader asks for
org.freedesktop.appearanceandorg.gnome.desktop.interfacein the oneReadAlland followsSettingChangedforicon-theme,font-nameandenable-animations(a missing, odd or wrong-typed key is that key's default and the others apply;Appearance.Follow_Desktop: falsestill reads nothing).Appearancegainsicon_theme,font_familyandanimations, andmotion_reduced(reduced-motion key ORenable-animationsfalse), which every consumer of reduced motion now reads: durations 0, no Marquee scroll, no Panel or Frame animation. The icon service takes the portal's theme beforekdeglobalsandhicolor(IconService.set_portal_theme);ctx.icons.on_theme_changed(callback)tells a module that the theme changed, and the shipped Tray makes its icons again. The theme tokentype.system.font_familyholds the family offont-name(Hack Nerd Font 10givesHack Nerd Font; a genericsans-serifwhile the desktop names none; a theme that sets the token itself keeps its own value; the shipped theme does not use it). Tests:tests/test_portal_settings.py, the fake portal serves the new namespace (tests/fake_portal.py), one live path intests/test_portal_live.py. -
Global shortcuts, two answers: a Frame takes
Shortcut: "<key>"(typed and checked like a Panel's: a bad key is an error at the key withfile:line:column; the same action asToggle_<Name>, so it joins the conflict warning and aShortcutsentry for the same action wins with one warning; it is registered and changed at reload like the others). Schema 1.5 (additive:Shortcuton Frame,surface_keys.Frame). ACallshortcut that names a module no surface uses loads and starts that module (an instance with no use; built in T-053), and one that names no module is still an error at its entry; tests added for both (tests/test_shortcut_frame.py,tests/test_shortcut_plan.py). - PyPI release path (Trusted Publishing is set up on PyPI for
release.yml, environmentpypi): the wheel is taggedcp314-cp314-manylinux_2_36_x86_64instead oflinux_x86_64(PyPI accepts only manylinux tags), and apypijob inrelease.ymluploads the built files after the build and before the GitHub Release (a refused upload leaves no public release), with no stored token and the environment's reviewer approving.auditwheel showin the CIpackagejob checks that the tag is what the vendoredtess_utilsneeds: it is consistent with 2_36 and nothing older, because the file asks forGLIBC_ABI_DT_RELR(glibc 2.36) besides glibc symbols up to 2.14; a first reading withobjdump -Tmissed that. Users need glibc 2.36 or newer (Debian 12, Ubuntu 24.04, Fedora, Arch; not Ubuntu 22.04). A lower tag needs tess_utils rebuilt in an older manylinux image (the tess-utils repository). Nothing is published until the maintainer pushes av*tag.
0.1.1 - 2026-11-15¶
- Release fix: the GitHub Release step of
release.ymlfailed for v0.1.0 because the changelog section used as the release body was 144,000 characters and GitHub allows 125,000 (PyPI had already been published; the GitHub Release for v0.1.0 was made by hand). A section over 100,000 characters is now cut to its first 40 lines with a link to the whole of it at the tag. - CI:
paths-ignoreis removed fromci.yml.CI resultis a required check onmainnow (a repository ruleset), and a pull request whose changes were all ignored would never get the check and could not merge. Pull requests that only change Markdown ordocs/run the full suite (about 5 minutes) as a result. - The shared converters come from PyPI now:
tesserae-utils[image]>=0.2.1,<0.3is a dependency (import nametess_utils), and the carried compiled file is gone (src/tess_shell/_vendor/,tools/vendor_utils.py,hatch_build.pyand the tests of the sync tool). The wheel is pure Python (py3-none-any) instead of amanylinux_2_36platform wheel, so it installs on any glibc and any CPython 3.14 and theauditwheelstep of the CIpackagejob is removed.tesserae-utils0.2.1 is the pure-Python build; the compiled one raisedTypeErrorfor a wrongly typed argument where the source does not, and the shell's own checks never relied on that. The converter tests that lived intests/test_vendor.pyare intests/test_converters_tess_utils.py. - tre 0.6.8 (
tesserae-engine>=0.6.8,<0.7): a multi-line TextEditor now setstab_navigates, so Tab and Shift+Tab leave it like every other widget instead of typing a tab character and trapping a keyboard user (TRE-REQ-018; the strictxfailoftest_texteditor_tab_leaves_the_fieldis gone and the test passes). The workaround for a Popup closed before the compositor placed it (v0.1.0 line above: the shell kept the close untilconfigure) is removed, because tre closes it itself now (TRE-REQ-019; tre'sPopupWindow.close()remembers the close and makes it when the popup is placed); its two unit tests went with it, andtest_calling_another_popup_replaces_the_open_one_on_a_real_compositoris the live check. - Shortcuts: the shell logs at debug, for each action it registers, the keys it asked for and the keys the service said it set (
shortcuts: Toggle_Launcher: asked for [...], the service set [...]), and one INFO line when the service uses another key than the file writes. The hand check on KWin (line 11 of the M6c list) wroteCtrl+Alt+Del, which KDE's Log Out owns, for a shell action and saw no warning and no effect: the service had applied the key saved by earlier runs (autoloading, as designed: the file gives only the default), and nothing said so.tess_shell.schema.keys.qt_textturns the service's key integers back into text. - Shortcuts, a key the desktop owns (found by the maintainer's hand check on KDE): the real
kglobalaccelddoes not refuse a key another component owns, it hands it over. With a fresh component the shell asked forCtrl+Alt+Delete(KDE's own Log Out), the service set it, nothing was warned, and the shell held a key the desktop uses (whileisGlobalShortcutAvailablesaid it was not free). The shell now asksisGlobalShortcutAvailable(key, "tesserae-shell")for each chord before it registers an action (also at a reload that adds or changes a key), once for each chord in a registration: a chord that is not free is never sent tosetShortcutKeys, the action is still registered with no key, and one warning names the action and the key (the key X is taken by the desktop or another application: the action is registered with no key (choose one in System Settings)). A free chord is requested as before, and a free chord that comes back empty is still the user's own clearing (debug line, no warning). A check that fails does not block the request: the key is asked for, and only an empty answer gives the warning, with; could not be checked (...).tests/fake_kglobalaccel.pynow behaves like the real service (it sets a key another component owns; only the availability call says it is not free), and the tests that relied on the old fake assert the new behaviour. - Test fix (found by CI):
test_a_scheme_change_on_the_bus_reaches_the_bar_within_100_msfailed in 3 pushes tomainand 2 debug runs (623 to 1076 ms against the 100 ms budget). Splitting the time with the shell's own log showed the look takes 0 to 1 ms in every run, passing or not, and the whole wait is before the portal reader sees the signal; 36 runs of the same shard measured 2 such waits, and a further split (the test's ownportal.setcall versus the shell's reader) showed 0 ms and 0 ms in 16 passing runs, so the cause of the occasional wait is not known. The test now makes five changes and the budget has to be met by the best of them (as the Tray menu test does), while every change must still arrive within 3 s; the failure message lists all five times.
0.1.2 - 2026-11-16¶
- Docs site:
docs/(the design vault's generated export) is built with MkDocs and Material and deployed to GitHub Pages at https://mindderivative.github.io/tess-shell/ by.github/workflows/docs.ymlwhendocs/,mkdocs.ymlor the workflow change onmain.mkdocs.ymlis new; thedocsdependency group (mkdocs,mkdocs-material,mkdocs-github-admonitions-plugin) is new and locked. The export writes GitHub alerts (> [!NOTE]), which Python-Markdown does not render andmarkdown-calloutsdoes not read in that form, somkdocs-github-admonitions-pluginturns them into admonitions (340 across the 111 pages); the notes'status:front matter shows as an icon with a label beside each page in the navigation. Adocsjob in CI builds the site withmkdocs build --stricton every pull request andCI resultrequires it, so a broken export fails before the merge.docs/andtools/sync_docs.pyare untouched. -
Test fix (CI, once in about a dozen shard runs):
test_tab_reaches_a_button_and_a_slider_and_enter_space_and_the_arrows_operate_themslept a fixed 2 s for the first layout before it clicked the Bar and typed; a slow machine that had not configured the Bar by then lost the click and the keys (the failure showed no focus change and nothing else). It now waits for the shell's ownBar Top on HEADLESS-1 configuredline (up to 60 s) and then 1 s for the layout, and its failure message carries the tail of the shell's log. The cause of the one failure is inferred, not proven: the old assertion printed no log. -
KWin hand-check kit for tre 0.6.8:
tests/kwin/prepare_tre068.pywrites/tmp/tess-kwin-tre068(starts nothing;check.shonly runstesserae-shell check) withrun-tab.sh(a Panel with aTextEditor, aTextInputand a Button: Tab leaves the multi-line field, TRE-REQ-018),run-popup.sh(a Probe module whose two Bar Buttons open and close a red Popup in the same turn, once and 20 times: TRE-REQ-019),run-token.sh(a throwaway tre-onlytoken_probe.py: one button that callsrequest_activation_tokenand starts the first installed konsole, kate or dolphin withXDG_ACTIVATION_TOKEN, only on click) andchecklist.txtwith the expectation tables of the vault's Hand Checks note.tests/test_kwin_tre068_kit.pycovers the generator (files, well-formed scripts, both configs passcheck). tesserae-shell install-session(Packaging and Session Start, T-055): writes the desktop fileio.github.mindderivative.TesseraeShell.desktop(to$XDG_DATA_HOME/applications) and the systemd user unittesserae-shell.service(to$XDG_CONFIG_HOME/systemd/user) with the absolute path of the command that ran it;--printshows both and writes nothing,--enablealso runssystemctl --user enable,--removedisables an enabled unit and removes both files,--forcereplaces a file with other content (without it the command names the file, changes nothing, exit 1),--jsongives the object of the other commands. Both files are templates in the wheel (tess_shell/data/, package data: the wheel stayspy3-none-any; a test builds it and lists them). Files are written to a temporary name and renamed; a second run changes nothing. The unit isType=notify,Restart=on-failurewithRestartPreventExitStatus=1 2 4; itsStartLimitIntervalSec=60andStartLimitBurst=5are in[Unit], not[Service]as the note's draft had them (systemd ignoresStartLimitIntervalSecin[Service], whichsystemd-analyze verifyreports as an unknown key, so the draft would have limited restarts to 5 in 10 s). The command word is quoted for systemd (%doubled;$doubled only in an argument, because systemd reads the program as it stands) and for the desktop file'sExec. The shell now tells systemd: withNOTIFY_SOCKETset it sendsREADY=1once it runs (after the shortcuts are registered, just before the loop starts) andSTOPPING=1when the stop sequence begins, in one datagram each, path or abstract socket (tess_shell/notify.py, standard library only); nothing is sent when the variable is unset or when the bus name was taken (exit 4); the design note said the shell already sent them, it did not.tesserae-shell statuswarns (standard error; a"warnings"list in the--jsonanswer, only when there is one; also when no shell is running) when the installed unit'sExecStartnames a missing or non-executable path, a script whose interpreter is gone, or another install than the one runningstatus. Safety (rule D-019): every path the command writes or removes goes through a guard that refuses the real~/.config/systemd/userand~/.local/share/applicationswhilePYTEST_CURRENT_TESTis set (the real home is read from the password database, not$HOME), and the realsystemctlrunner refuses the same way; tests passTargetsin a temporary folder and a recording runner.tests/test_install_session.pymaps the note's six acceptance criteria to tests (the unit passessystemd-analyze --user verifyand the desktop filedesktop-file-validate, each on a copy, skipped when the tool is missing),tests/test_notify_live.pyruns a real shell against a private datagram socket, andtests/kwin/prepare_install_session.pywrites the hand check for the maintainer's real session (/tmp/tess-kwin-install-session: backup, print, install, verify, stale warning, enable, after login, undo; it starts nothing).- Portal follow-ups (maintainer's answers of 2026-11-16 to the Portals open questions): (1)
type.system.font_familyholdsRobotowhile the desktop names no font, not the genericsans-serif;Robotois the family tre's bundled font has and text uses when noFont_Familyis set (the shell ships no font; a headlessmeasure_textofsans-serifor an unknown family gives 0 x 0, so the old value would have drawn no text), and a theme that sets the token itself still wins. (2) One public reduced-motion flag:Appearance.reduced_motionis now the combined flag (the portal'sreduced-motionkey orenable-animationsfalse); the single key is the private field_reduced_motion_key, read only by the portal reader;motion_reducedis gone and every caller (look, frame, manager, schema, tests) readsreduced_motion. (3) The schema export is version 1.6 (additive): a newsystem_tokenslist names the tokens the shell supplies (type.system.font_family:name,ref,kind,default,doc,theme_wins), sotokensstill equals the shipped theme's. (4) An open Tray menu takes the icons of a new icon theme in place: the Tray makes the entries' icons again on its worker thread and gives them to the open Popup with the newctx.update_popup(name, data)(the Popup'scaller.datais replaced, its content resolved again and diffed into the open window; it stays open, at its size, with no new read of the menu); a menu that is closed or on its way is unaffected. - M5g KWin integration and Tasks (G1 to G5): (1) the desktop-entry index (
services/desktop_entries.py:.desktopfiles ofXDG_DATA_HOME/XDG_DATA_DIRSread as the Desktop Entry Specification says, localised keys,Hidden/NoDisplay/OnlyShowIn/NotShowIn/TryExec, ids from sub-folders, inotify watch; shared with the later launcher) andctx.icons.app_icon(app, size)(the entry'sIcon=through the theme lookup incl. the portal theme, else the name, elsemdi:application-outline; a window class is never read as a path). (2) The shell's KWin script (src/tess_shell/kwin/TesseraeShell, idtesserae-shell-kwin): mode R loads it through/Scriptingafter the control interface owns its name (version read from/KWin supportInformation,isScriptLoaded/unloadScript/loadScript/start,unloadScriptat stop), mode P (KWin { Script: PERSISTENT }) andOFF; the interface gainsFullscreenState(s) -> sandWindowsState(s) -> s(answer{"windows": true|false}); a missing KWin is an info line, a refused load or a silent script (5 s) one warning; malformed strings are ignored with one warning that never holds content.KWin { Script, Hide_On_Fullscreen }insettings.tdl; schema 1.7 (the portal follow-ups took 1.6 first). (3)SurfaceManager.set_fullscreen: Bars, Panels, the Frame (zones released) and Popups on an output with an ACTIVE fullscreen window are hidden and come back as they were; a user's own Hide is kept. (4)ctx.windows(on_changed,list,ready,available,activate,minimize,close_window) over a window service that turns the script's list on only while a module subscribes; actions are one-shot scripts from a template with a checked UUID. (5) The Tasks module andTask_Item(monitor/desktop filters, icons on a worker following the theme, click activates or minimises, middle click closes, wheel cycles). (6)tesserae-shell kwin script install|remove|statusandkwin rule show|install|remove(--rules-file,--kwinrc,--scripts-dir,--yes,--no-reload; a test refuses the real files and a non-private bus). Tests: fake KWin and fake script on private buses (tests/fake_kwin.py), the script's own logic under Node, the kittests/kwin/prepare_m5g_kwin.py. - M6d launcher (D2 of the M6 Brief; Applications Module): (1)
services/apps.py, the application service over the desktop-entry index (AppService; no second parser): the search of the spec (a query folded without case and accents, every word must match, the five ranks, equal ranks by the start count, then by name, an empty query the most started first,limitrows), the list built on a worker thread on the first use and again after the inotify watch of the folders says an entry file changed, the start counts inlauncher-counts.jsonof the state folder (a temporary file and a rename; a file that cannot be read starts empty; one that cannot be written is one warning and the counts stay in memory). (2) The start (build_command,parse_exec):Execsplit by the specification's quoting rules,%f %F %u %Uand the deprecated codes removed,%ias--icon <Icon>,%c,%k,%%;Terminal=truethroughxdg-terminal-exec(missing: one warning, nothing starts);Pathor the home as the working folder; the shell's own variables out of the environment (NOTIFY_SOCKET,INVOCATION_ID,JOURNAL_STREAM,TESS_SHELL_*, a staleXDG_ACTIVATION_TOKEN...); the program checked on the path before the start;systemd-run --user --scope --quiet --collect --unit=app-<id>-<random>.scopein front when a user manager answers one probe, else a plain start (asystemd-runthat fails is one debug line and a plain start); the real runner runssh -c '"$@" &'in a session of its own with no standard streams, so the application is not the shell's child. The runner (which,scope_available,spawn) is injected; the real one refuses whilePYTEST_CURRENT_TESTis set (it appends the command to the fileTESS_SHELL_LAUNCH_RECORDnames when there is one: the live tests, which run the shell as a process). (3)ctx.apps(ready,search,get,launch(id, use=, on_done=),on_changed,refresh): a start asks the surface of the module's use for an activation token first (SurfaceManager.request_tokencallsWindow.request_activation_token, tre 0.6.8, nohasattrguard) and starts with it, or without one when the callback getsNone(debug lineactivation token: none for <id>). (4)ctx.surface(hide(use=),focus(name, select_all=, use=),on_shown(callback)): the surface manager hides the Panel a use is on, focuses the blockName: nameof a use (a TextField gives its text input the focus;select_allselects its text; a module the layout calls withName: nameis found by its path) and tellson_shownafter each show of a Panel; a log linesurface <Name>: keyboard gained|lost(debug) follows the window'sactiveevent. (5)On_Key_Downon a TextField and on a module call that forwards to one (the new event, schema 1.8):event.key(tre's name,arrow_down,escape...),event.ctrl,event.shift,event.alt,event.meta,event.repeat; it comes before the field acts and the field acts whatever the module does, andevent.stop()keeps the key from the surface above (a Panel's Escape). (6) The shippedApplicationsmodule (a text field over aListof rows; valuesready,query,results,selected,selected_id,has_results,list_height,message) and the shippedLauncherPanel (schema/default_panels.py: added to the main shell's first Monitor when aShortcutsentry or aShow,HideorTogglehandler namesLauncherand no Panel of that name is written;Keyboard: EXCLUSIVE, overlay layer, 480 by 400, hidden). (7) Schema 1.8 (additive): the moduleApplications, the eventOn_Key_Down, the sectionpanels;tests/fixtures/cli/schema.jsonis recorded again. (8) Tests: the service (tests/test_apps.py), the start (tests/test_apps_launch.py), the launcher headless by key events (tests/test_launcher.py),ctx.appsandctx.surface(tests/test_launcher_ctx.py), the shipped Panel and the schema (tests/test_launcher_shipped.py),On_Key_Down(tests/test_key_down.py), the idle cost (tests/test_launcher_idle.py, 60 s markedperf), the whole flow on the private sway by key events only through the FAKE kglobalaccel (tests/test_launcher_live.py, a recorded starter), and the KWin kittests/kwin/prepare_launcher.py(/tmp/tess-kwin-launcher, starts nothing; itsreal-start.shruns the real starter outside the suite). -
Panel keyboard (found by CI on the launcher's live test, then reproduced locally under CPU load: 2 of 10 runs): a kept Panel that was shown before its window had its first
configurenever got the keyboard, so the Launcher opened without taking keys. A protocol trace (WAYLAND_DEBUG=1) of a failing run showed noset_keyboard_interactivity(1)for the Panel's surface; in a passing run it goes out at show time. The cause is in tre:LayerWindow.set(...)forwards a change to the platform thread only once the loop thread has run thecreatedhook (that sets the surface id and then sets up the GPU, which is slow on a busy machine), stores the change otherwise and drops it, and the hook does not apply the stored config afterwards (the same family as TRE-REQ-019, a close made before placement). The shell now sends a shown Panel's keyboard and input region again at the Panel's firstconfigure(which comes after that hook); sending them twice changes nothing. 20 runs oftests/test_launcher_live.pyunder the same load: no failure (40 test runs; a small sample). Two unit tests cover the re-send and its limits (a hidden or covered Panel is left alone). For the maintainer to report to tre: aLayerWindow.setmade before the surface id is known should be applied when it is (or at least be reported). -
The accessibility pass (E1 of the M6 Brief; Accessibility). Announcements are live regions, tre's documented way (
live: a screen reader announces a change of the label of a live node; inaccesskit_atspi_commona live node emitsobject:announcementwhen its name changes or when it enters the tree): a 1 by 1 pixel absoluteAnnouncerblock (Role: GROUP,Live: POLITE) in the module whose label is the module's keyannouncement; it takes no room in the row and the key is never replayed to a use added later. Built: Network says "Network connected, Wi-Fi Home-WiFi" or "Network disconnected" once whenstategoes to or fromCONNECTEDand nothing forstrength(Network Module > Accessibility); Battery says "Battery critical, 4 percent, discharging" once when the level becomes critical (the spec says "proposed"); Applications says the selected row as "Name, 2 of 8" as it moves (tre has no active-descendant, so each move is a polite announcement; a list narrowed by typing says its first row at the next second, so typing is not one announcement a key), "No results" and "Could not start", and opening says nothing. Opt-in with the new param announce(the specs name no announcement, or say it is off by default): Media a new track, Audio mute and unmute at once and a new volume once settled (at most one a second; a one-second tick runs only while one waits), Tasks a window of the row that opens, closes or wants attention. Names and descriptions:TextInputandTextEditortakeLabel(else thePlaceholder, so the launcher's field is named by its placeholder), the Slider takesValue_Text(the new block keyValue_Textis tre'svalue_text; Audio says "45 percent", Media "1:23 of 3:45" through the new keyposition_text), the tooltip of Network, Battery, Audio, Media and Clock is also the accessible description (the Clock face is named by its time), the launcher's rows are named by the application's name and comment and its list "Results", every Bar and Panel window is named after the surface (Top Bar,Launcher) and a Panel withKeyboard: EXCLUSIVEis adialog. Tasks: the button is named by the desktop entry'sName(newctx.icons.app_name, besideapp_icon, read on the worker; the desktop file name until it is read) and the row stays a GROUP (a LIST role makes a Tab stop and its children are buttons, not list items). Not built: Tasks announcements for a change of the active window (spam, and the desktop says it) and for the last window closing or the script stopping (the module is hidden then, so it is out of the accessibility tree); the focus ring of a selectableText(the maintainer decides). Schema 1.8 to 1.9 (additive),tests/fixtures/cli/schema.jsonregenerated.tests/test_accessibility.pyasserts each throughnode.get. - The user guide (
guide/, for a person who wants a bar on a KDE Plasma desktop): ten pages (install and start, the configuration folder, a first Bar, surfaces, modules, styling and themes,settings.tdl, keyboard and shortcuts, the command line, troubleshooting) andguide/examples/, where every example is a configuration folder. The tables (module parameters, surface keys, tokens, settings, key names, commands, exit codes) and the example listings are written into the pages betweenBEGIN generatedandEND generatedcomments bytests/guide_tables.py(python -m tests.guide_tables), fromschema_dict(), the argparse parser,pyproject.tomland the example folders.tests/test_guide_tables.pygenerates them again and compares (so a schema or command-line change fails it until the pages are written again), and checks that every module, settings section and example set is on a page, that the links between pages land and that the commands and options the prose names exist;tests/test_guide_examples.pyrunscheckon each of the example folders (no error and no warning), parses the module Python and looks up eachCalltarget in the schema. The guide is not part ofdocs/and is not published by the docs workflow. - Kit fix (the maintainer's KWin check of M5g, line 4): the active window was not marked because the kit's
settings.tdldid not name the Default stylesheet, which carries the.task_item:selectedlook and applies only when named (Style Schema D36); not a shell bug. The M5g kit now writesAppearance { Stylesheets: [Default] }and its checklist says what the mark looks like (a raised background and a 2 px primary border). The M5g generator also removed its whole folder first, which would have deleted the maintainer'sbackup/ofkwinrcandkwinrulesrc(the way to undo the check); it now keepsbackup/and removes the rest, with a test. - Hand-check kits run by themselves (the maintainer's instruction of 2026-11-16: no copying terminal output).
tests/kitlib.py(standard library only, copied into each kit askit_runner.py) describes a kit as steps (auto,manual,real-session; command, sandbox, expectation) and runs them:run-all.shruns every unattended step in a PRIVATE sandbox, writesresults/<id>.txt(command, output, exit code, verdict, the expectation) andresults.txt(one PASS, FAIL or SKIP line per step, a final cleanup line), prints the same lines and exits non-zero on a failure;checklist.txtkeeps only the manual and real-session steps, each with why no session can do it and, for the real session, the exact action to ask permission for. The sandboxes nest:private_bus(adbus-run-sessionwith a privateXDG_RUNTIME_DIR, XDG folders andHOME, the bus at$XDG_RUNTIME_DIR/buswhere a systemd user manager puts it),private_systemd(asystemd --usermanager with an empty target of its own, so none of the desktop's socket units start),private_kwin(a realkwin_wayland --virtual) andprivate_sway; each refuses when the bus or the runtime directory is the real one, scrubsDBUS_SESSION_BUS_ADDRESS,WAYLAND_DISPLAY,DISPLAY,SWAYSOCKand the sound server, and is killed and removed at the end, also on failure (a process that still carries the private runtime directory is killed and reported as a leak). Two facts the kits rest on: KWin 6.8.2 hostsorg.kde.kglobalaccelitself (there is nokglobalacceldprogram here), so a private KWin IS a real shortcut service; and itsorg_kde_kwin_fake_inputtakes pointer and key events from any client on its socket (tests/fake_input_server.py, run in tre's Python forpywayland;tests/kitdrive.pyhas the drivers' helpers), so the keys, clicks and chords of a hand check go through KWin's own input pipeline. Converted: the install-session kit (print, install twice, verify, the stale-unit warning and --force, enable, START the unit in the private manager and checkType=notifyreadiness, kill restarts it, stop, quit does not restart, disable, remove; the login and the real portal's acceptance stay), the tre 0.6.8 kit (Tab in a TextEditor by the shell's focus log, popups closed in the same turn by the Wayland protocol trace with a control, the activation token through a fake program), the M5g kit (the names of/Scripting, the shell's script, a window list that follows open, retitle, activate, minimise, close and fullscreen of client windows, thekwin scriptandkwin rulecommands, and the layer-rule question: in the private KWin a rule that matches both a client window and the shell's layer surface moves the window and leaves the surface on the dock layer), the M6c kit (registration, a key chord opens the panel, a user's change and clearing, a taken key, the off switch) and the launcher kit (open, search, move, Escape, Enter on a script, on a missing program and on a window, detached start, the real starter in a private systemd manager, the global key). Thewindow_probe.pyclient and the kits' throwaway modules are not the shell. The old scripts that touched the real home (1-backup.shto9-undo.shof install-session) are gone; what still runs on a real session (run.sh,run-key.sh,run-taken.sh,backup.sh) starts only when the maintainer runs it. Tests:tests/test_kitlib.pyand one test file per kit, with a skip whenkwin_wayland, the systemd user manager,dbus-run-session,swayor tre's virtual environment is missing. A private systemd manager is asked for once (kitlib.systemd_works()): where systemd is installed but cannot run a private user manager (a CI runner: the manager exits at once) the tests and the install-session kit test skip with that reason. - Correction: the M5g kit's layer-rule step (
tests/kwin/drive_m5g.py,6-layer-rule) said the window rule'slayerdoes not apply to a layer-shell surface in KWin 6.8.2. That was a measurement in a privatekwin_wayland --virtual(the shell's surface was listed with an empty class and the rule changed no layer), and the maintainer has since seen the rule work on his real KWin (2026-11-16). The kit now reports what the sandbox observed and says it does not reproduce the real session;kwin rulestays as it is. What differs between the two is not known. He also reports that every OVERLAY-layer surface (the Popups and Panels withLayer: OVERLAY) sat above the Plasma panels in all his earlier testing, soLayer: OVERLAYis the layer-shell way to be above them and the rule is a separate matter for surfaces on the defaultTOPlayer. - Guide tooling fix (found by CI on the 0.1.2 bump): the generated page of an example folder listed stray
.pycfiles, so its text depended on whether the examples test had run first in the same process (it makes__pycache__), and the page committed from a clean checkout differed from the one CI regenerated.tests/guide_tables.pynow ignores__pycache__; the page no longer depends on test order.
0.2.0 - 2026-11-20¶
- Moved to tesserae-el 0.2.0 (floor
>=0.2.0,<0.3; language TEL 0.1 unchanged). TEL 0.2.0 removed its template form (Template,compile_template,fill_template, the{{ }}delimiter): the shell needed no code change, because it has split slot text itself since the TDL 0.2 move and compiles each slot withcompile_expression. The whole suite passes against 0.2.0 (5670 passed, 1 skipped). tesserae-el 0.1.x is no longer accepted. - tre 0.6.9 (
tesserae-engine>=0.6.9,<0.7; TRE-REQ-020 and TRE-REQ-021). (1)ctx.announce(text, *, politeness="polite", use=None), new in the module contract: a screen reader readstextonce (Window.announceof the window of the use;politenessis"polite"or"assertive"; safe from any thread, it runs on the loop). With nouseit is said for the module's first use on an open window, so a module on two Bars is not read twice; the same text twice running is said twice; it is said although the module's block is hidden. A text that is empty or another politeness raisesValueError. (2) Battery, Network, Media, Audio, Tasks and the Launcher's Applications module use it, and the liveAnnouncerBox (1x1,Live: POLITE), theannouncementvalue and the zero-width-space toggle of the Launcher are gone: what the modules say and when is unchanged. The Tasks module now also says the last window closing, which no live block could (the row is out of the accessibility tree while it is empty). Theannounceparams are unchanged. A user module that used its ownLiveBox keeps working (the block keyLiveis unchanged). (3) The first-configureworkaround of PR #35 is removed: tre now sends aLayerWindow.setmade before the surface exists once it does. A live test readsset_keyboard_interactivity(1)of the Launcher inWAYLAND_DEBUG; the Launcher's key test was run 20 times under 48 busy loops (see the build log for the count). (4) The announcements are tested through the accessibility bus too:tests/test_announce_atspi.pystarts a private AT-SPI bus (tests/atspi_env.py, adapted from tre's) and reads theAnnouncementsignals of a real shell on a private sway (polite and assertive, a repeated text, a hidden module); it is skipped whenat-spi2-registryd,dbus-daemonorbusctlis missing. Not Orca: that is the maintainer's check. - M7e third-party notices: a
NOTICEfile at the repository root, carried in the wheel (dist-info/licenses/NOTICE, throughlicense-filesinpyproject.toml) and in the sdist. It lists the assets inside the package (the Material Design Icons setshipped/Icons/mdi.json, Apache-2.0, with its licence text; the three handle icons andshipped/Images/error.png, made for Tesserae Shell, MIT), whattesserae-enginebundles (the Roboto, Noto Sans Arabic and Hack Nerd Font Mono fonts embedded intess_re/_core*.sowith their licences, the statically linked Rust crates by licence expression, the five shared libraries copied in by auditwheel), and every runtime dependency, direct and transitive, with its version range, the licence its release declares and its project URL; Pillow's bundled native libraries are named.tests/test_notice.pyfails when a non-source file is added to the package, a dependency is added or its range or licence changes, or a dependency's wheel bundles a native library, without the matching line inNOTICE, and builds the wheel and sdist (uv build, from uv's cache when offline) to check that both carry it. The README states the licence of the shipped assets. No change to the shell's own MIT licence or to a dependency range. - M7g, the real-hardware kit (
tests/kwin/prepare_m7g_hardware.pywrites/tmp/tess-kwin-m7g; starts nothing): three lines for what only a person can do, each as exact steps and each script writing its result toresults/and one line toresults.txt(no terminal output to copy). (1) Orca: the shell on the real session with fake NetworkManager and UPower on one private system bus (tests/kwin/fake_hardware.py) and three made-up applications, one command per event, the literal texts Orca must speak (Network disconnected / connected, Battery critical, the Launcher's selected row, No results), and a checker that reads Orca's own debug file. The Orca screen reader is not installed on the maintainer's machine, andorcaon his PATH is another program (the AppImage orca-ide): the kit calls/usr/bin/orcaand says so. The texts are proved in the sandbox:tests/test_kwin_m7g_kit.pystarts the kit's ownorca-1-start-shell.shon a private sway and a private AT-SPI bus and compares the realAnnouncementsignals with the checklist (it found that the M5b battery script set the warning level before the percentage, so the module would have said 82 percent: the kit's copy sets the percentage first). (2) Real Wi-Fi with the wired connection kept: snapshots of the wired device, address and default route before and after joining and leaving a Wi-Fi network, never taking wired down (so the Wi-Fi bars and a captive portal cannot be shown on his machine; the M5c fake shows the states). (3) Real audio: speakers and a Bluetooth headset, the icon and tooltip the Audio module must show printed from the real default output with the shell's own functions. No kit asks for a cable or power pull any more (R-33): the M5c gallery lines that asked for an Ethernet cable pull now point at the fake, and the M3c hot-plug check says a monitor is switched off and on, never unplugged. - M7f known gaps: (1) a Bar's
Reveal_Keyis removed (a Bar is always shown,Auto_Hideis not built, so the key it registered,Show_<Name>, had nothing to reveal): a Bar that writes it is aremoved-keyerror at the key with the hint to delete it,BarDef.reveal_keyand theBarentry of the export'sshortcuts.surface_keysare gone, andschema_versionis 1.10 (a key left the schema; the rule of 1.1 to 1.9 was additive, this one is not). (2) Clockhour_cycle: desktopis 12 hours when the time format of the Clock's locale counts to 12 (T_FMTnames%p,%P,%r,%Ior%l; en_US does, de_DE and en_GB do not) and 24 otherwise; the locale is thelocaleparam, else the first ofLC_ALL,LC_TIMEandLANGthat is set (the shell never callssetlocalefor itself), and one that is unset,C,POSIXor not installed is 24 hours. The shell reads no clock-format value from the desktop. (3) The README's "Not built yet" paragraph is rewritten against the schema's not-built tables and the code. (4) The headers ofTray_Module.tdlandTray_Menu_Module.tdland the Tray module docstring now say what the code does: the menu opens beside the clicked icon, and the shell provides the three Popups withMax_Height: 60%. Importing another_Shell.tdlis not part of this. - Security model for user Python (M7a of the M7 Brief; Security Model, posture A: a module is trusted code in the shell's process, and the guide and README now say so in the maintainer's words). (1) A module's Python was already imported by its file path (
compileandexecintotess_shell_user_modules.<Name>) and nothing puts a folder onsys.path; a test proves ajson.pybeside a module does not shadow the standard library. (2)insecure-permissions(warning, once for each path): the configuration folder, the folders that hold modules, each of your module folders and each module's Python file, when group or others can write it or another user owns it; found byscan, so at start, at every reload and incheck, and the shell starts anyway.tesserae-shell check --strict(new) turns any warning into exit code 1. (3)path-outside-config(error,file:line:column): every path a shell file writes (Import:, a module'sStyle:, aBitmaporSVGSource, apathparam and now itsDefaulttoo, which is made absolute like a call's value, an icon param's file) is resolved by one helper,config/confine.py, and must end inside the configuration folder, aDirectoriesfolder or the package'sshippedfolder after..and symbolic links are resolved (absolute paths insettings.tdlare the user's own and are not checked). This is a behaviour change: a shell file that named an image or SVG elsewhere (an absolute path,~/Pictures/...) now needs the file inside the folder; the M4b gallery kit copies its fixture images in. (4) The module context was read: onlyctx.log(a loguru logger, which hasaddandremove) andctx.dbus.layerare handles to shell objects, and none gives a window, a surface, the registry, the loader or TEL; nothing changed. (5)ModuleHost.callbacksis the running-callback record (modules/running.py,CallbackRecord.running()givesRunningCallback(module, entry, started)orNoneto any thread; two stores and two clock reads for each callback): every module callback on the loop is in it (events,Call, ticks,ctx.call_soon, service hooks, the lifecycle, the window list,on_shown, appson_changed, import and__init__). A callback over 4 ms is logged at debug with the module's name; a module with more than 100 of them in a minute gets oneslow-modulewarning a minute naming the entry point most often over. (6) A lifecycle method that raises marks only that module failed (the log line carries its UID) andModuleHostrestarts it from a fresh import after 1, 2, 4, 8 and 16 seconds (at most 60, five tries) on the shared time source's second tick, which it subscribes to only while a restart waits; then it stays failed until a reload, which gives it five new tries; a restart that ran a minute before failing again starts a new run of tries. The host's clock is a constructor argument.many-threads(warning, once for each module until it is reloaded): more than 16 live threads whose stack runs code from the module's Python file (or its own folder), checked at the end of the first callback after each minute, with no timer. (7) The shell's own log lines were read: none carries a notification, a clipboard value or file content;ctx.announceno longer repeats the spoken text in its two debug lines (it can be a window title or a track name); one debug line (focus: <block> '<label>' (ring)) prints the focused block's accessible label, which for a Tasks entry is a window title, and stays because the live tests and a hand-check kit read it (listed in the M7a report as a decision to confirm). (8) Applications logs ids only (a test with secret arguments proves it). Tests:tests/test_security_*.py.report()now logs a warning finding at warning level (it logged every finding as an error). - M7h volume OSD, a shipped module:
Volume_OSD { duration: 1500, show_name: true }in a Panel that starts hidden (Visible: false), is click-through (Input_Region: []), takes no keyboard (Keyboard: NONE) and sits onLayer: OVERLAY. It follows the sound server throughctx.audioby itself (no Audio use needed) and, when the default output's volume or mute changes, shows an icon, the output's name, aProgressBarand the percent (orMuted: the word, thevolume-officon and a dimmed bar) and hides the Paneldurationms after the last change; a change in that time starts the time again, andduration(above 0, at most 60000) replaces the Panel's ownHide_After. Nothing is shown at start, for the first reading of the server (or the first after it came back), for a switch of the default output (the new output's volume is the baseline) or for a microphone or output-list change. It never announces (the Audio module'sannouncedoes, so a change is said once); the card is aGROUPnamedVolume, <output>, <45 %|muted>holding aPROGRESSBARnamedVolumewith the icon and texts hidden from assistive technology, and no live region. New in the module contract:ctx.surface.show(use=None, *, hide_after=None)shows the Panel the use is on (a shown Panel's hide time starts over;hide_afteris milliseconds for that show; False and one error logged for a use on no Panel), onSurfacePort.show_useandSurfaceManager.show_use. AVolume_OSDin a Bar logs once and does nothing. Guide: the Volume_OSD section of the modules page andguide/examples/05-modules/volume-osd. No brightness part: the shell has no brightness service. - Crash recovery and the watchdog (M7b of the M7 Brief; Crash Recovery and Watchdog). (1)
tess_shell/watchdog.py: a thread asks the loop once a second (call_soon, one callback queued at a time) to store a heartbeat; started on the loop's first turn, after the start sequence. A stall of 2 s logs one warningloop stalled for N snaming the module, entry point and run time fromhost.callbacks.running(), with the traceback of every thread (faulthandler.dump_traceback), the warning again every 5 s; at 10 s it sendsWATCHDOG=triggerwhenNOTIFY_SOCKETandWATCHDOG_USECare set, else logsloop stalled for 10 s, no supervisor can restart itand dumps the tracebacks every 30 s (nothing at all is sent toNOTIFY_SOCKETwithoutWATCHDOG_USEC).WATCHDOG=1goes out every halfWATCHDOG_USEC, only while the heartbeat is under 5 s old.TESS_SHELL_TEST_WATCHDOG_SCALE(tests only) scales every time. (2) The unit thatinstall-sessionwrites hasWatchdogSec=15(in[Service]; the start-limit keys stay in[Unit]). (3)tess_shell/recovery.py:crash.log(faulthandler, all threads, plus the traceback of an unhandled exception; the previous file kept ascrash.log.1and.2; a clean run leaves none), the markerrunningandrecovery.jsonin the state folder; a start that finds the marker logsprevious run ended uncleanlyand counts it;statusandstatus --json(recovery) show the count, the last crash and safe start, also with no shell running. (4) Safe start: the third unclean start within 10 minutes loads shipped modules only, skipping the Python of user modules with one warning that names them;reloador a clean stop ends it. (5)registry.jsonis written within 0.2 s of any change, off the loop thread, temporary file and rename; an unreadable or malformed one is moved aside asregistry.json.corrupt-<time>and rebuilt from the files' UIDs (before: exit 1). (6) A lost Wayland connection (tre ends the loop, or a first frame fails because the compositor died) now stops the modules and saves the registry, then exits with code 69 (LOST_COMPOSITOR) so thatRestart=on-failurerestarts the shell; it was exit 2 without a stop sequence, which the unit never restarted. (7)tests/kwin/prepare_m7b_watchdog.py: the kit that runs it all in a private systemd user manager. - M7f, import of another
_Shell.tdl(the second half of the M7f gaps; Shell File > Structure and Config Discovery > Discovery, D22): a Monitor'sChildrenwriteImport: Parts/Dock_Shell.tdl(a file or a list) and the surfaces of the imported file come in at that place, on that Monitor. The imported file is aShell { }root that holds surface blocks and furtherImport:lines, noMonitor; imports nest, a path is relative to the file that writes it and goes through the M7a confinement (path-outside-config). New rules:import-cycle(for shell files too: the chain is printed),import-not-found(the path looked at),import-failed(at theImport:of a file with syntax, header or schema errors, which are reported at that file's ownfile:line:column),import-twice(a surfaceNameis unique across the shell, so a file is imported once; the vault example that imports one file under two Monitors needs a naming rule it does not give),import-monitor,import-misplaced(a shell file in a surface'sChildren, a module file in a Monitor's,Import:inShell) andmain-shell-surfaces(a Main_Shell with surfaces and no Monitor would show nothing); a name used in two files is the existingname-duplicatenaming both positions. Thenot-builterror for thisImportis gone. A file of surfaces read alone (nothing imports it, or aShells/scan) is checked block by block and follows no import. Hot reload:Watcher.watch_filesalso watches the directory of each imported file that no folder watch covers, on the names it imports; the reloader refreshes that after every scan, a refused one included, so a file just named and still wrong reloads when fixed.Scan.importedandScan.shell_filescarry the imported files; an imported file outsideShells/gets itsUID:too. The export isschema_version1.11 (an addition, as 1.1 to 1.9: a rootImported_Shell, headShell, that allowsBar,Panel,PopupandFrame); the guide's page 4 has the section and an example (guide/examples/04-surfaces/split), the troubleshooting table the rules. - Version policy and
tesserae-shell migrate(M7d; the policy first governs 0.2.0): the guide (The command line) and the README state what 0.x and 1.x promise for the command line, the schema export, TDL files and the module contract. New commandtesserae-shell migrate [--config-dir DIR] [--check] [--json] [--force]: reads every.tdlfile of the configuration folders and applies ordered, idempotent text steps; step0001(TDL 0.1 to 0.2,tess_shell/migrate/slots.py: rewrite_slots, the shell's own scanner of the 0.1 slot rules until the library ships one) rewrites{{ expression }}to<| expression |>andTDL: 0.1toTDL: 0.2and changes no other byte (checked against the TDL 0.1.1 reader on 300 generated files); a slot holding|>outside a quote is reported and its file left whole.--checkchanges nothing and exits 1 if a file would change; the originals are copied to<config>/.migrate-backup/<timestamp>/before anything is written and each file is replaced through a temporary file and a rename; exit 2 when a file could not be migrated, exit 4 while a shell holds the instance lock (--forceoverrides); the verdict ofcheckon the result is printed (resultin--json). Changed: aShell:pin newer than the shell is nowshell-too-old(it wasversion-pin) with the hint "install tesserae-shell X.Y or later" and compares major.minor; aTDL: 0.1file that holds a{{ }}slot is refused withtdl-old-versionand the hint to runtesserae-shell migrate(it showed a syntax error before). Deprecation machinery (tess_shell/schema/deprecations.py, empty table in 0.2.0): a deprecated key or block warns withdeprecated-key, a command withdeprecated-commandon standard error, each naming the replacement and the release that removes it; the schema export marks itdeprecated: {since, removed_in, use}(no schema version change while the table is empty); step0002renames it. - M7a2, the module process test (
60 Quality/Module Process Test.md; test infrastructure only, no product file changes):tests/perf/module_process_test.pymeasures the shell in posture A (every module in the shell's process, the product as it is), B (a process per module file) and C (only the user's modules in processes) on a private headless sway, private buses and the fakes (NetworkManager, UPower, MPRIS, StatusNotifier, KWin virtual desktops, PulseAudio), and writestests/perf/module-process-results.mdwith the machine and versions, start time toREADY=1, idle CPU, wake-ups and memory of the whole process tree, value to screen, throughput, hang, crash and reload containment, a computed verdict table of the decision rule (thresholds are named constants; the maintainer decides) and the cost in code of the move. It refuses to start when the 1-minute load average is above 0.5 (--allow-loadoverrides it and the report says so);--smokecuts every duration to prove it works;tests/test_module_process.py(about 18 s: B1 and B2 start the default shell's modules in processes, a value reaches the surfaces, a hung and a killed module are contained and restarted, the refusal under load, the verdict table on canned numbers) is collected andtests/test_module_process_smoke.py(the whole smoke run, about 2 minutes) is markedperf. The harness runs the shell on private data only (made-up desktop entries, privateHOMEandXDG_*, no icon theme). The prototype of B and C lives intests/perf/proto/(not in the wheel): it patchesModuleHost._importat run time with a stub class made from the module file's syntax tree, runs the module in a child (JSON lines over a socketpair, a shared-memory record of the running callback read by a watchdog), and keeps the module host's own code unchanged; services are B1 (each process opens its own D-Bus, PulseAudio and tray connections) or B2 (the shell keeps them and proxies calls and signals). Selected byTESS_PROTO_POSTUREandTESS_PROTO_SERVICES, read only bytests/perf/proto/run_shell.py; the shippedtesserae-shell runis unchanged.pyproject.tomlallows long lines in those files (the report's markdown). - The performance budgets read (M7c of the M7 Brief; Performance Budgets, D-045).
tests/perf/read_budgets.py(python -m tests.perf.read_budgets;--quickfor the smoke,--allow-loadto start above a 1-minute load average of 0.5, which it refuses otherwise,--only,--estimate) reads every budget of the vault's ledger on a private headless sway with private buses and fakes and writestests/perf/budget-results.md(machine, load, every number with its spread, PASS or FAIL against the vault's number and by how much a budget is missed; no budget value is changed);tests/perf/budgets.mdsays how each of the 26 budgets is measured and which test guards it. New headless regression tests, in the style of the idle tests:tests/test_budget_idle.py(wake-ups per thread group of a running shell; the 60 s variant isperf),test_budget_start.py(the steps of the start),test_budget_reload.py(10 surfaces; leaks,perf),test_budget_watchdog.py(the heartbeat's rate),test_budget_dbus.py,test_budget_popup.py,test_budget_bind.py,test_budget_modules.pyandtest_budget_logging.py. The numbers of the first runs were taken on a loaded machine (a smoke of the harness); the reading is the maintainer's full run on an idle one. - M7c results and three budget values (the maintainer's decisions of 2026-11-19 on the four misses of the first real reading,
tests/perf/budget-results.md, FULL mode, idle machine): B02 idle wake-ups is now at most 6 per second (read 5.16 with one Bar, a Clock and a Text), B12 the Launcher toggle's loop callback at most 2 ms p99 (read 1.75), B14 twosetShortcutKeysper action as the client library sends them (read 2); B18, the bind of a typed tree of 3,101 nodes, stays 15 ms as a target (read 34.4 ms) and is open work. The harness constants,tests/perf/budgets.mdand the report text carry the new limits. - A reload that closes and opens surfaces no longer keeps the closed ones (SHELL-REQ-001). tre's
Appkeeps every window it was given for good, and the listeners the shell had set on a closed Panel's window held itsSurface, itsViewand so its whole tree: a reload that took nine Panels away and brought them back kept about 5 MiB of Python heap (13,000 objects, 9Surfaces, 142 nodes) and about 6 MiB of resident memory per cycle, found by a realtess_re.Appin process and on a private sway. The manager now frees a surface's window listeners and nodes when tre has closed the window and the manager has let go of it (free_window,SurfaceManager._ended, either order); what stays is tre's own stub of each closed window (about 7 KiB of Python heap and 0.3 MiB resident per cycle of nine), a candidate tre request. A reload that changes only a style never leaked. Newtests/test_reload_leak.py(12 s: 30 reloads of a Bar and nine Panels, liveSurface,ViewandLiveTreeand the Python heap between reload 6 and reload 30; fails without the fix; one strictxfailmarks tre's window objects) overtests/reload_rig.py(the real reloader over a real, never runtess_re.App), and the reload case beside the Popup case of B16 intests/perf/budget_inproc_ui.py. - The lean B of the module process test (
60 Quality/Module Process Test.md, open question 3; test infrastructure only, no product file changes):tests/perf/module_process_test.pytakes the cellsL1andL2(--postures=A,L1,L2), the postureLoftests/perf/proto/parent.pyin which only the module files with Python of their own run in a process and the others are imported in the shell by the product's own code. "Python of its own" is read from the file's syntax tree (has_own_code): rulestrict(default; a class that is onlypass, a docstring or...) or--lean-rule=validate(also the widgets whose Python is only avalidate_usecheck and literal constants). On the default shellstrictkeeps 3 of the 22 module files in the shell (Menu, Task_Item, Tray_Item) andvalidate11, not the 13 the vault expected. The verdict table has L rows against A with the same thresholds, the decision rule names L when B fails and L passes, and a run without B says so;--latency-repsand--contain-reps,--out(a lean run writes a report of its own), the run time and the expected duration of the lean run (about 16 minutes) are in the report. New fast tests:tests/test_module_process_lean.py; the smoke test covers L1 and L2. - M7a2 results (the maintainer's decision of 2026-11-19: posture C):
tests/perf/module-process-results.mdis the first full measurement (A, B1, B2, C1, C2; 43 min, idle machine): B fails only the memory row (+372 MB PSS against +150 MB: 22 children of about 17 to 19 MB each), C passes every row (about +17 MB per user module); value to screen p95 under 1.2 ms in every cell; a hung module process is contained (the picture keeps painting) and restarted 8 s after the hang began, a killed one in about 1.1 to 1.3 s.module-process-results-lean-strict.mdandmodule-process-results-lean-validate.mdare the lean B delta (A, L1, L2): the best variant (validate, L2) is +185 MB and still fails memory; 19 of the 22 module files have code of their own under the strict rule, 11 under the validate rule (not the 13 the note guessed). Next: build posture C. - A closed Popup no longer keeps what the shell built for it (the Popup half of SHELL-REQ-001). tre's
Appkeeps every window it was given for good, and the listeners the shell had set on a Popup's window (and the nodes' listeners under it) held itsOpenPopup, itsLiveTreeand its content tree: with a realApp, 100 open/close cycles kept 100 moreOpenPopup,LiveTreeandPopupWindowobjects and 5.7 KiB of Python heap each, through every path (call and close, replaced by another popup, opened while closing, dismissed by the compositor, tooltips, submenus).Popups._closednow frees the window withfree_window(the manager's, from the reload fix) when tre reports it closed. After 100 cycles the shell's own object counts are flat and the heap grows by about 1 KiB per popup, which is tre'sPopupWindow(TRE-REQ-028:Appshould drop a closed window). Tests:tests/test_popup_leak.py(2 s, realtess_re.App, six paths; the tre part is a strictxfail);popup_residueoftests/perf/budget_inproc_ui.py(B16,tests/test_budget_popup.py) now runs on a realAppand reads the heap per cycle too;tests/test_popup.py'srigtakes anapp. Frame painter windows and Panels inDebug.Panel_Hide: CLOSEkeep the same retention until tre drops closed windows. - A large typed tree binds more than twice as fast: 3,101 nodes bind in about 16 ms (build, attach, dispose; 34 ms before, B18's target is 15) on a machine shared with other work. The binder keeps no
Wirefor a block that listens for nothing (no handler, state style, transition, name, control key,Enabled: false,Focusable,Checked,Selectedor button role): such a block hasEntry.wireNoneuntil a reload gives it one of those things;View.updateand the tooltips only ever reach named blocks, which always have a wire. The position index that translates a tre error is made only when tre refuses the tree (planning again), a plan no longer copies the child props, a block with no state style orTransitionskips both checks, the index passes (wires, controls, Marquees, Tab order) share one list of entries,Entry.childrenof a leaf is one shared empty tuple, andconvert.pytestsisinstanceagainst tuples (A | Bbuilds a union at every call). No change to what is built:tests/test_binder_golden.pycompares the entries and tre's own properties of the standard modules and of typed trees with a record made before (tests/fixtures/binder_golden.json,python -m tests.binder_goldenwrites it);tests/test_budget_bind.pybounds the bind of the big tree at three times the target and asserts it gets no wires;tests/test_binder_wires.pycovers what is wired and a reload that wires a plain block.tests/perf/measure_bind.pyreports the steps;tests/perf/bind-results.mdhas the before and after. - Posture C: a user module's Python runs in a child process (
60 Quality/Module Process Test.md, decided 2026-11-19;60 Quality/Security Model.md). A user module is a<Name>_Module.pythat does not ship with the package (config.discovery.is_shipped); it runs in ONE process per module file, started withpython -I -m tess_shell.modproc.childover a socketpair (JSON lines; tuples, bytes and dicts with other than string keys are tagged; the shell never unpickles a child's data) and a shared-memory record of the running callback. Shipped modules and the default shell are untouched: no process, no thread, the same start (tests/test_budget_start.py). New packagetess_shell/modproc/:static.py(the file's syntax tree read, never run: the stub class the host loads in place of the module, andcheck's findings),wire.py,child.pyandchildctx.py(the process: the realModuleContextwith proxy ports, so every service stays in the shell, B2),broker.py(each call lands on the shell's real helper of the module's context; a use key that is not the module's is refused),stub.py,supervisor.py(spawn, messages, failures, watch, the start gate),probe.py(check --import-modules). The module host gets one port (host.processes,modules/process_port.py);ActionSpec,action_specandactions_ofmoved tomodules/actions.py;ctx.on_ticktakes anyTickSource. Behaviour: a callback that runs 2 s is named, 5 s gets the process killed (its threads' tracebacks go to its stderr first) and the M7a back-off restarts it; a process that ends is the errormodule-process;slow-moduleandmany-threadsare measured in the process and forwarded under the same codes; the watch is read from the shell watchdog's thread (Watchdog.on_poll: no thread of its own);PR_SET_PDEATHSIGand the pipe's end take a process down with the shell; SIGTERM, SIGINT and SIGHUP are ignored by a process (systemd's stop signals the control group, andstop()must run first);NOTIFY_SOCKETand the other service variables are not inherited;python -Ikeeps the module's folder offsys.path.READY=1and therunningstate are sent from a loop callback when every process started at the start has answered (started,failedor ended) or after 10 s (a warning names the modules still starting); with no module process the gate opens at once, in place. The surfaces never wait for a module, so a user module's first value can come after the first paint.ctxmembers that answer at once on the shell's loop (is_popup_open,update_popup,focus,surface.hide,apps.search,icons.*) are a request with a 2 s timeout (ShellCallTimeout, naming the module and the call);dbus.availableis mirrored;ctx.on_tickis driven by the shell's one time source;Event.stop()has no effect (one warning per module); an@action's result reachesCalland the command line through a future (ControlService.on_loopawaits it; a timeout says "the module's process did not answer"). A reload of a user module's Python spawns the new process beside the old one and stops the old one only when the new one has imported (a file that does not parse, or has no class or two, is refused at once with the old module running; a failed import is reported when it arrives and the old module runs on).checkreads the Python of your own modules without running it (module-import,module-classes,module-no-python);check --import-modulesimports each in a throwaway process (5 s each).statuslistsmodule_processes(only when there are some) and the client prints a line for them.Debug { User_Modules_In_Process: true }keeps user modules in the shell (a restart applies it;schema_version1.12, additive). The user-facing security statement changed (guide page 2, README,tests/test_security_docs.py); guide pages 2, 5, 7, 9 and 10 describe the process.tests/test_watchdog_live.pynow keeps its hanging module in the shell with that setting (the M7b watchdog watches the loop), and waits for a user module's Python to run after a reload. Tests:tests/test_modproc_{static,wire,host,services,failures,reload,start,control,check,live,child}.py,tests/modproc_rig.py. ShellCallTimeoutis exported fromtess_shell(the maintainer's decision of 2026-11-19): a module that runs in its own process (posture C) catches the timeout of a synchronousctxcall (update_popup,is_popup_open,focus,surface.hide,apps.search,icons.*, 2 s) by name:from tess_shell import ShellCallTimeout. It is still aRuntimeErrorsubclass, so anexcept RuntimeErrorwritten earlier keeps working; the class lives inservices/api.pybeside the other errors a module can catch, and the module process raises that class.- M7a2, the product cell P (cell
Pof the module process harness: posture C as built, no prototype patch):--postures=A,Pruns A and P in the default and the plus-three-user-modules shells and the probe cells, with verdict rows for P, a 'Which C' comparison and a 'product only' command; the real run (tests/perf/module-process-results-product.md, 21 min on an idle machine) passes every row: default shell equal to A, with three user modules start +128 ms, wake-ups +0.32 per second, memory +51 MB, value to screen p95 0.66 ms, hang and kill contained. - Two budgets moved by the maintainer (2026-11-20), after the idle re-read of 2026-11-19 (
tests/perf/budget-results.md, B18 read 19.2 ms and the seconds-Clock row of B01 0.54 %): B18, the bind of a typed tree of 3,101 nodes, is now at most 20 ms (it was 15 ms; the bind was 34.4 ms before the work of #88), and B01, idle CPU, is now at most 0.6 % of one core (it was 0.5 %). The harness constants,tests/perf/budgets.md, the report text and the collected bind bound (three times the budget, 60 ms) carry the new values.
Unreleased¶
- TSH-085: a Marquee text pauses while the pointer is over it (the text stops where it is; a pending wait is held) and goes on when the pointer leaves. Under reduced motion, when disabled or with
Animated: falsenothing scrolls, as before. - TSH-063: the shape scale has the two steps the Shape spec has and the shell lacked:
$shape.medium_large(12) and$shape.extra_large(28). The shell'ssmall(4) andmedium(8) keep their names and values; they are the spec'sextra_smallandsmall. The schema export is 1.16. - TSH-062: the shadow used when a theme has no
Elevation.Maxis#00000066like the Default theme's (it was#00000040). - TSH-060:
Easing: EMPHASIZEDis the curve (0.2, 0, 0, 1) the Motion spec gives it until engines take path easing (it was 0.05, 0.7, 0.1, 1.0), and the Default theme'sReduced_Motionblock now carries the zero durations the shell forced in code. - TSH-044: the hover fill of a Launcher (or any
list_item) entry is theoutlinecolour, notsurface_raised, which is the card's own fill (hover was invisible); the text on it keeps 4.5 to 1 in the dark and the light scheme. - TSH-038: a Label ends a text that is wider than it with an ellipsis by default (was CLIP;
Overflow: CLIPstill cuts), and the Network connection name is bounded to 160 px and ends with an ellipsis. - TSH-036: the Badge dot is 6 by 6 and the pill 16 high (minimum width 16, 4 px side padding), its digits in the caption size at weight 500 (were 8, 18, 11 px at 600), as the Badge spec fixes.
- TSH-024: a disabled control is drawn at opacity 0.38 (was 0.5), as the Motion/State spec fixes; the default stylesheet and the TextField default agree. Hovered and pressed (0.85, 0.7) are unchanged.
- A shell with no
Appearance.Stylesheetskey now gets the shippedDefaultstylesheet (ADR-0022; before, no stylesheet, so a TextField or List, and so the shipped Launcher, showed the engine's black text, unreadable on a dark desktop).Stylesheets: []still means none, andtesserae-shell checkprints the noteappearance-no-stylesheetwhen it is empty and a TextField or List is in use.Stylesheets: [Default]can be dropped from a configuration; one that names it keeps working. The schema export is 1.13: theStylesheetssetting shows[Default]as its default. - M7k, click-away closing for the Launcher. A Panel on
Layer: OVERLAYwithKeyboard: EXCLUSIVEthat holds the Applications module (the shippedLauncher, or your own) hides when you click on the desktop or on another application's window, and when another surface of the shell takes its keyboard (a keyboard that is only lost closes nothing: the seat's last keyboard device going away does that). While the Panel is shown the shell keeps a transparent surface the size of the output on layerTOP, under the Panel; a press on it hides the Panel and is taken by it (click again to use what is under it). The first build used tre's 1 by 1 popup grab and was reverted: on KWin the grab took the keyboard from the Launcher, so nothing could be typed (maintainer's hand check, 2026-11-20; kit step3b-clickawaynow types and clicks in a private KWin). A Panel on another layer, or without the Applications module, is unchanged. - M7i, content-sized Panels (tre 0.6.10, TRE-REQ-022). A Panel's
WidthorHeightcan beAUTO: the surface is the size of its content, padding included, and follows it while the Panel is open (one request to the compositor per change);Max_WidthandMax_Height(pixels) clamp it, content beyond the clamp is clipped (put it in a scroll view). A bottom- or top-anchored Panel keeps its edge, an unanchored one stays centred. Refused with an error: AUTO withAttach_To,MovableorMeld, or on an axis stretched between two opposite anchors;Max_*on an axis that is not AUTO; EXPAND is still not built. The shippedLauncheris nowWidth: 480, Height: AUTO, Max_Height: 400: a short result list leaves no empty space. A Panel cannot be theAttach_Totarget of another when it is content-sized (the attached Panel is not created and the log says why). Schema export 1.13: the Panel keysMax_Width,Max_Height, and AUTO among the units of a Panel's size. - M7j. (1)
ctx.announcegoes through ONE window (the highest surface: a Frame's, else the first Bar, else any open surface), so the order of announcements is the order of the calls (tre 0.6.10 keeps the order within a window);useno longer picks the window. (2) The active descendant (ADR-0023, tre 0.6.10):TextInput { Active_Descendant: results }in a module's layout names aListcalled in the same layout; a screen reader then reads that List's chosen entry as the current item of the field while the keyboard stays in it, and the relation is cleared when no entry is chosen and set again when the entries change. A name that is missing or is not a List is an error with the nearest names; two fields may name one List. The shippedLauncheruses it; its polite announcement of the selected row stays as the fallback. Schema export 1.15 (the TextInput param and the block key). - UX adoption, TSH-007 (Workspaces tooltip). Each desktop button of
Workspacesis now aWorkspace_Itemmodule called in theFor(likeTask_Itemin Tasks), so the tooltip with the desktop's full name sits on the button itself (a Tooltip written insideForis not built). The visual is unchanged; the node ids of the buttons areWorkspace_Item@...roots, notDesktop. Schema export 1.18 (the new module). - UX adoption, tooltips on the controls (TSH-001, 002, 003, 071, 007 in part). A tooltip belongs to a control, never to a group or a row (Tooltip rule, AC-TIP-1). Battery and Network: the tooltip and the accessible label/description moved from the group root to one inner
Contentblock with role IMG (the root is a plain box that keeps the size). Audio: one tooltip on the mute button and one on the volume slider, none on the root. Media: the root tooltip is gone (the title Marquee keeps its tooltip with the whole text when it is cut). Task Item: the tooltip (the full title) is on the item and its title Marquee opens none of its own: newMarquee_Textparamtooltip(default true) and Marquee block keyTooltip_Auto(default true;falseturns off the Marquee's automatic tooltip inside a control). Not done: the Workspaces desktop button (a Tooltip insideForis not built). Schema export 1.16. - UX adoption, tooltip behaviour (ADR-0011, TSH-005, 006). The default
Exit_Delayof a tooltip is 150 ms (was 200): the grace in which the pointer can cross from the block onto the tooltip. A press, Escape or a scroll on the surface dismisses the tooltip that is open (or waiting for its delay) and it does not come back until the pointer has left its block and entered again; keyboard focus (with a ring) on a block that has a tooltip shows it at once, and losing the focus ends it. Not done: window focus loss (a layer surface has no focus of its own to lose) and a scroll of a scroll container (only the surface's wheel is heard). -
UX adoption, keyboard reach (TSH-011, 012, 013, 016, 017). A Box or FlexBox that has the keyboard raises
On_Key_Down(event.key, modifiers, event.rect), as a TextField did. Tray: Menu or Shift+F10 on a focused item opens its menu (the secondary click's twin). Tasks: Delete on a focused task closes its window. Audio: on the focused mute button Up and Down change the volume by one step and Menu or Shift+F10 opens the list of outputs. A focused Movable Panel moves with Alt and an arrow (8 px, Shift 32 px), stays on the output and saves its place as a drag does (the Panel needsKeyboard: ON_DEMANDorEXCLUSIVEto hear keys). The Text Editor's module comment no longer says Tab cannot leave the field (it has since tre 0.6.8). Schema export: the Box and FlexBoxOn_Key_Downhandler (1.19, after 1.17 and 1.18 of the other open PRs). -
UX adoption, a Bar that can be hidden (TSH-051, part a of TSH-010).
Bar { Visible: false }starts the Bar hidden, andShow,Hide,Toggleand theShow_,Hide_andToggle_shortcuts now take a Bar's name as they take a Panel's. A hidden Bar reserves no space (exclusive_zone0, root not drawn, no input); showing it gives the space back, also after a fullscreen window covered it.Reveal_Keystays removed;Auto_Hideand the Shortcut Mode reveal are the next two parts. Schema 1.20. - UX adoption, density levels (TSH-034, 035, 037 in part; ADR-0002). Three levels,
DEFAULT(40 px controls),COMPACT(32, the shell's default) andDENSE(28), chosen byAppearance { Density }insettings.tdl(applies on reload) and, per surface, byDensityon a Bar or Panel. The sizes are a new theme token groupDensity(density.control_height,row_height,menu_item_height,icon_size,row_padding_x,icon_label_gap,field_padding_x,tree_indent,chevron_box): the base values are the DEFAULT level andModes { Compact, Dense }replace them. A module reads them in a slot as<| density.control_height |>(the surface's own level). Button, Toggle, Checkbox, MenuItem and the Applications rows take their heights from them: the Toggle and the Checkbox are now 32 high at COMPACT (their painted track and box are unchanged and centred), a MenuItem 32 (was 28) and a Launcher row 32 (was 40). The Applications module sendsrow_countin place oflist_height. Not yet: the TextField, tray and task items, tree rows (no shipped tree). Schema 1.22. - UX adoption, focus order (TSH-014, AC-KBN-2). A
Tab_Indexabove 0 is an error (tab-index-positive) and the order of the Tab stops of a surface is the order of the file;Tab_Index: 0is still accepted and changes nothing, and a negative or non-integer value stays abad-value. The order of the surfaces among themselves (Next_Focus,Previous_Focus, the first surface of shortcut mode with no Frame) is the newFocus_Order: [Names]key of theShellblock: the names it lists come first in that order, the others follow in the order of the file; a name no surface has is the warningfocus-order-unknownwith the nearest names. Removed: the binder's tab ranking (Entry.rank,tab_order,TAB_INDEX_MAX) and thetab_indexfield of the Bar, Panel, Frame and edge models. Newtesserae-shell migratestep 0003: a positiveTab_Indexon a block is removed, one on a surface becomes its place inFocus_Order(a file of surfaces made to be imported keeps it and the loader says so). Schema 1.23. - Fixed:
Line_Heightis a height in pixels (as its documentation and thetype.*.line_heighttokens say), but the binder passed the number to tre, whoseline_heightis a multiple of the font size:Line_Height: 20made a 280 px line. The binder now divides by the block's font size (tre's own 16 when none is written), on build, on a slot update (a newFont_Sizekeeps the pixels) and in a state style. No shipped style set it, so nothing changes in the shipped look. - UX adoption, TextField density (TSH-034, follow-up of the density levels). A TextField is
40,32or28high at the DEFAULT, COMPACT and DENSE level. Its default padding is no longer built into the expander: the Default stylesheet's ruleTextField { Padding: $density.field_padding }gives it (a stylesheet list without the Default one gives a field no padding, as it gives it no look), and the theme tokendensity.field_padding_xis replaced bydensity.field_padding, the four sides:[12, 12, 12, 12],[8, 8, 8, 8],[8, 6, 8, 6]. Visible at COMPACT (the spec's values): the side padding is 8 (was 10) and the field 32 high (was 28). The spec's vertical padding assumes a 20 px line; tre lays 14 px body text out 16 px high, so the vertical values are 12, 8 and 6 (the field height is what is exact). Schema 1.24. - UX adoption, density for the items of a Bar and for a Popup (TSH-030, 033, TSH-034 follow-up). New tokens
density.item_size(tray item, task button and workspace button: DEFAULT 32, COMPACT 24, DENSE 24; 24 is the least a pointer target may be) anddensity.item_icon_size(20, 18, 18). The owner keeps today's 24 at COMPACT, which is a deviation from the spec's icon button (40, 32, 28); the Orchestrator records it.Tray,Tasks,Tray_ItemandTask_Itemtakeicon_size/size0 as "the level's" (the new default; 18 before, the same at COMPACT and DENSE, 20 at DEFAULT; the icon itself is still drawn from a 18 px pixmap).PopuptakesDensitylike a Bar and a Panel. Schema 1.25. - UX adoption, elevation levels (Elevation, ADR-0006; the owner adopted the MD3 baseline). The theme's
Elevationgroup takesLevel_1toLevel_5blocks besideMax: the MD3 two-shadow lists (key at 30 percent, ambient at 15 percent) for 1, 3, 6, 8 and 12 dp, in the shipped Default theme; they are tokens$elevation.level_1...$elevation.level_5.Elevationof a block takesLEVEL_0toLEVEL_5as well as a percentage (which keeps scalingMax);LEVEL_0is no shadow. A theme that lacks a level falls back to the Default theme's. Shadows only: the tonal container roles (surface_container_*) are not in the shell's colours. Schema 1.26. - UX adoption, the Frame's shadow (TSH-054, AC-FRM2-11). A Frame's
StyletakesElevation(a percentage of the theme's largest shadow, or a level once the theme hasLevel_ntokens) andShadows: the ring shader paints the shadow the ring casts from its inner edge into the opening, up to four shadows, the first on top, with theblur(a Gaussian of sigma blur / 2) andspreadof each and the colour's alpha;XandYare not used (a ring has no direction). The shadow lies in the opening, which the ring's contour leaves click-through, so it takes no click. A melded body is part of the ring, so its shadow follows it.Shadow_Bleedis accepted and has no effect (the painter covers the output). Drawn by the ring shader only: a Frame that is drawn with paths (Debug { Frame_Blend: PATH }, anOpacitybelow 1, a translucent colour, anotherFrame_Join) has no shadow and the log says so once, because tre's shadow of a path with a hole is the shadow of its outer contour (the ring would be filled in). Schema 1.27. - Pinned
tesserae-engine>=0.6.11,<0.7(tre 0.6.11). The tre defaults the schema export reads changed with it: a text's default colour is#1d1b20(the scheme'son_surface, was black) and a block'shit_testablereadsNoneby default (the kind's own); the AT-SPI test accepts the namespace-named window node of a layer surface (the click catcher). No shipped look changes: the Default stylesheet sets the colour of text. - UX adoption, state layers (State Layers, ADR-0009; owner item 22; tre 0.6.11). New style keys
Hover_Layer,Pressed_LayerandFocus_Layer(a colour role) on Box, FlexBox, Rectangle, ScrollBox and TextField: tre draws the layer over the block's fill and border, below its children, one at a time (pressed over focus over hover), faded in the engine. Their opacity is the new theme token groupState($state.hover0.08,$state.focus0.10,$state.pressed0.10,$state.dragged0.16 for later): the binder gives the colour that alpha, and a colour that already has an alpha ("#FFFFFF14") is drawn as written. The Default stylesheet gives Button, Toggle, Checkbox, list rows, MenuItem, tray, task and workspace items theon_surfacelayers; the hover opacity literals (Toggle 0.85, Checkbox 0.85, pressed 0.7) and the hand-made hover fills and Button border colours are gone. A pressed MenuItem is still filled primary. Fade time is tre'sstate_layer_ms(100; the spec's hover fade is 15 ms: recorded as a deviation, one value for every state). Deviations: focus layer only with keyboard focus (as the spec). Schema 1.28. - UX adoption, the focus ring is tre's outline (TSH-021, AC-FOC; tre 0.6.11). The ring that keyboard focus shows was a 2 px
Shadowsentry in the:focusedstate, with no gap and only on blocks that take shadows; it is now an outline:Outline_Width3,Outline_Offset2 (a gap the page shows through) andOutline_Colorcolor.primary, from the new theme tokensspace.focus_ring_widthandspace.focus_ring_offset. It shifts no layout, leaves a block's ownShadowsalone (they no longer share the state), and a:focusedrule or a stylesheet can change it with the new style keysOutline_Width,Outline_OffsetandOutline_Color(Box, FlexBox, Rectangle, ScrollBox, TextField). An ancestor that clips its children (a ScrollBox's viewport) clips the ring at its edge. The shell still decides when the ring shows (keyboard focus only, a click shows none, a disabled block none), as before. Schema 1.29. - UX adoption, the engine's baseline colours follow the look (tre 0.6.11
scheme). Every window the shell makes (Bars, Panels, Popups, the Frame's painter and strips, the click catcher) now getsscheme(lightfor a light desktop, elsedark) and the baseline roles its theme names (color.surface,on_surface,on_surface_mutedas tre'son_surface_variant,primary,on_primary,error,outline), live when the desktop changes light or dark. What tre draws with no colour given (an unstyled text, a text input's caret and selection, a scroll thumb) follows the theme instead of tre's own palette, with or without the Default stylesheet. A token the theme lacks leaves tre's role as it is. No schema change. - UX adoption, the scrollbar of the spec (Scrollbar and Scroll Container; tre 0.6.11 scrollbar properties). A
ScrollBox(the List's viewport, a TextBox) now has a thumb 8 px thick in a 12 px hit area, 2 px from the edge, at least 32 px long, with the corner radius 4, at 0.70, 0.80 and 1.00 opacity at rest, under the pointer and dragged, in the theme's muted ink, and a wheel notch and an arrow key of 40 px and a Page step of 0.9 of the viewport; before, a one-axis view kept tre's legacy look (a 4 px thumb). The sizes are the new theme token groupScrollbar($scrollbar.width,hit_width,margin,min_length,gutter,radius,opacity,opacity_hover,opacity_drag,wheel_notch,key_line,page_fraction); the thumb colour iscolor.on_surface_muted. NewScrollBoxstyle keysScrollbar_Width,Scrollbar_Hit_Width,Scrollbar_Margin,Scrollbar_Min_Length,Scrollbar_Gutter,Scrollbar_Radius,Scrollbar_Opacity,Scrollbar_Opacity_Hover,Scrollbar_Opacity_Drag,Scrollbar_Fill,Scrollbar_Fill_Hover,Scrollbar_Fill_Drag,Scrollbar_Track_Fill,Scrollbar_Show(OVERFLOW, ALWAYS, AUTO_HIDE, NEVER) andScroll_Wheel_Notch,Scroll_Key_Line,Scroll_Page_Fractionchange one thing, in the block'sStyleor a stylesheet rule. A Popup whose content is taller than itsMax_Height(the Tray menu) scrolls in a view with the same scrollbar. Not done: the tonal track andScrollbar_Showper axis. Schema 1.30. Appearance { Scheme: DEFAULT | LIGHT | DARK }insettings.tdl(TSH-061). DEFAULT (the default) follows the desktop through the Settings portal, as before; LIGHT or DARK uses that scheme always and ignores the desktop's, also when it changes while the shell runs. Applies on reload (taking the key out follows the desktop again from the next portal change).Appearance.scheme_overridecarries it. Schema 1.31.- One tooltip card (TSH-004, AC-TIP-13, AC-TIP-21). The plain tooltip of the spec: a fill of the new theme token
color.inverse_surface, the corner radiusshape.smalland no shadow, text incolor.inverse_on_surface(new tokens, Dark, Light and High_Contrast; 14 to 15 to 1 in Dark and Light). An inlineTooltip { }starts from that card (a key written in itsStylereplaces the card's own) and so does theTooltip: "text"form, whose padding is now 8 by 4 (was 12 by 8). The eight literal cards of Audio (two), Battery, Clock, Network, Task Item, Tray Item and Workspace Item (asurface_raisedfill, radius 8, a 20 percent shadow, padding 12 by 8) are gone: they take the card and write only their content, in the inverse ink, with the padding 8 by 4. Visible: tooltips are now light on a dark desktop (dark on a light one), square-cornered at 4, and flat. Schema 1.33. - Contrast over every role pair of the theme in Dark, Light, High_Contrast and High_Contrast on a Light scheme (TSH-042, AC-COL-3, AC-COL-4):
tests/test_contrast.pychecks text pairs at 4.5 to 1 and pictogram, border and fill pairs at 3 to 1, and keeps the failures it knows in a list that fails when one changes: the Darkoutlineonsurface_raisedis 2.69 to 1 (a Button's border, a card's edge); the High_Contrast mode on a Light scheme keeps the Lighterror(3.21),warning(3.54) andsuccess(3.27) on black. Theaccenttoken as text is 4.38 (Dark) and 3.82 (Light) onsurface, 3.90 and 4.11 onsurface_raised; nothing shipped uses it as text (a test says so), so it is a token finding for the vault (TSH-043). No code change. - Colour values after the UX decision ADR-0025: the Dark
outlineis#5F7188(3.61 to 1 onsurface, 3.21 onsurface_raised), and the High_Contrast block names its ownError#F2958C,Warning#E6BB6AandSuccess#8CCB9A(it inherited the Light values on black: 3.21 to 3.54 to 1, now 9.45 to 11.68). The contrast test's list of known violations is empty;accentis never text (it passes 3 to 1 as a pictogram or border everywhere). The Menu Item hover is a state layer, not an outline fill. - F6 and Shift+F6 cycle between the shell's surfaces (TSH-015, AC-KBN-3). From a surface that has the keyboard, F6 enters shortcut mode and steps to the next surface in
Focus_Order/ file order (Shift+F6 the previous one); in the mode it is Next_Focus and Previous_Focus; Ctrl, Alt or Meta with F6 are left alone. It reaches the shell only while one of its surfaces has the keyboard (a Bar clicked withKeyboard: ON_DEMAND, a Panel); from another window,Enter_Shortcut_Modestays the way in (a global F6 would take the key from every application). No schema change. - State cues that are not colour or dimming alone (TSH-023, TSH-073; AC-MOD-TIT-7, AC-MOD-TRI-7). A minimised Task Item keeps its dimming and gains a 2 dp bar under the item; a Tray Item that needs attention keeps its
warningborder and gains a 6 dp dot in the corner (the Task Item already had its dot). No schema change. - Ctrl+C copies the selection of a selectable Text (TSH-081, AC-SEL-1, AC-SEL-4, AC-SEL-10): from a Bar, a Panel or a focused Popup the selected pieces go to the clipboard, joined with a newline; a focused text input keeps its own copy. A keyboard-only user still cannot start a selection (engine limit, noted in the Text Selection spec). No schema change.
- Tokens instead of literals (TSH-037, TSH-039, TSH-056; AC-ICO-1, AC-DEN-1, AC-PEK-14). The
Iconmodule with noSizetakes the density's icon size (24, 20, 20; was 16), and a menu item's icon and submenu arrow takedensity.icon_sizeanddensity.chevron_box(were 16). A module's slots now read the spacing scale asspace.step_1tospace.step_8(as they readdensity.*), and the shipped modules write theirPaddingandSpacingwith it where the value is on the scale (a tooltip'sGapis not a slot and stays a number). The ink of a Peek handle where the Frame has no border to give it is the theme roleon_surfaceorsurface, whichever reads better on the Frame's fill (it was one of two literal greys), and the Frame's paint carries it. Visible: icons without aSizeand menu icons are larger than before. Schema 1.34 (documentation of the tokens). Paddingon a Bar and on a Panel (TSH-055, AC-PNL-4, AC-BAR-17): the space between the surface's content and its sides, a number or four sides, applied to the surface's body (inside itsWidthandHeight, added to a content-sized Panel). A Panel withMeld: truerefuses it (its content is drawn in the Frame's painter). Still not built:Classon a Bar and a Panel,Marginon a Panel,Text_Rotation,Exclusive_Zoneon a Panel. Schema 1.35.ListtakesEmptyandCount(TSH-082, AC-EMP-1): withEmpty: "No results"andCount: 0(the caller passes the number of entries it loops over, a module cannot count its Content) the List shows one muted text node inside itself and keeps its role and name; with any other count, or none, nothing changes. Multi-select (Selection: MULTIPLE) waits for the engine's selection model. Schema 1.36.- A Peek's handle is a button for assistive technology (AC-PEK-16): the handle's holder has the role
button, the name "Expand {name}" at rest or "Collapse {name}" while out, theexpandedstate, and a press without a pointer position opens or closes the peek. The holder still takes no pointer, so the Frame's input region does not change. Only the handle of a Panel or strip with aPeekwhoseHandleis not NONE is exposed; a peek with no handle has no control for a screen reader yet. No schema change. - UX adoption, Auto_Hide of a Bar (TSH-010 part b).
Auto_Hide(default false: a Bar opts in withtrue; the owner's decision of 2026-11-21, the spec's "on by default" is changed by the vault) andAuto_Hide_Delay(ms, default 1000) are built. The pointer leaving a Bar starts the delay; then it slides out (200 ms, the edge margin to1 - thickness), thenexclusive_zonegoes to 0, so windows reflow once. A 1 px hover strip is the input region while it is out; the pointer on it brings the Bar back (the zone first, then the slide in). A Bar that has the keyboard or a Popup of its own open stays (looked at again each delay); reduced motion does it at once; a hot reload brings a slid-out Bar back; a fullscreen window keeps the strip without input. Newsurfaces/autohide.py. Part c, in the same change: entering shortcut mode brings a slid-out Bar back and holds every Bar out while the mode lasts; leaving the mode or Escape starts the delay of each Bar it brought back (ADR-0021). Not built: content fade andAnimationof a Bar. Schema 1.37. Animation { Type: SLIDE | FADE | NONE, Duration }on a Bar (TSH-053, AC-BAR-17, AC-MOT-2): how anAuto_HideBar goes out and comes back. SLIDE (the default, 200 ms, as before) moves it past its edge; FADE fades its opacity and then leaves the strip, and fades back in; NONE changes at once. The desktop's reduced-motion setting makes every Bar change at once whatever the block says. A Bar'sShowandHidestay immediate, and a Popup'sAnimationis still not built (it needs a compositor test of a window that outlives itsclose). Schema 1.38. Not yet seen on a real KWin.Receives { On_Changed: Field }in a module file: the events written on a use go to the named block of the layout instead of the root, so a module whose root is a container can hold aTextField(or any block that raises the event) and still forwardOn_Changed,On_Submitand the rest. The target must exist and raise the event (checked once, when the module is read); an event not named goes to the root as before; a module with noReceivesis unchanged. This is what the planned TextInput error and helper lines (TSH-084) need. Schema 1.39.- The Launcher's results list is no longer a Tab stop (the Launcher spec: the keyboard stays in the text field). The owner's check on KWin: Tab took the keyboard to the list, where Enter started nothing. Now Tab leaves it in the field, the arrows move the selection from the field and Enter starts the lit row. The list holds at most
max_resultsrows (8) by design, so it has no scrollbar; a scrolling list is aListof your own. No schema change. TextInputtakesHelperandError(TSH-084, AC-VAL-3, AC-VAL-5, AC-VAL-7), and aTextFieldblock takesInvalid, with a new:invalidstyle state.Helperis a line of help under the field;Errorreplaces it with a message (an alert icon and the words in theerrorcolour, polite live region) and marks the field invalid: its outline takes theerrorcolour and keeps it while hovered or focused, assistive technology readsinvalid, and the message (else the helper) is the field's accessible description. The call decides when to show the message. ATextFieldblock now sendsDescriptionto its text input, not its box. The TextInput module's root is a container with the field and the lines, and itsReceivessends the call's events and a stylesheet rule onTextInputto the field; rules reach the block the firstReceivesnames (apply_module_rules). Schema 1.40.- Shortcut mode could be left on by a click: with the mode on and the keyboard taken by another window (the owner's check on KWin: Escape and F6 then went to Chrome), the mode stayed on with no way out but a restart. It now ends by itself when no surface of the shell has the keyboard 2 s after one lost it (a move to the next surface, or a compositor that takes the keyboard back for a moment, is not that), and the new command
tesserae-shell leave-shortcut-mode(D-BusExitShortcutMode, answering whether the shell was in the mode) is a way out whichever window has the keyboard. Escape from a Bar that entered the mode with F6 is tested. No schema change. - A Marquee's scrolling text no longer takes the pointer outside its box, and a Task item is as wide as its title (up to
max_width). The owner's check on KWin: a click on a workspace hit a task item. The text a Marquee scrolls is wider than its box and the part scrolled past the box is clipped but was still a click target, covering the neighbouring blocks (a long title scrolled over the Workspaces); the text node is no longer a hit target, the box is. A Task item also kept a fixedmax_widtheven for a short title, leaving blank click space and pushing the next item right; it now fits its title (theWidth: AUTO,Max_Widthof its title). No schema change. - Per-state state-layer fade times (tre 0.6.12): style keys
Hover_Layer_Ms,Pressed_Layer_MsandFocus_Layer_Ms(the fade of that layer, in milliseconds) and theme tokensstate.hover_ms(100: ADR-0009 asks 15, but a 15 ms hover fade leaves one layer pixel behind after a real click on the private sway,tests/test_media_live.py; the engine's default is kept until tre is asked),state.pressed_ms(105) andstate.focus_ms(150), which a block with a layer takes unless it writes the key: a hover wash comes at once, a press a little slower, the focus layer slowest (ADR-0009). Headless-tested only (the owner does not run main). Schema 1.41. - Every window of the shell sets tre 0.6.12's
drag_start_pxto 4: while a button is held, the pointer has to move 4 pixels before a drag starts, so a click with a little jitter stays a click (a peek, a scrollbar thumb, a movable Panel, a slider). Headless-tested only (the owner does not run main). No schema change. - The highlight of a selection has 2 px corners on a selectable
Textand in aTextInputorTextEditor(tre 0.6.12selection_radius; a design choice, the Text Selection spec records no value); the fill is the engine's own, the scheme's primary at 30 percent, now also on a staticText. No new keys. Headless-tested only (the owner does not run main). No schema change. - Escape during a Peek drag (tre 0.6.12
pointer_cancel): the body goes back to where the drag started (the tab, or fully out) instead of staying wherever the pointer left it or opening because it passed half; a press that never moved is dropped. Headless-tested only (the owner does not run main). No schema change. - No empty surface flashes when a Bar or a Panel opens (tre 0.6.12
first_present): a layer surface is mapped by its first buffer, so the shell now holds the first frame until the tree is built (a deadline of 3 s shows it anyway). Headless-tested and run on the private sway (media, shortcut mode, focus and popup live tests); the owner does not run main. No schema change. - A popup with a shadow keeps its body 8 px off the screen edge when the compositor flips or slides it (tre 0.6.12
edge_margin; 8 is a design choice, taken from the shadow room around the body, so a popup with no shadow gets none). Headless-tested only (the owner does not run main). No schema change. - A Frame drawn with paths (every
Frame_JoinandFrame_Blend: SRGB) now casts itsElevationorShadowsshadow just inside its inner edge, as the ring shader does (tre 0.6.12: a path's shadow follows its holes); the warning that such a Frame has no shadow is gone. Headless-tested only (the owner does not run main). No schema change. Animation { Type: FADE | NONE, Duration }on aPopupand an inlineTooltip(TSH-053, AC-POP): with FADE (200 ms unlessDurationsays otherwise) a popup comes in from nothing and fades out before its window closes; NONE, the default, is as before.Type: SLIDEis refused (not built), and the desktop's reduced-motion setting opens and closes it at once. A popup the compositor dismissed is gone at once. Schema 1.42. Headless-tested only; the private-KWin kit step for the fade-out of a grabbing popup is still to run (the owner does not run main).- Conformance to the Tesserae behavior standard, first slice (tests only; one observation seam):
TooltipManager.tooltip_logrecords what a tooltip did and why (read by no code of the shell), andtests/behavior/runs thetooltipcorpus oftess-behavioragainst the shell's real tooltip (skipped without the package, which is private until its first release:tests/behavior/requirements.txt). Result: 3 of 17 cases pass strictly (the shell has no cancelablebefore_change); with events ignored 9 of 17 pass and the real gaps are listed in the test file (the open tip is not hidden from assistive technology, blur, Enter, Space and window focus loss do not close it). No schema change. - Conformance to the behavior standard, second slice (tests only): the
search_fieldcorpus run on the Launcher's query field (tests/behavior/search_field_host.py). Strict: nothing passes (the Launcher has no clear button, no controlled value, nodisabledoption, and reports no change events with reason and detail); with events and parts ignored (a diagnostic) the three cases the field can run pass: typing sets the value, Escape clears it, the same text is no change. No schema change. - An open tooltip is hidden from assistive technology when its trigger carries the text as its description (Tooltip > Accessibility, AC-TIP-19): a screen reader reads the trigger's description and never needs the tip layer. A trigger with no description (an inline
Tooltip { }with its own content) keeps its tip exposed, as the only place the text is. No schema change. - A tooltip shown by keyboard focus is removed at once when focus leaves its block (Tooltip > Behavior): no grace period, the tip was the focus's. Before, it waited out the exit delay as if the pointer had left. No schema change.
- Enter or Space on the focused trigger removes its open tooltip (Tooltip > AC-TIP-7); the key still activates the block. The tip does not come back until the pointer has left and entered again. No schema change.
- A surface losing keyboard focus removes the open tooltip on one of its blocks (Tooltip > AC-TIP-8); it comes back only after the pointer has left and entered again. No schema change.
- An inline
Tooltip { }block gives its text to the trigger as its accessible description, like theTooltip: "text"form (Accessibility, rule 11): an open tip is hidden from assistive technology, so without this its text would be nowhere in the tree. The oneTextin the tip gives it (a slot stays a slot; several plain texts are joined by a space); a tip with no text gives none and stays exposed. No schema change. - Docs: the
Descriptionkey's text now says that the text of a Tooltip, in the text form or as the oneTextof an inlineTooltip { }, is also the block's description (the open tip is hidden from assistive technology). Schema export 1.43 (docs text only). - The engine pin is
tesserae-engine>=0.6.13,<0.7(uv.lock0.6.13); CI fetches tre's virtual-pointer helper from the v0.6.13 tag. No behaviour change by itself: the 15 ms hover fade and multi-select follow. - The hover layer fades in 15 ms again (
$state.hover_ms, ADR-0009; it was 100 on tre 0.6.12, whose 15 ms fade left one layer pixel on a real compositor; tre 0.6.13 fixes that). Schema export 1.44 (the documented default). List { Selection: MULTIPLE }(TSH-082): the List chooses a set with the engine's own container selection (tre 0.6.13, no range logic of the shell): click, Shift+click a range, Ctrl+click a toggle, Shift+Up and Down extend, Ctrl+Up and Down move focus, Ctrl+Space toggles, Ctrl+A chooses every enabled entry, Escape keeps the set, a disabled entry is skipped (AC-SLT-1 to 5). The container is multiselectable and each entry saysselectedto assistive technology, and the engine announces "N selected" once, polite, after 300 ms (AC-SLT-8, 9; read from the real AT-SPI tree on a private sway).SelectedandOn_Changed'sold,newandvalueare the keys of the chosen entries joined by a comma, in the entries' order. The type-ahead search stays SINGLE's.Selection_ModetakesMULTIPLE(schema export 1.45).- A test with REAL key events on a private sway (
tests/test_real_keys_list.py, keys fromwtype, the choice read from the AT-SPI tree): Down, End, Home, Page Down and Page Up move a List's choice. It measures that the engine's real names for these keys match the snake_case names the shell matches (home,end,page_down,page_up). Tests only. - Conformance to the behavior standard, third slice (tests only): the
list(Selection) corpus run on the multi-selectList(tests/behavior/list_host.py), and the corpus pin moves to tess-behavior d426d41 (all three corpora re-run on it). Strict: no case passes (rows take no keyboard focus, the shell reports noselection_change, the role is list/listitem, the shell's SINGLE keeps no anchor); with events, focus and tree ignored (a diagnostic) the engine's own rules pass: click, Shift and Ctrl ranges, Ctrl+A, Escape, a click on empty space, Shift+Arrow. 7 cases are not run (noselect_all_key,select_on_focusorunselectableoption). A real-key test on a private sway adds Ctrl+A and Escape (AC-SLT-4). - A List you can choose from (
Selection: SINGLEorMULTIPLE) is alistboxofoptionentries for assistive technology, as the UX standard requires (AC-LST-01;multiselectablefor MULTIPLE); a List withSelection: NONEkeepslist. The rolesLISTBOXandOPTIONare inRole(schema export 1.46). The Launcher's results list is a List, so it is a listbox now. Read from the real AT-SPI tree on a private sway (the container is a list box, the entries list items as AccessKit mapsoption). - The
listadapter moves to tess-behavior 8a10ac4 (36 list cases): the two accessibility tree cases now pass strict (the roles above); theactive_descendantvariants run on the List (the list takes the focus and the engine moves its own cursor row, which is not readable, soactiveis never seen). Tests only.