Galaxy Shell / docs
Docs / Interface and features

Web panels, vendor and links in the home directory

openspec/specs/web-panels/spec.md · Edit on GitHub ↗

On this page

Purpose

Defines how web panels are declared, loaded and layered in the home directory, and how the protected bar and chat report glass regions that Smithay blurs. It covers isolated plugin panels and protected host panels.

Requirements

Requirement: Bar glass is reported by the protected bar

The protected bar SHALL report its pill geometry to the core and Smithay SHALL draw the blur behind it. Generated HTML MUST NOT be able to set it. Since 2026-11-06 the top bar is a pill in a 40 px strip (52 px in the experimental Ninja, from topBarHeight of the theme entry). Full text: section Binding contract (from AGENTS.md).

Scenario: Generated HTML tries to set bar glass

  • WHEN generated HTML in an opaque iframe tries to reach the bar glass route
  • THEN it cannot, because it has no token and the route is not reachable

Requirement: Alpha glass declared only by the core

Only the core SHALL declare the alpha glass (glass.alpha, capabilities.panelAlphaGlass) of the protected top bar, the protected bottom bar (only for the islands of Ninja, capabilities.bottomBarAlphaGlass) and the protected notifications panel. The compositor MUST refuse it on an isolated panel, and web-panels.json MUST NOT be able to set it. Full text: section Binding contract (from AGENTS.md).

Scenario: Isolated panel declares alpha glass

  • WHEN an isolated panel is declared with alpha glass
  • THEN the compositor refuses it and the registry refuses the key in web-panels.json

Requirement: Chat glass regions from the protected host

On the chat window the protected host SHALL report up to sixteen rounded rectangles through /api/desktop-chat-glass-regions and Smithay blurs behind them. The host measures the frames of inline components from outside, and their generated HTML MUST never set or size a region. A compositor without capabilities.chatBubbleGlass gets four regions and no bubbles. Full text: section Binding contract (from AGENTS.md).

Scenario: Inline component frame

  • WHEN an inline component is visible in the chat
  • THEN the host measures its frame from outside and its HTML does not set a region

Requirement: chatBlur and the alpha glass lease

The protected setting chatBlur (/api/chat-blur-enabled, on by default) SHALL turn the regions off. On a compositor with capabilities.alphaGlass the core sends chat_alpha_glass {enabled} from chatBlur on the control connection only, as a lease with a grace of 60 s; while alphaGlassEnabled holds the host MUST post no region, and without the lease it reports the regions again after 2 s. Full text: section Binding contract (from AGENTS.md).

Scenario: Lease lost

  • WHEN the lease of chat_alpha_glass is gone
  • THEN the host reports the regions again after 2 s

Requirement: Chat glass trust boundary

Generated HTML, agent tools, MCP entries, scheduled turns and plugin panels MUST NOT reach the chat glass command. The trusted chat CSS MUST keep translucent pixels with alpha of 0.18 or more outside a glass surface, and .inline-surface SHALL stay opaque, unless the agent applies profile CSS (replace_ui, which takes no user click) that clears that surface. Full text: section Binding contract (from AGENTS.md).

Scenario: Agent tool and the command

  • WHEN an agent tool or MCP entry tries to send the chat glass command
  • THEN it cannot reach the command

Requirement: Declarative panel file and isolated components

The host and the core SHALL read panels from web-panels.json, and the compositor reads no file and takes each panel only from the declaration that the core builds. A custom component uses kind: isolated, runs in an iframe with an opaque origin with no Node, network, automatic sending, top-level navigation or privileged tools, and its files are limited to 100 KB of HTML/CSS and 512 KB of JavaScript. Full text: section Declarative contract.

Scenario: Invalid classic code

  • WHEN an isolated component has invalid classic JavaScript
  • THEN it is refused by syntax analysis without running in Node

Requirement: Installation never overwrites

link-interface.py SHALL refuse existing files, directories and unmanaged links with no overwrite, and an existing configuration MUST never be replaced. The custom UI of the profile, its checkpoints, conversations and databases do not change. Full text: section Introduction.

Scenario: Existing configuration

  • WHEN the link step runs and a configuration already exists
  • THEN the configuration is kept

Requirement: Panel geometry limits

Dimensions SHALL range from 1 to 4096 pixels and offsets from 0 to 2048, and the geometry is limited to the output. Closing a panel MUST NOT cause continuous reopening, since auto_open opens once when the declaration loads. Full text: section Declarative contract.

Scenario: Auto-open panel closed

  • WHEN the user closes a panel declared with auto_open
  • THEN it does not reopen continuously

Requirement: Panel window creation and tokens

The host SHALL create a panel window hidden and show it when the page finishes loading or on ready-to-show, whichever comes first, and MUST NOT wait for ready-to-show alone. The host asks the core /host-window with a token first, and a panel that the core does not know or that the compositor refuses gets no window. Full text: section Declarative contract.

Scenario: Failed first load

  • WHEN the first load of a panel page fails
  • THEN the host closes the window and forgets it, so the next click or refresh makes a new one

Requirement: Reserved and protected panel ids

The id lock-screen SHALL be reserved for the protected lock page and no declaration can use it, and the registry MUST refuse an isolated entry with the id workspace-menu. Only the core opens screenshot, and adding HTML to a configuration does not grant maintenance controls. Full text: section Declarative contract.

Scenario: Declaration with id lock-screen

  • WHEN a declaration uses the id lock-screen
  • THEN it is not accepted

Requirement: Plugin layers stay below the chat

An isolated plugin SHALL sit below the chat, in the hud band above the applications or the desktop band below them, and the chat, the bars, the protected panels and the lock MUST stay above every plugin. input: none requires keyboard: false, and a protected panel MUST refuse layer, order, space, canvas_x, canvas_y and input. Full text: section Plugin layers (window layers phase 3, 2026-11-01).

Scenario: Plugin over the composer

  • WHEN a plugin is placed where the chat composer is
  • THEN the composer and the approvals stay above it and keep their input

Requirement: Plugin fields need hudPlugins

Without capabilities.hudPlugins the core SHALL refuse a file that uses a plugin field or an edge anchor and report the error in GET /api/web-panels; it refuses only when a connected compositor reports no hudPlugins. The compositor MUST refuse an isolated panel declared in overlay. Full text: section Plugin layers (window layers phase 3, 2026-11-01).

Scenario: Older compositor

  • WHEN a connected compositor reports no hudPlugins and the file uses a plugin field
  • THEN the core refuses the file and reports the error

Requirement: Invalid configuration keeps the last valid one

An invalid configuration or a missing file SHALL keep the last valid declaration and assets in memory, MUST NOT close the session and MUST NOT delete files. GET /api/web-panels reports the error to the authenticated host. Full text: section Updates and recovery.

Scenario: Broken web-panels.json

  • WHEN the configuration becomes invalid while the session runs
  • THEN the last valid declaration stays in use and the error is reported

Requirement: Bar glass geometry is checked twice

The core SHALL accept exactly the key glass and check it with barGlassGeometry (integers, x and y from 0 to 8192, width and height from 1 to 8192, a finite radius from 0 to 64, no other keys), and Smithay MUST check the same limits again. The command is refused while the session is locked. Full text: section Glass behind the desktop bar (2026-10-31).

Scenario: Extra key in the request

  • WHEN the request carries a key other than glass
  • THEN the core does not accept it

Requirement: Web surfaces reload scope

The reload of the main surfaces SHALL reload chat, bar and wallpaper in the same host instance and keep the core, OpenCode, compositor and applications. It MUST NOT run pull, build, a profile switch or a reset of the appearance, and the drafts kept for up to one hundred conversations MUST NOT be copied to logs or to generated HTML. Full text: section Reload of the main surfaces.

Scenario: Reload with drafts

  • WHEN the user reloads the web surfaces
  • THEN the drafts are used once at the next start and the history stays in the core

Requirement: Window theme controls the glass

All the glass of this document SHALL belong to the window theme glass, and the default theme office MUST ask the compositor for no glass on the protected panels, the bars and the chat. A plugin keeps its own glass. Full text: section The window theme.

Scenario: Office theme

  • WHEN the window theme is office
  • THEN the compositor is asked for no glass on protected panels, bars and chat

Requirement: Chat glass region list

The protected host SHALL report as chat glass regions the settings panel while it is open (which hides the rest of the chat), the first-run color card, the composer and each visible message bubble, inline components included, clipped to the visible conversation; there is no full conversation card. Full text: section Binding contract (from AGENTS.md).

Scenario: Settings panel open

  • WHEN the settings panel is open
  • THEN it is a region and it hides the rest of the chat

Requirement: The compositor reports chatAlphaGlass

On a compositor with capabilities.alphaGlass the compositor SHALL take the shape of the glass from the alpha of each chat window, primary or output chat, and report chatAlphaGlass (also per entry of outputChatGlass). Full text: section Binding contract (from AGENTS.md).

Scenario: Output chat

  • WHEN the compositor reports the glass of an output chat
  • THEN chatAlphaGlass appears in its outputChatGlass entry

Requirement: The liquid glass shows a sharp backdrop through its rim lens

Within the rim band the liquid material SHALL show the backdrop before its blur through the lens, bent toward the edge, with a small blur and a slight split of red and blue along the normal, blended with the frosted middle by the lens weight and scaled by the refraction where the material has one. The middle and its tone, and the lit rim, MUST stay as before; in the band the knee of the tone MAY rise with the lens weight. Full text: Liquid glass of the chat.

Scenario: Stripes behind the edge of the plate

  • WHEN a liquid glass plate is drawn over thin vertical stripes
  • THEN the stripes keep a visible contrast inside the rim band, bent toward the edge, while the middle of the plate shows them blurred flat as before

Scenario: Refraction off

  • WHEN the bar material sets refraction to 0 on a liquid region of the plain glass
  • THEN the rim band draws the same frosted color as the middle, with the lit rim only

Scenario: Not liquid

  • WHEN a plugin panel or a protected panel with a glass of its own is drawn
  • THEN it keeps the exact CSS blur with no lens and no sharp band

Status

Doc status: current contract. Since 2026-11-11 (step 7 of openspec/changes/archive/2026-11-10-gles-removal-plan/design.md) the glass is drawn only by the plain scene of the wgpu renderer; the GLES shaders and egl_ tests that this doc names are history and have native_wgpu_ mirrors; the fallback build that drew no glass was deleted at step 8. Checked 2026-11-11.

Introduction

The distributed interface assets live in vendor/interface/host, vendor/interface/ui-src and vendor/interface/ui. The old paths web-shell/host, web-shell/ui-src and web-shell/ui are compatibility symlinks inside the checkout. The installer creates the managed links in ${XDG_DATA_HOME:-~/.local/share}/agent-native-os/interface/, which point to the vendor directory of the active checkout. This way, the UI has a stable path in the home directory without duplicating the application. The preparer tracks the vendor sources and checks the generated artifacts separately.

python3 scripts/link-interface.py --root ~/galaxy-shell creates the links and, only when it is absent, the initial configuration. The installation configurator also runs this step under coordination. Existing files/directories and unmanaged links cause a refusal, with no overwrite. An existing configuration is never replaced. The custom UI of the profile, its checkpoints, conversations and databases do not change. The seed links do not replace the three files of the custom UI.

Declarative contract

The host and the core read ${XDG_CONFIG_HOME:-~/.config}/agent-native-os/web-panels.json. Since window layers phase 4 the compositor does not read it: it takes each panel only from the declaration that the core builds from this file (openspec/specs/window-layers/spec.md). Example of a custom component in the home directory:

{
  "version": 1,
  "panels": [
    {
      "id": "calendar",
      "title": "Calendar",
      "kind": "isolated",
      "source_root": "/home/YOUR_USER/.local/share/agent-native-os/components/calendar",
      "anchor": "top-right",
      "width": 350,
      "height": 400,
      "offset_x": 10,
      "offset_y": 40,
      "keyboard": true,
      "auto_open": false,
      "close_on_blur": true
    }
  ]
}

Add the declaration to the existing list to keep other panels. The directory of an isolated component contains index.html, style.css and a classic app.js. It can be a symlink in the home directory to a component packaged in vendor, as long as the resolution stays inside the home directory. The files are limited to 100 KB of HTML/CSS and 512 KB of JavaScript. Invalid classic code is refused by syntax analysis, without running in Node.

Anchors: top-right, top-left, bottom-right, bottom-left and center, and from window layers phase 3 also top, bottom, left and right (an edge anchor centers the other axis). Dimensions range from 1 to 4096 pixels. Offsets range from 0 to 2048. The geometry is limited to the output. keyboard: false allows pointer controls without capturing typing. auto_open opens once when the declaration loads. Closing does not cause continuous reopening. close_on_blur closes the panel when focus changes. New manual panels appear in the bar. Automatic panels do not need a button. The host creates a panel window hidden and shows it when the page finishes loading, or on ready-to-show if that event comes first. It does not wait for ready-to-show alone: a hidden Wayland window may never get a first frame, and the panel then stays unmapped. If the first load of the page fails, the host closes the window and forgets it, so the next click or refresh makes a new one. On Smithay each panel window has its own token (openspec/specs/window-layers/spec.md, phase 2). The host asks the core /host-window {surface: "panel", panel: id, token} first; the core refreshes its own registry, builds the declaration from that entry and sends it to the compositor, and the host creates the window with the title anos-window:<token> and the spec of the answer. The window keeps the token across hide and show. A change of the entry in the host registry only makes the host ask again with the same token, and the window follows the answer, never the host parse. A change of kind closes the window and forgets its token, and the panel opens again with a new token. The token is forgotten when the window closes. A panel that the core does not know or that the compositor refuses gets no window, and the host asks again only after its entry changes. The per-id rules of the compositor (the default glass of quick settings, the drop under the top bar, the toast at the top center, the volume indicator at the bottom center, without input) are explicit anchors, margins and with_top_bar in panelDeclaration of web-shell/core/web-panels.cjs, and a test compares them with the old rectangles. Since phase 4 the compositor has no rule of its own for these ids, and the title Agent Native Panel:<id> gives no role: a panel window of the host that did not bind is an undeclared host-owned root in the unbound band (below the chat) for the life of that window: the host does not close it yet (the runtime repair of openspec/specs/window-layers/spec.md is not implemented), and no agent tool or window action can close it ("Shell is protected"). The same title from another process is an ordinary application. On a compositor without capabilities.windowDeclarations the core answers "unsupported" and the panel opens no window.

fit_content is optional and defaults to false for old declarations. When enabled, the Electron host measures the height of the <main> and resizes only the window, with a minimum of min(16, height) and a maximum of height. Smithay accepts the geometry that the client reports only within these limits. The width also does not exceed width. The previous binary uses deny_unknown_fields and rejects a declaration that contains fit_content. If a valid configuration is already loaded, it keeps using the last valid version in memory. Therefore, keep the configuration without this field until the compatible binary is in use. The field does not change the meaning of old contracts that do not contain it.

At start, a core of the real desktop replaces the exact legacy quick-settings declaration (410x580, no fit_content, top-right or bottom-right, offsets 0/40, the default flags and title, no glass) with the current default (390x580, fit_content: true). Without fit_content the window stays 580 px tall under a shorter card, and the transparent strip takes the clicks of the windows below. The core keeps the anchor and source_root, writes through a temporary file and a rename, and leaves a declaration with any other value alone. The legacy values are fixed in the code, so a later change of the default does not stop the migration. When web-panels.json is a symbolic link, the core logs one line and does not migrate, because the rename would replace the link and leave its target unchanged. The change applies at the next core start, which is a login or a host/core maintenance restart, and the compositor takes the new geometry from the declaration of the core.

The protected declarations known to the host are quick-settings, volume-indicator, the two notification panels, tray-menu, the menu of a system tray icon (system tray), screenshot, the screenshot UI (screenshots), and workspace-menu, the workspace menu. Only the core opens screenshot: the Electron main process follows the UI state of the core through /host-screenshot with the host main key, shows the panel on an open and hides its window on a close. It covers the primary output (top-left, 4096x4096 clamped to the output) and has no launcher button. The migration step .web-panels-protected-v3 adds it once to an existing configuration, as v1 and v2 did for the earlier panels; a later removal by the user stays. The migration step .web-panels-protected-v4 adds workspace-menu once, the menu that moves a workspace to another output (workspaces on several outputs, The menu). The bar opens it from a right click on a bottom bar tab, only while the workspaceOutputs lease is live, after it names the workspace to the core with POST /api/workspace-menu. It opens at the bottom left of the primary output, above the bottom bar, has no launcher button, closes on blur and fits its content. The registry refuses an isolated entry with the id workspace-menu. The bar opens tray-menu from a right click on a tray icon, with the query ?show, which shows the panel and keeps an open one shown; it has no launcher button. The volume indicator is transient: it is created hidden with pointer events ignored, and its page asks the host to show or hide it through console markers, so a bar button or a blur cannot toggle it. See the volume indicator. The registry derives transient from the known id, not from the file, so the declaration schema stays version 1. It derives launcher from the known id the same way: every protected panel but desktop-actions and system-metrics has launcher: false in /api/web-panels (protectedPanels of core/web-panels.cjs), because its own control, the core or the panel itself opens it, and the bars give a launcher button only to a panel without launcher: false and without auto_open, so a new protected panel (as the four of the app dock) never shows as a generic window icon.

The quick-settings panel is the known protected declaration. The notification panels (notifications and notification-center) are the other two protected declarations, with fixed assets of the checkout; see notifications. A protected panel with the id notifications stays hidden while its page is empty. Its assets are read from the interface/host link, and only the known host can receive the token for the system controls. A custom component uses kind: isolated. It runs in an iframe with an opaque origin, with scripts allowed, and with no Node, network, automatic sending, top-level navigation or privileged tools. Adding HTML to a configuration does not grant maintenance controls. The compositor does not run any web content. The id lock-screen is reserved for the protected lock page, which has its own route and window; no declaration can use it. See the lock screen.

Plugin layers (window layers phase 3, 2026-11-01)

An isolated panel is a plugin. On a compositor that reports capabilities.hudPlugins, it takes these optional fields; the file stays version 1:

Field Values Default
layer desktop, hud hud
order integer 0 to 15 0
space screen, canvas screen
canvas_x, canvas_y integer -65536 to 65536 required with space: canvas, refused otherwise
input normal, none normal
  • A plugin sits below the chat. The hud band is above the applications, and the desktop band is below them. The chat, the bars, the protected panels and the lock stay above every plugin, so a plugin cannot cover the composer or the approvals or take their input.
  • order stacks plugins inside one band. Plugins with the same band and order share one layer, and focus raises them inside it.
  • input: none lets every press through to the window below. A plugin with input: none must have keyboard: false.
  • A plugin with keyboard: true takes the keyboard at its show only when no window of a higher band covers part of it. The request is one-shot: a covered show drops it, and the plugin does not take the keyboard later when the cover goes away (the chat collapses, say). A click on its uncovered part, or a focus command, still gives it the keyboard.
  • A panel that closes with the keyboard, such as a protected menu at Esc, gives the keyboard to the window that had it last among those that show and are not covered by a higher band, or to no window when there is none. Each hide destroys the toplevel of the panel, so nothing else would. A press on an empty place of the desktop clears the keyboard first, as it does with no menu open, so a menu closed that way leaves no window with the keys.
  • space: canvas puts the plugin at (canvas_x, canvas_y) with width x height in canvas units, on every Canvas workspace, through the camera of that workspace, cropped to the content area. It follows a pan and a zoom and takes input through the inverse transform, with the input threshold of canvas windows. It is hidden on a workspace that is not Canvas and in the workspace overview. It needs anchor: "top-left", offsets 0 and no fit_content. It never moves the camera, and fit_all and snap leave it out. An explicit focus of a canvas plugin that the camera puts off screen does not move the keyboard.
  • A screen plugin stays in the content area, with its offsets measured from the output edge, as before.
  • The canvas lens (inverted sphere view, phase 1): while the lens draws, a canvas-space plugin draws in the warp group of its run in the band order, with the canvas windows of that run, and gets no glass of its own. Screen-space plugins stay flat between the groups, at their place in the band order. A frame warps at most 4 runs: the run with the most canvas windows and the 3 runs nearest to it. The other canvas-space plugins draw flat.
  • A protected panel refuses layer, order, space, canvas_x, canvas_y and input. It stays in overlay, above the chat.
  • Without capabilities.hudPlugins (an older compositor) the core declares a plugin in overlay, as before, and refuses a file that uses a plugin field or an edge anchor. GET /api/web-panels reports the error "Campos de camada exigem um compositor com hudPlugins; remova-os ou atualize o compositor". The core reads the capability from its compositor connection. While the core has no state of a connected compositor (the startup), the capability is unknown and the core keeps such a file. The core refuses it only when a connected compositor reports no hudPlugins, also when that compositor reports no capabilities at all. The capabilities of the last connect stay across a disconnect. Every panel declare refreshes the registry and checks the capability again, so a plugin field never reaches a compositor without it.
  • The compositor refuses an isolated panel declared in overlay ("Layer not allowed for this role"). So a phase 2 core on a phase 3 compositor gets no window for a plugin, and the plugin never draws above the chat.

Example:

{
  "id": "weather",
  "title": "Weather",
  "kind": "isolated",
  "source_root": "/home/user/agent-native-components/weather",
  "anchor": "top-right",
  "width": 320,
  "height": 200,
  "offset_x": 16,
  "offset_y": 56,
  "keyboard": false,
  "auto_open": true,
  "close_on_blur": false,
  "layer": "hud",
  "order": 2
}

Updates and recovery

Every second, Electron checks the configuration and the three assets of each panel. Changing the files reloads only the matching window. Changing the geometry does not reload the content: the host asks the core again with the same token, and the compositor moves the window to the updated declaration. Adding or removing declarations registers or closes windows without recompiling Rust. The renderer of a reloaded panel restarts its local state. The other applications, the conversation and the compositor keep running. The bar updates the list of buttons within two seconds.

An invalid configuration or a missing file keeps the last valid declaration/assets in memory. It does not close the session and does not delete files. GET /api/web-panels reports the error to the authenticated host. Smithay exposes capabilities.webPanels; since window layers phase 4 it reads no file, so the snapshot has no webPanelsConfigError. A JavaScript runtime error or a presentation error can still require a fix to the component. A successful read/parse does not prove visual quality or the absence of malicious code. Restarting the whole host with an invalid configuration can leave the panel unavailable until the configuration is repaired.

This mechanism removes the need to restart the session for new panels and for HTML/CSS/JS or geometry updates within the contract. Changes to the compositor binary still need a new session. Installing the contract in the old compositor requires a first switch. The core and the host can still have their own supervised update cycle. The historical structural roles of the bar, chat and wallpaper stay in place. Their assets also live in vendor/home.

Evidence

On 2026-10-27, 103 Node tests, 18 Rust tests with session and 25 Python tests passed. They included a cycle of adding/changing/removing panels with a single instance of the host controller, selective reload of assets, geometry change without reload, preservation of the valid version, a sandbox without the token, no reopening after closing, and protection of the existing links/configuration. Formatting, check/build:check and Clippy passed.

In the browser, a synthetic component in the home directory ran its app.js in an isolated iframe. Clicking the button changed the counter. Changing app.js and reloading showed revision 2 in the same QA core, with no provider. This proof checks the renderer and the reading of the assets. The automatic reload controller of Electron was exercised with synthetic windows. It is not physical proof of hot reload on the old Smithay. The first native activation of the contract stays a separate step, with a snapshot of the applications and external supervision. No capture or QA component goes into Git.

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

Smithay announces capabilities.barBackdropBlur and reports the pill it uses as barGlass in its state. The bar is its own Electron window (declared with the role bar and the name "Agent Native Desktop") in the 40px strip at the bottom of the primary output. The pill is a DOM element inside it, so its geometry comes from the trusted host, not from a declaration:

  1. The Electron bar page (host.js with data-desktop-bar, Electron only) measures #conversation-bar with measureBarGlass in host/workspace-zoom.js: the border box rounded to whole CSS pixels, which are the logical pixels of the bar surface, and the top-left radius, clamped to half the height and to 64. A resize observer, window resizes and each state poll schedule a new measurement for the next frame.
  2. createBarGlassReporter sends POST /api/desktop-bar-glass with {"glass": {"x","y","width","height","radius"}} or {"glass": null}, with the host token. It sends only when the measurement differs from the barGlass that the compositor reports, so a compositor restart, a refused request during a lock or a workspace switch is repaired later. A refused request waits 2 seconds before the next attempt.
  3. The core accepts exactly the key glass, checks the shape with barGlassGeometry (integers, x and y from 0 to 8192, width and height from 1 to 8192, a finite radius from 0 to 64, no other keys) and sends the typed bar_glass command on the private control socket.
  4. Smithay checks the same limits again and stores the pill. The command is refused while the session is locked.

The measurement is null, and the compositor blurs nothing, when the pill is hidden, does not fit the window, or --glass-filter is none (solid material, prefers-reduced-transparency and forced colors). Generated HTML runs in opaque iframes without the token and cannot reach the route. Isolated panels have no route to the bar. No pixel goes to the web.

The compositor draws the pill with the panel pipeline in glass.rs, with the reported radius, keyed by the id of the bar window. The strength is glass::BAR_BLUR = 72 (standard deviation 24), which matches the CSS blur(24px) of the pill, not the default panel blur of 12. After the blur, the final pass applies the CSS saturate(145%) of the pill as the factor 1.45 (glass::saturation, bounded to 0 to 2). The core sends no blur or saturation value. The pill must lie completely inside the rectangle of the bar window, or there is no glass; the result is also clipped to that rectangle. A bar drawn at another size gets no glass. The compositor clears the stored pill when the bar window unmaps or its client disconnects. Only the bar window gets this glass, and only where the bar is drawn: the normal scene and the overview, and over the sliding planes of a workspace transition, with or without depth. While the session is locked the scene draws only the lock content, as before. The bottom bar of an extra output has its own pill since 2026-11-10 (The bar of an extra output, below). One more region shares the panel budget (eight regions, 64 MiB). A static backdrop reuses the horizontal pass and the element identity, as for panels.

When the compositor has the pill, the host sets data-bar-glass="true" on the bar body and the CSS backdrop-filter of the pill turns off. The browser and an older compositor without the capability keep the CSS material.

The bar of an extra output (2026-11-10)

The owner asked for the same glass on the bottom bar of an extra output: under the theme Office the primary taskbar was translucent over the blur and the bar of the second monitor was solid, so the two had different colors side by side. The bar of an extra output (/desktop-sessions#output=<connector>, workspaces on several outputs) now follows the same path, with the name of its output:

  1. Its page measures its own #conversation-bar and sends POST /api/desktop-bar-glass with {"glass": ..., "output": "<connector>"}, with the shell token, only to a compositor that announces capabilities.outputBarGlass. With an older compositor it reports nothing, data-bar-glass stays false and the bar stays opaque, as before.
  2. The core accepts the keys glass and output only, checks the pill with barGlassGeometry and the output as a connector name, and sends bar_glass with output only with that capability, because an older compositor refuses the key.
  3. Smithay checks the limits again, refuses an unknown output and an output without a mapped bar, and keeps one pill per extra output. It reports them as outputBarGlass: [{output, glass}], which the page compares with its measurement, as the primary bar does with barGlass.
  4. Only the scene of that output draws the pill, behind its bar drawn at the size of its window, clipped to the bar, with the liquid material of the primary pill. The CSS controls --compositor-blur, --compositor-refraction and --compositor-rim-intensity are still read from the primary bar only (bar_material) and serve the bar of every output.

The limits of the primary pill hold: the command is refused while the session is locked, the lock scene draws no glass, the pill goes when the bar unmaps, its client goes away or its output is unplugged, and a theme without bar glass clears the pill of every output with a bar. The CSS rule of the translucent taskbar (--material-taskbar) reads only data-bar-glass="true", so a bar is translucent only while the compositor has its pill. Generated HTML, isolated panels, agent tools, MCP entries and scheduled turns have no route to it: the route takes the shell token, which only the protected host pages hold. Each pill is one more region of the panel budget.

Validation: the_bar_of_an_extra_output_gets_its_own_pill_glass and the_pill_of_an_extra_bar_goes_with_its_output (Rust), test/output-bar-glass-http.test.js, the bar glass test of test/smithay.test.js and the syncBarGlass test of test/host-script.test.js.

Activation: the compositor part needs a rebuild of Smithay and a new login. The host part needs a reload of the host assets. Until the new compositor runs, the host sees no capability and keeps the CSS material.

The chat glass in the canvas dock (2026-11-01)

Phase 5 of canvas windows uses the same path for the chat. On a Canvas workspace the host gives the body of the chat window the class canvas-dock, draws it as a rounded glass panel, and measures the body with measureBarGlass. A second createBarGlassReporter sends it to POST /api/desktop-chat-glass, which the core checks with barGlassGeometry and sends as the typed chat_glass command, refused while locked. The snapshot reports it as chatGlass and the capability as capabilities.chatDock. Smithay blurs with the material of the bar glass (BAR_BLUR, saturation 1.45), keyed by the id of the chat window, only while the chat draws at its dock rectangle in the active Canvas workspace and the overview is closed. A rectangle that does not fit in the chat window blurs nothing, and the compositor clears the stored rectangle when the chat client is gone. Transitions, the overview, the Grid and Focus layouts and a chat that has not yet taken a new dock size draw no chat glass. The root of the host has no background, so CSS would give the body background to the whole window and the corners of the panel would stay square; the dock rule sets a transparent image on the root to stop that, and clip-path keeps the children inside the rounded corners. The chat glass shares the panel budget. Its cost was not measured against the performance budget of the canvas.

Correction of 2026-11-02: the collapsed dock is only the composer (the user: "não precisava ser um card de unico elemento"). The compositor gives it a 640 x 82 window, and the host gives the body the class chat-dock-collapsed. In that state the body draws no panel, and measureChatDockGlass in host.js measures the composer (.composer-shell, radius 20) instead of the body, through the same reporter, route and chat_glass command. The expanded dock still reports the body. The protected setting chatBlur off makes the host report no glass for the collapsed dock (the composer keeps its CSS material), as it does for the composer outside the dock; the expanded dock keeps its glass with the setting off. An older compositor gets the same composer rectangle in its 640 x 180 window and blurs behind the composer only. See canvas windows, The floating chat.

Correction of 2026-11-02, later the same day: the paragraph above is history. The canvas chat floats centered, and the state collapsed hides it, so the compositor draws nothing of it and no glass. The host removed the class chat-dock-collapsed: in both states the chat keeps the Sidebar look, and measureChatDockGlass is gone again; the reporter measures the body, as before the compact chat.

The chat glass regions outside the dock (2026-11-01)

Since phase 3 of glass from the alpha channel this section describes only a compositor without capabilities.alphaGlass. On a capable one the core sends chat_alpha_glass {enabled} from the protected setting, the compositor takes the shape from the alpha of each chat window and reports chatAlphaGlass (also in each entry of outputChatGlass). While alphaGlassEnabled holds, the host measures nothing, posts no region and flags the surfaces with data-chat-glass from that report. Without the lease (refused, expired, an older core) the compositor draws regions, so after a settle of 2 s the host reports them as this section says. The route below stays and refuses nothing new.

The user found the chat surfaces "opaque semi-transparent": in the transparent Electron window the CSS backdrop-filter sees only the window itself, so the composer, the first-run color card and the conversation showed a flat tint over a sharp desktop. Outside the canvas dock the chat now gets the same compositor blur as the bar pill, in up to sixteen rounded regions. After a new login the user found the full-height conversation card too heavy ("não precisamos de um painel no chat, deve ser mais sutil e crescer só quando a conversa cresce") and asked to move it to the message bubbles. Since then there is no conversation card: each visible bubble has its own glass, and the rest of the chat area shows the sharp desktop.

  1. The protected host of the chat window (host.js, Electron only, not the bars and not recovery) measures, topmost first, the first-run color card (#profile-color-onboarding), the composer (.composer-shell), then the message bubbles, each with measureBarGlass. The bubbles are the article children of #messages inside the trusted ShadowRoot, user and assistant messages and the messages with an inline component, in the order of the conversation. measureChatGlassRegions in host/workspace-zoom.js clips each bubble to the visible conversation area (the scroller .chat-scroll inside #surface and the window), drops the bubbles out of view, stops at the first bubble below the view, and keeps sixteen regions at most (chatGlassRegionLimit). A bubble cut by the edge of the view keeps its radius, so its cut corners blur a little past the square CSS edge. The host measures the frame of an inline component from outside, as part of its bubble: the generated HTML in the frame never sets or sizes a region. No bubble in the palette, which hides the conversation, and none for a compositor without capabilities.chatBubbleGlass (an older one takes four regions); there the bubbles keep their CSS tint.
  2. A createBarGlassReporter with the field regions sends POST /api/desktop-chat-glass-regions with {"regions": [...]} (an output chat adds "output": "<name>", openspec/specs/multi-output-workspaces/spec.md, phase 2) and the host token when the measurement differs from chatGlassRegions of the compositor. It sends an empty list in the canvas dock, in the workspace overview, and while the protected setting is off. A scroll of the conversation, a change in #messages (a new message or a streaming bubble, through a MutationObserver), a resize of #messages, the composer area, #surface or the window each ask for a measurement in the next animation frame. The reporter coalesces them into one measurement per frame and sends the next one only after the earlier request has returned.
  3. The core accepts exactly the key regions, checks a list of zero to sixteen bar glass shapes with chatGlassRegions (core/smithay.js), refuses a non-empty list while the setting is off ("The chat blur is off"), refuses more than four regions when the compositor does not announce capabilities.chatBubbleGlass, and sends the typed chat_glass_regions command when the compositor announces capabilities.chatBackdropBlur.
  4. Smithay checks the same limits (glass::MAX_CHAT_REGIONS, 16), refuses the command while locked, and reports the list as chatGlassRegions. It clears the list when the chat client is gone. It reports as chatGlassDrawn how many of the regions its last normal frame blurred. A new list resets the count to 0, and a workspace transition, which draws no region, sets it to 0 too.

The recovery document of the chat window has the reporters too, but it measures nothing: it sends an empty list, so the compositor drops the regions of a host that went into recovery.

The compositor blurs each region with the blur and saturation of the bar pill (BAR_BLUR, saturation 1.45) and the reported radius, keyed by the chat window and the region index (glass::GlassKey; region 0 stays the dock glass). It draws them only in the normal scene, with the overview and the overview planes closed, outside the Workspaces presentation and Canvas (where the dock glass is the only chat glass), and only while the chat draws at the size of its window. The compositor checks these states itself, so a late host report cannot draw the regions over the overview. A region that does not fit in the window blurs nothing. The first region of the list samples the others below it. A workspace transition shows the chat without these regions, as for the dock. The cache key is the position in the list, so when the first-run card shows or hides, or a bubble scrolls out at the top, the later regions get new textures in the next frame. The panel budget is now 24 targets (MAX_PANELS: eight for the bar pill, the dock glass and the panels, plus the sixteen chat regions) and stays at 64 MiB. Each region is its own blur pass. The chat regions together may use at most half of the pixels (MAX_CHAT_PIXELS); a region over that limit blurs nothing, so the bar and the panels keep their glass.

When the compositor holds exactly the regions that the host measured last and its last normal frame blurred all of them (chatGlassDrawn), the host sets data-chat-glass="true" on the body and on each measured element (the cards, the composer and each measured bubble). When the compositor holds that list and blurred only part of it (a full budget), holds no region, loses the capability, or the core refused the last report (the reporter calls onResult), the flag turns off, so the earlier tint stays. While the compositor has not yet taken the newest measurement, or holds it with no frame drawn yet (a new list resets chatGlassDrawn to 0), the flag keeps its state, so a list that no frame can draw at all (every region over the budget, or a shader failure after the flag was on) keeps a lighter tint until the next change. The reason: a scroll or a streaming bubble moves the regions every frame, and a flag that waited for each list would flash the heavier tint at every step. So a bubble that comes into view can show the lighter tint up to one poll (600 ms) before the compositor reports it drawn. A bubble past the limit gets no flag and keeps the heavier tint. With the flag the cards and the composer use --glass-panel-blurred (the panel tone --color-glass-surface, or the wallpaper palette base, as frosted glass since 2026-11-03 (a white sheen over a dark veil, 75% since 2026-11-04, with white text on the flagged surfaces; 85% of the panel tone before, which hid the blur), with the existing light sheen and a faint SVG grain --glass-grain), keep the edge highlight of --glass-shadow, and drop the CSS filter. A flagged bubble (ui-src/style.css) uses the same --glass-panel-blurred, --glass-bubble-shadow (the edge highlights of --glass-shadow without its drop shadow) and a 1 px --glass-border edge drawn as an inset shadow, so the flag never changes the size of the bubble. This is the composer material, which keeps the AA contrast of the palette for the text. Without the flag a bubble keeps --color-message-surface. An assistant bubble without an inline component is as wide as its text (width: fit-content), as the user bubble already was; a bubble with an inline component keeps the column width for its frame. Three cases keep the earlier material. The browser has no reporter. An older compositor reports no chatBackdropBlur, so the reporter sends nothing. The solid material, prefers-reduced-transparency and forced colors set --glass-filter: none, so the host measures no region.

The protected setting chatBlur (on by default) is the toggle "Desfoque real atrás do chat" in Configurações, section "Vidro do chat", through POST /api/chat-blur-enabled {"enabled": boolean}. Turning it off saves the setting and clears the regions of the compositor. No agent tool and no generated HTML reaches these routes.

Not covered: the protected panels keep their declared panel glass (blur 12, radius 16, docs below); the canvas dock keeps its own glass and tint (the hidden chat draws no glass); a very bright area under the dark glass lowers the contrast of the muted text, which the solid material avoids. The frame of an inline component keeps its own --panel background, so the blur shows around the frame, not through it.

Activation: the compositor part needs a rebuild of Smithay and a new login. The host and core parts need a reload of the host assets and a core restart. Until the new compositor runs, the host sees no chatBackdropBlur and keeps the CSS material. A compositor with chatBackdropBlur and without chatBubbleGlass (the build before the bubbles) gets the cards and the composer only.

Verification: the_compositor_blurs_the_chat_regions_outside_the_dock checks the typed command, the limits (sixteen accepted, seventeen refused, capabilities.chatBubbleGlass), the drawn count reset, the lock, Canvas, the F9 overview, the overview planes, the Workspaces presentation and the cleanup; the EGL test egl_chat_glass_regions_blur_only_the_reported_regions (deleted 2026-11-11; mirror native_wgpu_chat_glass_regions_blur_only_the_reported_regions) renders the production scene with a striped wallpaper and checks that only the two reported rounded regions turn gray, then that sixteen bubbles all blur (chatGlassDrawn 16) and the gaps between them stay sharp. Node tests cover the measurement (clip, order, limit, the older limit), the bubble source, the observers, the list comparison, the reporter, the flag, the core validation and RPC, and the HTTP routes with the setting.

Nested QA of the bubbles (2026-11-01, docs/nested-qa.md, synthetic busy wallpaper, a synthetic conversation of seven user and seven assistant messages (one of them an inline component), light mode, one 1896x1032 output): the state showed seven regions (the composer and six bubbles, the inline component one of them, the bubbles at the top and the bottom cut by the view) that matched the bubbles of the capture, all drawn, before and after a scroll; the space between the bubbles showed the sharp wallpaper; the setting off cleared the list and brought back the flat tint. A first run showed a gray haze between the bubbles: the drop shadow of --glass-shadow on each bubble. The bubbles now use --glass-bubble-shadow, the edge highlights without the drop shadow. Cost, from RUST_LOG=frame_timing=info in the nested software renderer of a loaded host, the same seed on the build before the bubbles and on this one: the old list (composer and conversation card) was 2 blur passes and about 1.09 million padded pixels; the bubbles were 7 passes and about 1.43 million (17% of the pixel budget, 34% of the chat half). At rest both draw from the cache (scene 0.3 ms). During a scroll the old card did not move, so the scene stayed at 0.3 to 0.8 ms on average (95th percentile 2 to 5 ms); with the bubbles every region moves, so each frame blurs again: scene 16 to 31 ms on average, 95th percentile about 100 ms. Each scroll step gave exactly one new list; the compositor held it about 220 ms after the input and drew it about 50 to 75 ms later (one nested frame). The nested renderer says nothing about a real GPU, and the delay between the frame of the scrolled bubbles and the new list was not isolated. Dark mode, a real GPU, a streaming reply (no provider in the run) and the live session were not tested. The captures stay outside Git.

Verification of this implementation

Rust unit tests check the shape, the limits and the containment of the pill in the bar (bar_glass_is_typed_bounded_and_strict, bar_glass_follows_the_bar_and_never_leaves_it). The ignored EGL test egl_bar_glass_blurs_only_the_reported_pill_under_the_bar (deleted 2026-11-11; mirror native_wgpu_bar_glass_blurs_only_the_reported_pill_under_the_bar) maps an in-process striped wallpaper window and a transparent bar window, renders the production scene offscreen and checks that the stripes under the pill turn gray, that the margins, the rounded corner and every row outside the pill stay sharp, that a narrower pill moves the blur, that a pill outside the bar and null blur nothing, and that the locked scene is plain black. The EGL test egl_bar_glass_saturates_the_pill_and_leaves_panels_unchanged (deleted 2026-11-11; mirror native_wgpu_bar_glass_saturates_the_pill_and_leaves_panels_unchanged) uses orange stripes under the pill and a declared panel. It checks that the pill gets the saturated blur (about 178, 69, 15 from the mean 150, 75, 37.5) with the same luminance, and that the panel keeps the plain blur, also after the pill appears. css_saturation_maps_to_a_bounded_factor_for_the_pill_only checks the mapping and its bounds. Node tests cover the measurement, the reporter, the core validation and RPC, and the HTTP boundary. The transition paths, a real GPU, Electron, the live session and a new login are not proven by these tests.

Since 2026-10-31 the compositor places three protected defaults under the top bar, while a trusted top bar is mapped: quick settings at the top right, the notification center at the top center under the clock, and the notification toasts at the top center. All three keep an 8px gap under the bar (TOP_BAR_GAP; before 2026-11-01 quick settings and the notification center touched it). It recognizes the current defaults and the exact legacy defaults of the bottom bar (offsets 0/40 for the two panels, bottom-right 8/48 for the toasts), so existing configurations follow without a rewrite. Custom offsets and isolated panels keep their anchors. The volume indicator stays at the bottom center, above the bottom bar. An isolated screen panel never covers a bar: the compositor moves it, and shrinks it if necessary, into the content area between the bars. A panel window is a web panel only when its Wayland client is the registered host process, and it navigates only to its own route.

The top bar window ("Agent Native Top Bar", 40px at the top since 2026-11-06, see The top bar pill) has no compositor blur. It keeps its dark CSS material, which is opaque enough without a backdrop blur. barGlass stays the pill of the bottom bar only.

Reload of the main surfaces

The native Electron menu offers Recarregar superfícies web (Reload web surfaces; Ctrl+Alt+R). It reloads chat, bar and wallpaper in the same host instance, and keeps the core, OpenCode, compositor and applications. The current URLs are preserved, including /recovery. Declarative panels keep their selective asset watcher. Drafts for up to one hundred conversations are kept in the sessionStorage of the host tab and are used once at the next start. They are not copied to logs or to generated HTML. When storage is unavailable, this preservation is best effort. It is not a backup of drafts after logout or a host switch.

Use it after preparing the bundle of the trusted sources. This reload applies files that the core already serves from disk. Changes to Node modules, desktop.cjs or to the network policy require a supervised restart of the host/core. Changes to the Smithay binary require a new session. The first installation of this shortcut also requires a new host. It does not run pull, build, a profile switch or a reset of the appearance. The existing page exit cycle turns voice off. Local states of inline components, selection and scroll can restart. The history stays in the core.

Validation on 2026-10-27: 139 Node tests, formatting and check/build:check passed. In the browser, two synthetic conversations kept distinct drafts after reloads and a conversation switch, with the same core. The Electron activation and the physical acceptance of the shortcut are separate steps.

Glass with real blur (2026-10-28)

Smithay announces capabilities.panelBackdropBlur. Declarative panels accept an optional glass object, without changing version 1 of the file:

"glass": { "enabled": true, "blur": 12, "radius": 16 }

Only these keys are accepted: enabled, blur, radius and, since capabilities.visualStyle (2026-11-03), saturate. For a protected panel the core fills the keys that an entry leaves out with enabled: true, blur: 12 and radius: 16 (the --radius-surface of the design scale, since 2026-11-03; 13.5 before), and on a visualStyle compositor it sends the bar material instead (see below). A plugin sends only its own keys, and the compositor fills an omitted one with its own default (Glass::default of layers.rs: blur: 12, radius: 13.5, saturate: 100). blur is the strength of the glass pipeline, the same unit as the bar pill: a standard deviation of blur / 3 pixels, so CSS blur(Npx) is 3 * N, and 12 is blur(4px). It accepts 0 to 72 since capabilities.visualStyle, 0 to 24 before. saturate is the CSS saturate(<percent>%) after the blur, 0 to 200; 100 is the identity, and the shader then skips the saturation matrix. radius accepts 0 to 64 pixels. Non-finite values, null, wrong types and unknown keys are refused, and the last valid declaration stays. Zero blur or enabled: false turns the pipeline off. Since phase 2 of the style unification (2026-11-03, openspec/specs/css-structure/spec.md, "Design tokens") every protected panel whose surface fills its window takes these defaults when glass is absent: quick-settings, notification-center, tray-menu, workspace-menu and volume-indicator (glassPanels and panelGlassOf in web-shell/core/web-panels.cjs, which also builds the declaration). The screenshot UI keeps no glass: it covers the output that it captures. The notifications popups paint separate cards in a transparent window, so a blur of the whole window would show between and around them: on a compositor with capabilities.panelAlphaGlass each card takes the alpha glass (below), and on an older one they stay without blur. body[data-glass] follows the same glass: it is true only when the connected compositor announces capabilities.panelBackdropBlur and the panel has a glass with enabled and a blur above 0, so a page never takes the blurred tint without the blur behind it (before, the tray and workspace menus and the notification panels were marked without a declared glass). Since 2026-11-06 the notifications popups take the dark tones of that tint in both themes, with or without blur, so a light system theme does not leave them as the only light plates next to the chat and the other panels. Without blur their cards take a stronger veil (--panel-raised-surface) in place of the tint, because nothing softens what is behind them (host/notifications.css, test/panel-glass-contrast.test.js). A panel surface over a blur and a popup card take --shadow-edge: the window ends at the surface or close to it, so a wide shadow only shows as a cut rectangle over a light application. Plugins stay without blur until they opt in explicitly. Existing configurations are not rewritten. Old compositors reject the new key: wait for the first compatible login before adding it to the real file.

The compositor composes only the surfaces below the panel, without the cursor or the content of the panel itself, in a region with a 26-pixel margin. Two separable GPU passes use a contiguous Gaussian kernel of up to 49 taps per axis, combined into up to 25 bilinear samples. The result gets a rounded clip under the web Wayland surface. Text, controls and colors are still drawn by Electron. There is no production readback, no transmission of pixels to the HTML, no effect on the content of applications and no new native controls. The material is static: reduced motion does not need to turn it off.

Every protected panel surface is .panel-surface of host/panel-base.css: --material-glass with --shadow-surface and --radius-surface, the material of the chat. With body[data-glass="true"] the surface takes --material-glass-blurred, the frosted tint of the chat glass, which is dark in both themes, and the light text roles of the palette (--color-on-wallpaper, --color-on-wallpaper-muted, and control, hover and border tones mixed from it), as the flagged chat surfaces do. The accent is --color-on-wallpaper-accent (with the text on an accent fill in --color-wallpaper-background), the error is --color-top-bar-error lifted 40% toward the light text, and the HeroUI and quick settings aliases that theme.css resolves on :root (--accent, --danger, --focus, --focus-ring-color and the like) are declared again on the surface. web-shell/test/panel-glass-contrast.test.js checks in a browser, for each preset color in the light theme, that the text, muted, accent, error and warning text keep 4.5:1 and the focus ring 3:1 against the wallpaper glow and end plates under the lightest stop of the frosted tint. The blurred scene behind a real panel can be any window, so this is the contrast against the default wallpaper, not a proof for every backdrop. Without the capability the surface keeps --material-glass without a blur. The CSS served to a protected panel follows the radius of its glass, and a panel without a glass gets no radius rule.

The compositor blurs the whole panel window, so the surface must fill it. The base gives html, body and main no margin or padding; a fit_content panel (the tray menu, the workspace menu, the notification panels) takes the height of its main (core/panel-windows.cjs, rounded up to whole pixels, at least 16), and every glass panel gives main the full window width, so no blur shows outside the rounded surface. The volume indicator has a fixed 280 by 72 window that its surface fills. The pages and their CSS are read from the host/ folder of the checkout that the core runs (a protected panel with another source_root is refused), never from a profile copy, so no stale copy can exist. The core reads them again when its registry refreshes, which it does before each panel declaration; a checkout change still needs the build of the bundles and reaches a running core only through those reads. Submenus and confirmations of quick settings use the solid raised surface of the panel (--panel-raised-surface: the surface tone, or a 92% veil of the wallpaper background over the blur). The solid material, prefers-reduced-transparency and forced colors keep --material-glass, which theme.css makes solid there. A shader, allocation or budget failure keeps the readable web material without replacing the session. The compositor records the first failure, discards the incomplete target and allows a new allocation attempt in later frames. A compilation failure turns the shader off in that instance.

Isolated components must draw their own translucent background and align their radius with the declared one. An opaque surface covers the blur, and a surface with empty spaces can show the glass across the whole declared rectangle. The contract does not discover DOM rectangles and does not expose any authority to the iframe. Changes to glass update the compositor through the declaration of the core and reload the document of the panel through the host watcher. They do not change the conversation profile or theme v3.

Up to eight panels can be active at once, with the sum of the expanded areas limited to 8,388,608 pixels: two RGBA8 targets per region, up to 64 MiB, in addition to the other caches of the compositor. Hidden, removed or disabled panels release their targets. A different size recreates only the targets of that panel. Damage to the content below or a change of the material updates the horizontal pass. A static source preserves the texture, identity and commit. The vertical pass is drawn with the panel when the output has damage. This is not a measurement of FPS or physical consumption.

The web cache of the transitions includes the localized glass of each workspace, before the scale/blur of the whole scene. Panels without a cache use the live composition of the matching workspace. The glass respects the same viewport as the web surface, and does not leak into the neighboring card. The preview overview still omits panels and conversation, as its earlier contract says.

Verification of this implementation

The EGL test uses the real pipeline with a synthetic checkered desktop and two overlapping panels. It checks blur on both axes, sharp controls, corners, stacking, background update, reuse without damage, viewport clipping, release when hiding or on failure, and eight output transforms. ANOS_GLASS_QA_DIR exported synthetic PPM frames outside Git (the variable went with the GLES glass test on 2026-11-11, step 7 of openspec/changes/archive/2026-11-10-gles-removal-plan/design.md). The frames were inspected visually.

In the browser, the real assets of the quick settings were served with a synthetic API, without core/provider/system services. The light, dark and fallback materials were inspected. The power submenu stayed solid, and the width of 390 pixels had no overflow. This proof validates the web UI, not the blur of the desktop. The GPU proof is offscreen. The team started no new Electron host or compositor. The integrated Electron/DRM acceptance requires the next login with the new engine.

At this step, format:check, check/build:check, 200 Node tests and 77 Rust tests with session, including the EGL tests, passed. So did cargo fmt, Clippy with warnings as errors and the release build prepared in a dedicated worktree.

The material of the bar and chat on the panels (2026-11-03)

The style unification (phase 5) gives the panels the material of the bar and the chat: {"blur": 72, "saturate": 145, "radius": 16} is blur(24px) saturate(145%) with the 16 px surface radius, the same strength and factor as BAR_BLUR and the pill (glass.rs). The compositor takes it only with capabilities.visualStyle; an older compositor refuses the declaration (a blur above 24 or the saturate key), so the core declares it only on a compositor that reports the capability and keeps {blur: 12, radius: 16} (panelGlass) otherwise. panelDeclaration of core/web-panels.cjs takes visualStyle from the compositor capabilities (core/window-declarations.js, read only after readiness of a known state), and panelGlassOf then gives every panel of glassPanels barMaterialGlass as its default instead of panelGlass; the keys of a protected panel's own glass still go over that default, and a plugin keeps only its own keys. The core validation of glass takes saturate (0 to 200) and a blur up to 72, and a declared glass with saturate or a blur above 24 is refused on a compositor without the capability, before it reaches the compositor.

Since 2026-11-03 (approved by the user) a protected panel with the bar material also draws the liquid rim and refraction of the chat regions: Material::panel of glass.rs sets liquid when the panel is protected and its glass has the blur (72) and saturation (145) of the pill, which the core sends only on a visualStyle compositor (layers.rs panel_material). The old default {blur: 12} and every isolated panel (a plugin, even with the same glass) stay the exact CSS blur. The bar pill is a separate change. Not yet checked on the real desktop or in nested QA.

Liquid glass of the chat (2026-11-03)

The user asked for glass with depth, like the Liquid Glass references, drawn by shaders so the lighting can be tuned. The chat regions (composer, cards, bubbles) take BarGlass::liquid_material: the final pass (native/smithay/src/glass.wgsl, glass_liquid.wgsl since 2026-11-17; the GLSL glass.frag until 2026-11-11) reads the backdrop further inside within 18 px of the rounded edge (a lens; 14 px until 2026-11-17, now 0.4 of the band), and lights the rim from the top left with a thin line and a soft inner glow, weaker on the opposite edge. Since 2026-11-03 the pill of the bottom bar, which holds the workspace indicators, takes the same liquid material (the top bar has no glass); the passes are the same, only the final pass refracts and lights the rim, so the redraw cost of the bar does not grow. A host that reports no pill (glass off, the solid material, prefers-reduced-transparency or forced colors) still gets no glass. The protected glass panels with the bar material take it too (see "Glass with real blur"). The band widths were tuned for the chat bubbles; on the 24 px pill the lens band (18 px) and its shift (14 px) scale down to 0.3 of the shorter side of the card, and the glow band (26 px) to a quarter of it, so a short card keeps them at its edge; a card 87 px tall or more draws as before. Since 2026-11-03 the pill with bar glass takes the frosted --material-glass-blurred with the on-wallpaper text and white icons in both themes, like the panels and the chat; a lighter tint with dark text needs 93 % opacity or more for AA. Since 2026-11-04 that tint is a veil of 75% of the wallpaper background under a sheen of 6% to 2%, in place of 22% and 14% to 4%, because the light text read at about 1.4:1 over a white window. The flagged chat surfaces take the accent and the error of the panels on this glass, in both themes, so the buttons of the composer are light with dark text. test/panel-glass-contrast.test.js checks AA over white for the panels, the bar pill and the composer in every profile color, and of the three steps tried, 75% with that sheen is the lowest that passed (70% with a sheen of 8% failed on the muted text). The cost is less wallpaper through the glass. The flagged bubbles take the same tones through their own rule, with no rendered contrast check. Text inside generated HTML is not part of this. The solid material, reduced transparency and forced colors keep the opaque pill. The flagged chat surfaces have no CSS border line, since the compositor draws the rim, and take the frosted tint --glass-panel-blurred with white text. A host on an older compositor shows the frosted tint without the rim. The light direction and the band widths are constants in the shader.

Since 2026-11-17 (asked by the user, who wanted the refraction of the Mac) the rim band shows the backdrop before its blur. Until then the final pass read only the backdrop after the horizontal pass, and the band kept the full blur of the middle, so the shift did not show. The final pass now also reads the unblurred backdrop:

  • Plain glass: the program glass liquid takes the backdrop as its second texture.
  • Alpha glass: the final pass takes the downscaled backdrop as a third texture, beside the soft mask.

The shift. It went from 14 px to 0.4 of the band (7.2 px on the full band of 18 px). With 14 px the read point moved back toward the edge in the outer part of the band, which folded the sharp backdrop. With 0.4 it moves inward monotonically, and the backdrop is magnified up to 5 times at the rim.

Within the band, the lens weight goes from 0 at the inside of the band to 1 at the rim:

  • The sharp backdrop at the shifted point replaces the frosted color by the smooth lens weight, all of it at the rim. The replacement runs before the saturation, the tone and the lit rim.
  • The sharp read has a small tent blur of about 2 px (four bilinear reads at +-0.5 px).
  • Red and blue move by up to 1.2 px along and against the normal.
  • The knee of the tone rises with the same weight, from 0.30 to 0.46 at the rim, so the bent backdrop keeps its light there. The middle, where the text is, keeps 0.30.

Refraction. On the plain glass the refraction of the material scales the replacement, and a refraction of 0 draws the frosted plate. The alpha glass has no refraction input and draws it at full strength.

Unchanged: the middle of the plate, the glass that is not liquid and the plugin panels.

Nested QA (headless, a synthetic wallpaper of thin colored lines and text): the composer, the dock of Lumen and the pill of Galaxy show the lines bent into the edge with a slight color split. The pill of Galaxy is short, and its scaled band keeps the effect small.

The tone of the glass

On 2026-11-06 the user judged the glass gray ("estou convencido de que ela não está com o efeito bom"), and measured captures over the black hole wallpaper showed why: the disk had a saturation of 0.85 outside the glass and 0.04 behind it. Three things did that: a purple veil at 75%, which cancels yellow and orange, a white sheen, and a highlight of the backdrop that stayed bright under the veil.

  • The veil is now --color-glass-veil, nearly neutral, at 55% in --material-glass-blurred, with a sheen of 4% to 1%.
  • The final pass of the liquid material (glass.wgsl and glass_mask_final.wgsl; GLSL until 2026-11-11) raises the saturation by 1.25 more after the saturate of the material and brings the highlights down by up to 55% (smoothstep of the luminance from 0.35 to 1). So a white window behind the glass counts as #737373 when the contrast is computed. web-shell/test/panel-glass-contrast.test.js holds that value and checks AA on it.
  • A panel that is not liquid (a protected panel with another glass of its own in web-panels.json, or a compositor without visualStyle) gets no tone, and over a white window its muted text falls below AA with this veil. A compositor without the tone is why scripts/check-host-skew.py warns about a host with this veil on a compositor without capabilities.panelAlphaGlass.

Over a window that is really white, the glass still is a neutral dark plate, since there is no color behind it to keep.

On 2026-11-16 the user judged the glass again ("ainda tá com efeito glass feio e bem longe do que eu queria", after asking for liquid glass as on the Mac): over a dark wallpaper the 55% veil left a black plate with a gray contour. The values above changed, for Galaxy and Lumen:

  • The veil is 26% and the sheen --glass-sheen goes from 14% white at the top to 5% and 8% at the bottom, so the glass has a body of its own over a dark scene and lets the color of the scene through. The dock plate and the top strip of Lumen take the same material in the dark scheme.
  • The tone of the final pass is a soft knee and no longer a veil of the highlights: the backdrop keeps its value up to 0.16 and bends towards 0.30, which white reaches, and it never falls as the backdrop gets brighter. A white window counts as #4c4c4c in panel-glass-contrast.test.js. Ninja shares the shader and keeps its own veil.
  • The pill of the top bar had never taken its glass plate: the top bar reads only the bar view (pollBar), which did not set body[data-top-bar-glass], so the pill kept the opaque --color-top-bar-background and its CSS border under the glass of the compositor. The bar view now carries uiThemeGlass and sets the flag.

A host with this veil on a compositor with the tone of before reads worse over a white window until both run the same checkout, which a login does.

The alpha glass of the popups and the top bar

Since 2026-11-06 a declared glass may carry alpha: true (Glass in layers.rs): the glass takes the shape of the alpha of the window (the mask of the alpha mask, phase 4) and not the rounded rectangle of the window. It serves the notifications popups (alphaGlassPanels in core/web-panels.cjs), whose page then has body[data-glass], and the top bar (barAlphaGlass in core/window-declarations.js), whose host page sets body[data-top-bar-glass] from the state. Since 2026-11-13 the bottom bar takes it too while the theme has bottomIslands (Ninja): the glass then sits under the two islands only, and the host reports no pill. The core sends the key only with capabilities.panelAlphaGlass (the bottom bar also needs capabilities.bottomBarAlphaGlass), because an older compositor refuses it.

Unlike the chat this has no lease: the declaration lives and ends with its window, and the page does not fall back to reported regions. The closing of the mask is off for these windows: with no gaps to fill, it would join two cards or join the pill to the edge of its window (close of GlassMaskPipeline::render). They count as no mask of the chat in chatAlphaGlass.

Trust: the alpha of a window becomes glass, so the compositor refuses alpha on an isolated panel and on any bar but the top bar, and the registry refuses the key in web-panels.json (validGlass), so only the core declares it, and only for pages of the checkout. No agent tool, MCP entry, scheduled turn, generated HTML or plugin panel reaches it.

The window theme

All the glass of this document belongs to the window theme glass. The default theme office asks the compositor for no glass on the protected panels, the bars and the chat (window themes). A plugin keeps its own glass.

The top bar pill

Since 2026-11-06 the top bar is a floating pill like the bottom bar, at the request of the user ("O header eu também quero arredondado e glass"): the strip is 40 px (TOP_BAR_HEIGHT of layout.rs, the declaration, desktop.cjs and --top-bar-height, which web-shell/test/top-bar-height.test.js keeps equal), and the pill is 32 px with margins of 4 px and 8 px. The panels under the top bar sit at 44 px, 8 px under the pill (underTopBar). Roll the compositor and the host back together: a new compositor with an older core and host keeps the 40 px strip with the older 32 px bar, a gap of 8 px with no other harm, and scripts/check-host-skew.py warns only about the other direction. On a compositor without the alpha glass the pill stays opaque with --color-top-bar-background.

Binding contract (from AGENTS.md)

This section holds, word for word, the rule that AGENTS.md kept for this feature until 2026-11-10, when AGENTS.md was reduced to the short invariants (openspec/changes/audit-2026-11-10/design.md, F10). It binds exactly as AGENTS.md does; AGENTS.md keeps the short invariant and points here. Change both in the same commit.

  • Bar glass: the protected bar reports its pill geometry to the core, and Smithay draws the blur behind it (openspec/specs/web-panels/spec.md). Generated HTML cannot set it. Since 2026-11-06 the top bar is a pill in a 40 px strip, and only the core declares the alpha glass (glass.alpha, capabilities.panelAlphaGlass) of the protected top bar, the protected bottom bar (only for the islands of Ninja, capabilities.bottomBarAlphaGlass, since 2026-11-13) and the protected notifications panel: the compositor refuses it on an isolated panel, and web-panels.json cannot set it (openspec/specs/web-panels/spec.md, The alpha glass of the popups and the top bar).

  • Chat glass regions: on the chat window, floating (Canvas, and Grid on the primary output) or not, since 2026-11-03 with no glass panel around the floating chat, the protected host of the chat reports up to sixteen rounded rectangles (the settings panel while it is open, which hides the rest of the chat, the first-run color card, the composer and each visible message bubble, inline components included, clipped to the visible conversation; no full conversation card) through /api/desktop-chat-glass-regions, and Smithay blurs behind them (openspec/specs/web-panels/spec.md). The host measures the frames of inline components from outside; their generated HTML never sets or sizes a region. A compositor without capabilities.chatBubbleGlass gets four regions and no bubbles. The protected setting chatBlur (/api/chat-blur-enabled, on by default) turns them off. Generated HTML and agent tools cannot set them. Since phase 3 of openspec/specs/glass-alpha-mask/spec.md the regions are only the path of a compositor without capabilities.alphaGlass: on a capable one the core sends chat_alpha_glass {enabled} from chatBlur (control connection only, a lease with a grace of 60 s like canvas_warp), the compositor takes the shape of the glass from the alpha of each chat window, primary or output chat, reports chatAlphaGlass (also per entry of outputChatGlass), and while alphaGlassEnabled holds the host measures and posts no region; without the lease it reports the regions again after 2 s. Translucent pixels with alpha of 0.18 or more outside a glass surface become glass, so the trusted chat CSS must keep them out (openspec/specs/css-structure/spec.md, Alpha in the chat window). .inline-surface stays opaque, so generated HTML cannot make glass inside its frame, unless the agent applies profile CSS (replace_ui, which takes no user click) that clears that surface. No agent tool, MCP entry, generated HTML, scheduled turn or plugin reaches the command.

The top bar of Ninja (2026-11-13)

Under the experimental window theme Ninja (openspec/changes/theme-packs/design.md, section 6) the core declares the top bar window at 52 px, height and exclusive zone, from topBarHeight of the entry (40 px when absent), and declares it again when the theme changes in either direction (refreshGlass treats a changed height as stale). The bar draws three islands, each as wide as its content, with nothing between them; the window is transparent there, so the alpha mask leaves no glass between the islands.