Galaxy Shell / docs

Visual effects, 3D and shaders

openspec/specs/visual-effects-3d-shaders/spec.md · Editar no GitHub ↗

Esta página ainda não tem tradução em português. O conteúdo abaixo está em inglês.

Este documento registra decisões, planejamento ou evidências de uma etapa do projeto. Não implica que todos os itens estejam implementados ou validados na versão atual.

Nesta página

Visual effects, 3D and shaders

Purpose

Records the landed visual effects of the shell: the aurora and crystal wallpaper, overview depth and parallax, workspace transitions with depth of field, real blur on panels, the thumbnail collapse and the activity states of the overview cards.

Requirements

Requirement: Visual components stay web-based

All visual components, including controls, window frames and the overview, SHALL stay React + Electron, and Smithay SHALL composite surfaces and control GPU effects, focus and input. Text, buttons and the send field SHALL stay HTML. Full text: section Fit in the architecture.

Scenario: Visual components stay web-based

  • WHEN a new visual effect is added
  • THEN the controls stay in the React UI and Smithay does the compositing and GPU effects

Requirement: Wallpaper lifecycle

The wallpaper effects SHALL give priority to a valid PNG image configured in the profile, cap the internal resolution at 1280x720 and the drawing at 30 frames per second, pause while hidden, draw nothing under reduced motion (the canvas hidden, no frames, WebGL not initialized), and keep the CSS background on a WebGL failure or a context loss. Full text: section Hexagonal crystals and the effect setting (2026-11-02).

Scenario: Wallpaper lifecycle

  • WHEN the user turns reduced motion on
  • THEN the wallpaper canvas hides and draws no frames

Requirement: Wallpaper effect setting

The wallpaper page SHALL draw one of two effects chosen by the protected setting wallpaperEffect (crystals by default, or aurora), and a change of the setting SHALL switch the effect in place with no page reload. The shader SHALL cap the relative luminance at 0.088 only behind the text that the chat draws straight on the wallpaper, and unknown regions SHALL cap the whole wallpaper. Full text: section Hexagonal crystals and the effect setting (2026-11-02).

Scenario: Wallpaper effect setting

  • WHEN the setting changes from crystals to aurora
  • THEN the effect switches with a fresh canvas and context and no page reload

Requirement: Wallpaper has no authority

The wallpaper effect SHALL be decorative and capture no input, and its script SHALL be a fixed host asset with no token, no tools, no conversation reading and no query of agent states. The page SHALL open only one connection, the read-only event stream /desktop-wallpaper/events, the only URL that its connect-src names. Full text: section Hexagonal crystals and the effect setting (2026-11-02).

Scenario: Wallpaper has no authority

  • WHEN the wallpaper page loads
  • THEN it opens only the read-only event stream and receives no token or tools

Requirement: Transparent host and throttling

Only the React container of the Electron host SHALL be made transparent, and only when the compositor is active; the browser and recovery SHALL keep the opaque background, and messages, sending and controls SHALL keep their panels. The wallpaper window SHALL disable Electron background throttling while shown and re-enable it on hide or minimize. Full text: section Aurora fix behind the chat on 2026-10-28.

Scenario: Transparent host and throttling

  • WHEN the host runs in a normal browser with an active compositor
  • THEN the opaque background stays

Requirement: Overview depth

The overview cards SHALL keep their click area while an inner layer gets a 1000px perspective, a tilt limited to 3 degrees horizontally and 2.4 degrees vertically; touch, coarse pointer and reduced motion SHALL use a static presentation, with at most one pending requestAnimationFrame and no idle loop. Generated HTML SHALL get no new access. Full text: section Second experiment: depth and parallax in the web overview.

Scenario: Overview depth

  • WHEN the user moves a fine pointer over an overview card
  • THEN the card tilts within the limits and the click area stays

Requirement: Dragging between overview cards is out of scope

Dragging windows between overview cards SHALL NOT be implemented or proposed; it is rejected for good. Full text: section Status.

Scenario: Dragging between overview cards is out of scope

  • WHEN someone proposes dragging a window between overview cards
  • THEN the proposal is out of scope

Requirement: Workspace transition limits and fallback

The workspace transition SHALL be flat without an enabled workspaceTransition package, reduced motion SHALL disable the animation and its depth pipeline, input SHALL stay blocked only during the existing transition states, and an output above the limit or a GPU failure SHALL keep the flat pass without ending the compositor. Reload SHALL affect only the next pass. Full text: section Parallel cards and depth of field (2026-10-28).

Scenario: Workspace transition limits and fallback

  • WHEN a shader fails to compile during a workspace switch
  • THEN the flat pass is used for that transition and the next pass can try again

Requirement: Web content follows the workspace

In the workspace transition the web host and the panels SHALL share the displacement and clipping of the applications, and only the navigation bar and the cursor SHALL stay fixed. The compositor SHALL keep at most two RGBA planes of up to 16 megapixels each. The workspace marker in the title SHALL carry no conversation text and grant no tools, and SHALL be published only when the compositor announces workspaceWebPlanes. Full text: section Web content follows the workspace (2026-10-28).

Scenario: Web content follows the workspace

  • WHEN the user switches workspace
  • THEN the chat and panels move with the applications while the bar and cursor stay fixed

Requirement: Panel glass isolation

Isolated web panels SHALL have no access to the pixels or the tools of the host; the compositor SHALL sample the lower scene on the GPU and the web SHALL keep the material, text and controls sharp. Full text: section Glass on web panels (2026-10-28).

Scenario: Panel glass isolation

  • WHEN a declarative panel declares glass
  • THEN Smithay blurs the scene behind it and the panel gets no pixels

Requirement: Thumbnail collapse

The collapse to the side thumbnail SHALL use a 280 ms smoothstep with no overshoot, SHALL NOT ask the client for a thumbnail size, take screenshots or allocate intermediate textures, and SHALL be immediate under prefers-reduced-motion. During the animation pointer and scroll SHALL NOT be forwarded to moving surfaces, and the logical minimize command SHALL still hide the window. Full text: section Collapse to the side thumbnail (2026-10-28).

Scenario: Thumbnail collapse

  • WHEN the user selects the side thumbnail under reduced motion
  • THEN the switch is immediate

Requirement: Overview navigation timing

The native slide SHALL last 300 ms and decelerate to zero speed, completing the gesture SHALL take at least 141 ms, a selection that leaves the overview SHALL suppress the native slide, and a repeated selection SHALL NOT cut the animation. Full text: section Navigation polish on 2026-10-28.

Scenario: Overview navigation timing

  • WHEN the user selects a workspace from the overview
  • THEN the preview does the visual transition and the native slide is suppressed

Requirement: Activity state of overview cards

The overview card activity SHALL be derived with approval ahead of working ahead of finished, an approval id SHALL count only while the turn is busy, Smithay SHALL draw nothing for it, and archived cards SHALL show no activity. Full text: section Activity on the overview cards (2026-10-31).

Scenario: Activity state of overview cards

  • WHEN a turn holds a stale approval id while not busy
  • THEN no approval prompt shows

Requirement: Finished mark rules

session.idle SHALL set finishedAt only when the last assistant message has no error, so a cancel, a timeout, a provider error and a runtime failure SHALL never set it. send() SHALL clear it, opening the workspace SHALL clear it, it SHALL live in state.json and the core SHALL NOT reset it at startup, and a finished turn on the active workspace SHALL keep the mark until the user opens that workspace again or sends a new message. Full text: section Activity on the overview cards (2026-10-31).

Scenario: Finished mark rules

  • WHEN a turn ends with a provider error
  • THEN the finished mark is not set

Requirement: Activity indicator accessibility

The activity indicators SHALL use the shared tokens with no new color family, each state SHALL have its own glyph and text label so color is not the only signal, the card aria-label SHALL end with the label, and the pulse SHALL run only under prefers-reduced-motion: no-preference. Full text: section Activity on the overview cards (2026-10-31).

Scenario: Activity indicator accessibility

  • WHEN reduced motion is on
  • THEN the working chip keeps a static dot

Status

Doc status: partly landed. Landed: aurora and other wallpaper effects, overview depth and parallax, real blur. Not landed: the haze transition (openspec/changes/haze-transition/design.md) and the deformed window transition. Dragging between cards is rejected for good. Checked 2026-11-10.

Introduction

Recorded on 2026-10-27. The project owner asked for an exploration of possibilities and authorized saving the proposal. After the initial record, the project owner authorized the aurora background and then the overview with depth and parallax. The deformed window transition remains exploratory. These authorizations do not include restarting the compositor or implementing the whole set of effects.

On 2026-11-01 the project owner asked for a haze workspace transition. Its specification and decisions are in Haze workspace transition. Nothing of it is implemented yet.

Fit in the architecture

Keep React + Electron for all visual components, including controls, window frames and the overview. Smithay composites surfaces and controls GPU effects, focus and input. See UI rendering and architecture decisions.

Goal Proposed layer Examples
Depth in components CSS in the React UI Tilted cards, parallax and transitions with perspective
3D scenes and materials WebGL canvas in the web host Particles, agent sphere, procedural background and interactive objects
Effects on external applications Smithay rendering Distortion on minimize, desktop blur and transitions between workspaces

In the inspection done for this conversation, native/smithay/src/scene.rs used GlesRenderer, scaling, repositioning and clipping of surfaces. This gives a base to build on. It does not prove that 3D perspective or custom shaders are implemented. Three.js and React Three Fiber are candidates, not dependencies adopted by this record.

Web UI and 3D scenes

Start with CSS for simple depth and add Three.js where camera, geometry, lighting or custom materials make a difference. React Three Fiber lets you describe Three.js scenes as React components. Its version must be compatible with the project's React version.

Text, buttons and the send field stay HTML, which preserves selection, focus and accessibility. The canvas provides the visual layer. A shader is a program that runs on the GPU. It can compute colors per pixel to create waves, noise, glow, refraction or dissolve. An aurora background can use only a rectangle filled by an animated shader.

Compositor effects

The Electron canvas does not automatically receive the textures of other applications. Transforming real windows requires integration in Smithay. GlesRenderer offers custom pixel and texture shaders. These features are parts for building effects, not a complete system that is ready to use.

Desktop blur requires preparing the sampled image and usually several render passes. backdrop-filter inside the chat is not enough to blur a terminal behind the Electron window. Glass that interacts with other surfaces needs the matching composition.

Arbitrary perspective requires implementing projection, ordering, clipping and conversion of pointer coordinates back to the original surface. Starting with 3D in transitions and in the overview reduces the interaction complexity and keeps reading comfortable in daily use.

First experiment: aurora on the wallpaper

The project owner authorized the aurora implementation after this exploration was saved. The existing web surface /desktop-wallpaper gets a WebGL canvas with soft bands in blue, teal and violet, animated slowly by a shader. The effect does not depend on Three.js and adds no dependencies. The sources are in vendor/interface/host/wallpaper.js, wallpaper.html and desktop-visual.css. Since phase 10 of openspec/changes/archive/2026-11-02-heroui-migration/design.md the React root of vendor/interface/ui-src/host/wallpaper.jsx owns the canvas and starts the drawing code of wallpaper.js; the bundle host/shadcn-wallpaper.js carries both.

A valid PNG image already configured in the profile has priority and prevents the aurora from starting. Without an image, the shader visually replaces the gradient. If WebGL is missing, shader compilation fails or the context is lost, the existing CSS background stays. The effect is decorative and does not capture input. The script is a fixed host asset, with no token, no tools, no conversation reading and no query of agent states. The CSP allows local scripts and blocks connections. The effect does not react to agent activity at this stage.

The internal resolution is limited to 1280x720 and to the window size, with no DPR multiplication. Drawing is limited to 30 frames per second. The reduced motion preference produces a static frame and follows changes without a reload. A hidden page cancels the animation. This uses the visibility reported by the browser. It does not prove suspension when other windows cover the wallpaper in Smithay. Leaving the page cancels the animation and removes the listeners.

The change does not modify the compositor, the main React UI, the profile or the CSS customization cycle. The integration uses the wallpaper window that Electron already creates, and adds the fixed script route to the list of allowed resources.

Evidence and activation

npm ci, npm run format:check, npm run check (including build:check) and the 139 Node tests passed. Eight focused tests cover the fixed assets, PNG priority, the resolution and frequency limits, reduced motion, visibility, context loss and cleanup. After the final adjustments, formatting, check and the focused tests passed again.

In headless Chrome with SwiftShader, serving the real assets over an isolated loopback HTTP server, the module loaded under the CSP and the shader rendered the aurora. Two captures taken at different times showed a pixel change. With reduced motion, the captures were identical. A simulated context loss returned to the CSS, and a synthetic PNG had priority over the canvas. The aurora capture was inspected visually. The QA server and Chrome were closed. Media and temporary scripts stayed outside Git.

This is browser evidence with software rendering. It is not a benchmark on a physical GPU and not proof of Electron/Smithay composition. No shared process was restarted. In the operational inspection, the active source was at an earlier revision, with a recent activation/rollback failure recorded in the coordination log. Synchronizing it requires a supervised operation that also handles the intermediate changes. Publishing this implementation to main does not activate it on the desktop and does not declare the next login updated.

Later confirmation in the session in use

On 2026-10-27, the custom PNG image was preserved by a rename inside the profile, under coordination, to free the aurora. The window that was already open kept showing the old pixels until reload. After fix 9b98044 for the React asset filter in Electron and the supervised activation of the host/core, two native Smithay captures confirmed the aurora visible and animated next to the chat. The application in immersive mode covers the wallpaper, which is the expected behavior. The previous presentation was restored after the inspection. Continuity of the profile and of the applications was verified, without restarting the compositor. This adds Electron/Smithay visual proof to the browser proof, without claiming measured GPU performance.

Hexagonal crystals and the effect setting (2026-11-02)

Current contract; the aurora sections above are history for the parts this section changes. The wallpaper page draws one of two effects, chosen by the protected setting wallpaperEffect (crystals by default, or aurora):

  • Crystals: 28 doubly terminated hexagonal prisms in three depth layers (14 far, 9 middle, 5 near) with plain WebGL 1 and no library. Since phase 1.5 (the aesthetic pass) each crystal has an emissive core, facet lines, a Fresnel rim and an additive halo, over an fbm fog backdrop with about 180 soft particles in three layers. The far layer draws into a half-size texture, a separable 9-tap blur goes through a second texture, and a composite upsamples it: depth of field on the far layer, a soft middle layer and a sharp near layer. A frame makes 91 draws. Without usable render targets a no-DOF path draws all layers straight to the canvas (88 draws). The scene code is in host/wallpaper-crystals.js. The colors follow the profile palette live and move to a new palette in 600 ms in linear light. The shader caps the relative luminance at 0.088 only behind the text that the chat draws straight on the wallpaper (the legibility regions); unknown regions cap the whole wallpaper. Phase 1 capped every pixel at 0.09; that is history.
  • Aurora: the shader above, with its fixed colors.

Both share the lifecycle of startWallpaper (PNG priority, the 1280x720 and 30 fps caps, the pause while hidden, nothing under reduced motion, the CSS fallback on a WebGL failure or a context loss). A change of the setting switches the effect in place, with a fresh canvas and context and no page reload. The page now opens one connection: the read-only event stream /desktop-wallpaper/events, the only URL that its connect-src names. The wallpaper window has its own partition agent-native-wallpaper. The spec, the phases and the evidence are in openspec/specs/hex-crystals-wallpaper/spec.md. The canvas class is wallpaper-effect.

Second experiment: depth and parallax in the web overview

The project owner requested this step after the aurora. The current web overview presents open conversations and the labels of the observed applications. It does not receive window textures. This implementation applies depth to the existing cards. Live thumbnails inside these cards still depend on a composition contract with Smithay. The F9 overview and the effects on external windows are not changed.

Each button keeps its click area and an inner visual layer receives a 1000px perspective, a tilt limited to 3 degrees horizontally and 2.4 degrees vertically, and lighting that follows the pointer position. Decorative layers, title and labels use distinct depths, with a teal, blue and violet palette. The active workspace keeps its own highlight. Keyboard focus has a contrasting outline.

The web controller overview-depth.js groups pointer events into at most one pending requestAnimationFrame, with no idle loop. Touch, coarse pointer and reduced motion use a static presentation. Pointer exit, scrolling, keyboard, focus loss, hidden page, closing and card rebuilds clear the state. pagehide removes the listeners. The reduced motion preference follows changes at runtime.

Conversation selection, locks during operations, overview generations and the return to the previous presentation stay under the existing controller. There is no new access for generated HTML. The module is a fixed host asset, served on the /overview-depth.js route and explicitly allowed in the Electron filter. There is no new dependency and no change to the renderer or the compositor.

Overview verification

npm ci, format:check, check/build:check and 148 Node tests passed. The additional tests exercise event grouping, a stable click area, dynamic reduced motion, touch/coarse pointer, keyboard, cancellation, closing, hiding, rebuilding and cleanup. The HTTP test checks the fixed module route.

The real host was served with synthetic state in an isolated browser. The captures at widths of 1280 and 390 pixels were inspected, with visible focus and no horizontal overflow. The tilt produced a matrix3d transform. Pointer exit, reduced motion and Escape cleared the effect. A click selected another workspace and closed the overview. Because headless Chrome reported no hover, the tilt proof simulated a fine pointer and adjusted only the CSS media of the fixture. This does not prove a physical desktop pointer. Touch was exercised with a synthetic PointerEvent. Enter through CDP did not trigger selection in this harness. It remains without physical validation, although the button semantics and its selection handler were preserved. No JavaScript error was observed. The QA processes were closed and the captures stayed outside Git.

Revision 47b0709 was activated in the configured checkout and in the shared host/core, under lock, external supervision and rollback, on 2026-10-27. The 148 tests were repeated during preparation. The guard confirmed continuity of the persisted state, the interface and the external windows, and preserved the compositor identity. The native capture after the switch showed React/history and the aurora working with the newly imported module. This proof confirms the host integration. Pointer movement and Enter in the native overview still depend on physical interaction by the user. No additional session or compositor was started.

With the overview opened by the user, the native capture showed the cards, the active indicator, the focus and the lighting on the card under the pointer. This inspection revealed that a long title could force the inner width. The grid now uses a minmax(0, 1fr) column, stretch alignment and explicit minimum limits. The retest with a title of more than 150 characters confirmed ellipsis, the shortcut preserved and the content inside the padding at 1280 and 390 pixels, without changing the click area. Physical Enter still has no specific proof.

After the user reloaded the web surfaces, the final native capture confirmed the width adjustment, the title with ellipsis, the shortcut inside the card, the active indicator and the lighting/depth on the card under the pointer. The overview was left open, with no change to selection or focus during the capture. CSS fix de2a688 was prepared in the active source and reloaded without a new process restart. The compositor and the applications were preserved. The proof does not include physical Enter or a GPU benchmark.

Aurora fix behind the chat on 2026-10-28

The project owner reported an aurora that looked static and was visible only during workspace transitions. The native capture confirmed that the React container, together with the legacy profile CSS, had an opaque background that covered the wallpaper in the chat area. In immersive mode, the external application fills the usable area and keeps covering the wallpaper through normal composition. The effect must not be drawn over its content.

The fix makes only the React container of the Electron host transparent when the compositor is active. The rule has higher specificity than the legacy body adapted to the ShadowRoot. The saved CSS and the theme are preserved. Messages, sending and controls keep their panels for reading. The browser and recovery keep the opaque background. The Electron-specific visual classes do not grant authority to the renderer.

The wallpaper window now disables Electron background throttling while it is shown, to prevent the animation from being suspended by occlusion or lack of focus. Hide/minimize re-enable throttling. Show/restore resume drawing. The application stays limited to 30 frames/s and 1280x720 internal. Reduced motion, visibilitychange and pagehide keep their behaviors. There was no change to the shader, the compositor, the theme package or the profile for this fix. The throttling hypothesis was not proven in isolation before the adjustment. Acceptance requires checking real frames after activation.

Validation before activation: formatting, check/build:check and 173 Node tests passed. The full preparer verified native Electron, generated the React bundle, compiled the session release and confirmed the hashes of sources/artifacts. In the browser with an Electron UA and a synthetic Smithay state, the root and the React container stayed transparent even with later legacy CSS. Messages and sending stayed readable. Aurora frames 1.7s apart differed. With reduced motion they were identical. A normal browser with an active compositor, and recovery with an Electron UA, kept the opaque background. The browser inspection does not prove the native Electron options or the pixels of the real session. The QA processes were closed.

Revision 9fc5a89 was activated in the configured checkout and in the existing host/core, with an exclusive lock, external supervision and rollback, without restarting the compositor or ending the graphical session. The first guard rolled back because it treated a workspace change during QA as a loss of continuity. The hashes confirmed that the conversations were intact. The guard was fixed and tested with synthetic data so that it allows only a change of the active selection, and it keeps rejecting changes to history, model, order and the other persisted data. The reapplication finished with continuity verified.

Two native Electron/Smithay captures with the chat visible, about 0.45s apart, confirmed the aurora behind the messages and readable controls. In a sample of 37,440 pixels of free chat background, 37,082 changed between the frames. This proves movement in that interval. It is not FPS or a GPU benchmark. The previous presentation was restored after the inspection. The compositor, the workspace and the external applications were preserved. The saved CSS, the profile and the Studio package were not replaced. Private captures and the guard records stayed outside Git.

More noticeable motion on 2026-10-28

After confirming movement in the real session, the project owner asked for a much more noticeable animation. The shader goes from 0.18 to 0.6 rad/s, which reduces the cycle from about 35 to 10.5 seconds. The main amplitude rises from 0.11 to 0.17 of the height, with a secondary ripple of 0.045 in the opposite direction. The colors and the glow stay the same. The speed and the period share the same constant to keep continuity when the cycle restarts. The secondary ripple completes two whole cycles in this interval.

The limit of 30 frames/s and 1280x720 internal, the PNG priority, the CSS fallback and the pause of a hidden page are preserved. There is no change to the compositor, the theme or the profile.

Validation before activation: formatting, check/build:check and 173 Node tests passed. In headless Chrome with WebGL/SwiftShader, the real assets rendered under the wallpaper CSP. With an identical synthetic clock, the mean difference per channel between frames 0.5s apart went from 0.59 to 5.12 levels out of 255. This measures pixel change in that scenario. It does not measure human perception or GPU performance. In the first revision, reduced motion frames were identical. Samples around the end of the cycle kept continuity. The capture was inspected visually and the isolated server/Chrome were closed. Electron/Smithay acceptance happens separately after the supervised activation.

The initial revision d680cf5 was activated by an external guard with rollback and the coordination lock, preserving the compositor, the profile and the applications. Two native captures with the chat visible, about 0.45s apart, confirmed 37,390 changed pixels out of 37,440 sampled, with a mean difference per channel of 15.83 levels. The capture was inspected visually. The previous presentation was restored. This confirms the Electron/Smithay integration and more evident movement in that interval, without measuring FPS or GPU.

During the activation, the project owner decided that the aurora must not appear when reduced motion is active. The next revision hides the canvas and draws no frames, including at startup and when the preference changes without a reload. WebGL is initialized only when animation is allowed and there is no valid PNG. The CSS also removes the decorative gradients in this mode, leaving the custom image or only the background color. When reduced motion is turned off, the aurora resumes, preserving the priority of the custom image and the fallbacks.

The reduced motion revision passed format:check, check/build:check and 174 Node tests. In the browser, turning the preference on hides the canvas and cancels the next frame. Reloading already in this mode keeps the canvas inactive, with no pending frame and without the gradients. When it is turned off, the animation resumes. The capture of the plain background was inspected visually. The PNG priority test also covers leaving reduced mode. These preference scenarios use browser emulation, without changing the user's accessibility configuration.

The overview zoom now uses transform on an image sized once for the viewport, with a duration of 300 ms and a smooth deceleration. It avoids animating left, top, width and height on every frame. A selection that leaves the overview suppresses the native slide, because the preview already does the visual transition. Before, the two animations could overlap and reveal the destination still moving.

The native slide also lasts 300 ms and decelerates to zero speed. Completing the gesture takes at least 141 ms, which avoids the abrupt 55 ms snap near the destination. A repeated selection does not cut the animation. A reversal between the same two workspaces reuses their planes and the real progress of the current frame. Cancellation and order revision also sample this progress, instead of using the old position from the start of the animation. A switch to a third workspace still starts a new pair of planes. Reduced motion and the transactional selection/persistence stay in force.

Validation: formatting, check/build:check and 196 Node tests passed. Smithay passed 61 tests with session (six EGL ignored in the common suite), Clippy with warnings as errors and an explicit EGL test of the clipped planes in both directions. In the browser, the real controller and CSS were exercised with a synthetic PNG: an intermediate frame was inspected, and completion with a single selection and removal of the overlay were confirmed. The capture of the existing DRM session was inspected, without switching VT or selecting another workspace. This capture shows the previous runtime. It does not prove the fluidity of the new transition in Electron/Smithay. The compositor in use stays preserved, and the physical acceptance of the change depends on a next login attended by the user.

Web content follows the workspace (2026-10-28)

The project owner's report and DRM capture showed the problem that the curve adjustment did not solve: the external window slid, but the chat, send field, controls and inline documents stayed fixed over the planes. The composition now puts the web host and the panels in the same displacement and clipping as the applications of each workspace. Only the navigation bar and the cursor stay fixed. The selection stroke of the bar slides between the tabs in 300 ms and respects reduced motion. It represents the confirmed selection, not the physical progress of the gesture.

The React host is single. To avoid swapping the pixels of the source for those of the new conversation during the movement, the compositor keeps up to two RGBA planes on the GPU, with a limit of 16 megapixels per plane. The source stays frozen during the flight. The destination receives the content rendered for it. There is incremental composition in the current plane when motion is enabled, with no GPU/CPU readback and no copy of history to another profile or process. The extra GPU/memory cost was not measured on the physical desktop. The cache leaves the scene when the movement ends, is limited to two workspaces and is discarded when motion is disabled.

After the React conversation and the protected send field paint, the host updates the title with a numeric workspace marker. Only commits of the root surface advance the association of the buffers in the compositor. This metadata contains no conversation text and grants no tools to the renderer or to the opaque iframes. While waiting, the destination uses the last available image. A workspace that still has no image waits for its first frame. If the GPU copy fails, the live host is used in the matching plane, and it is not put back in a fixed layer. Earlier hosts without a marker have basic visual compatibility, without the same explicit association of the frames. Host and compositor must be updated together for full acceptance. The marker is published only when the compositor announces workspaceWebPlanes, which preserves the chat identity with an earlier compositor in case of a partial update or recovery.

Validation: formatting, check/build:check and 197 Node tests passed, including stale markers and discard on exit. Smithay passed 62 tests with session, plus the explicit EGL proof of independent copy: the original web texture was changed for the destination and the source pixels stayed preserved, with displacement in both directions, transparency and a limited cache. Clippy passed with warnings as errors. The indicator was inspected in the browser with real code/CSS and synthetic data, including selection and retargeting. These proofs do not replace the integrated validation of the new compositor with the Electron host in the physical session. No second compositor/host was opened, no message was sent to the provider and the session in use was preserved.

Parallel cards and depth of field (2026-10-28)

After refining the request, the project owner approved a pronounced pass between parallel cards, with recession, parallax, shadow and depth of field. The earlier version that only aligned the web content remains the base: applications, chat, protected field, inline documents and panels are pre-composited together per workspace. The effect applies to this whole image, which preserves the alignment. The bar and the cursor stay fixed and sharp. There is no perspective rotation at this stage.

The direct switch lasts 200 ms (it lasted 380 ms until 2026-11-01). The outgoing card shrinks progressively to 94%, loses sharpness up to a visual radius of 8 px and darkens up to 12%. The incoming one follows the complementary path and arrives at the original size and sharpness. The middle of the pass adds 32 px of separation to the space created by the scale, corners of up to 16 px and a soft shadow. The shared background has a slower displacement (up to 4% of the width), a scale coverage margin of up to 112%, blur of up to 2.5 px and a slight darkening. It returns to normal alignment at rest. The tab indicator follows the duration of 200 ms. The selection zoom in the overview stays independent.

The blur uses two separable GPU passes, each with five bilinear samples of a gaussian kernel of nine taps. No application pixel goes through the web renderer or the CPU to produce the effect. The intensity depends on the progress of the gesture/animation and on the distance of the card, with full sharpness at the extremes. Reduced motion keeps disabling the animation and this pipeline. Input stays blocked only during the transition states that already exist.

There are up to three depth planes, each with one source texture and one horizontal texture, limited to 8,388,608 pixels per texture. This limits the six targets to 192 MiB, in addition to the earlier web cache (up to 128 MiB within its own limit). At 1366×768, the six targets use about 24 MiB. Added to two web planes, that is about 32 MiB of textures, not counting system/client buffers. The depth targets are released at rest and the compiled programs are reused. These values are storage limits, not measurements of FPS, latency or GPU. Outputs above the limit, or an allocation, shader or composition failure, keep the earlier flat pass during that transition. The failure does not end the compositor and the next pass can try again.

Validation: formatting, check/build:check and 197 Node tests passed. Smithay passed 63 tests with session (eight EGL ignored in the common suite), Clippy with warnings as errors and explicit execution of the depth EGL test. This test uses the production pipeline, asymmetric synthetic images, a high-contrast pattern and five points of the movement. It confirms the original sharpness on arrival, reduced contrast during the blur, recession, a free region between cards, clipping below the bar and release after a limits error. GPU frames from the middle and the arrival were inspected visually. QA files stay outside Git. ANOS_DEPTH_QA_DIR let you export the synthetic PPM frames of the test (the variable went with the GLES depth test on 2026-11-11, step 7 of openspec/changes/archive/2026-11-10-gles-removal-plan/design.md; the mirror native_wgpu_depth_blurs_only_moving_cards_and_lands_pixel_sharp has no export). There was no new session, message to the provider or compositor switch to validate the effect. The integration and the physical fluidity in Electron/DRM depend on the next login with the new build and stay separate from these offscreen proofs.

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

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

Glass on web panels (2026-10-28)

The project owner authorized continuing item 4. Real blur was implemented for declarative panels, starting with the quick settings: Smithay samples the lower scene on the GPU and the web keeps material, text and controls sharp. The optional glass contract accepts intensity, radius and disabling. Isolated panels still have no access to the pixels or the tools of the host. Chat and bar do not receive glass automatically. See contract, limits and proofs. A proposal of 2026-11-04 moves the shape of every glass surface into the alpha channel of the web buffer instead of reported rectangles; see glass from the alpha channel. Not decided. Since 2026-10-31 the bar pill has its own glass, from geometry that the protected host reports; see glass behind the desktop bar. The pill uses the strength of its CSS material: blur(24px) is a standard deviation of 24 pixels, which is compositor strength 72 (the shader uses blur / 3), and saturate(145%) is a saturation factor of 1.45 in the final pass. Panels keep the factor 1.0, so their output does not change. The overview and the workspace transitions draw the bar untransformed, so the blur stays under the pill; see glass behind the desktop bar.

The composition comes before the transition effects and follows the matching plane, with viewport clipping. The EGL proof covers update, overlap, corners, sharp controls and eight orientations. The browser proof uses only synthetic state. Publishing, building and preparing the next login are steps separate from real activation. No session was ended for this implementation.

Collapse to the side thumbnail (2026-10-28)

The project owner authorized continuing item 5. In the focus presentation, going back to the chat collapses the selected application to the existing side thumbnail. Selecting it again does the reverse path. Immersive and palette use the large rectangle, and chat uses the proportional preview calculated by focus::geometry. This step animates this change of presentation. The logical command minimize still hides the window. It does not get a new dock and does not change the meaning of minimized.

Position, clip dimensions and scale share a 280 ms smoothstep interpolation, with no overshoot. The extremes return exactly the final geometries. The current buffers of the application, subsurfaces and popups go through the same existing GLES path. The animation does not ask the client for a thumbnail size, does not take screenshots and does not allocate intermediate textures. The corner/reveal finish is still applied by the compositor. The moving application stays above the chat, below the bar and the web panels. The controls stay web.

Repeating a selection keeps the movement in progress. Reversing the selection starts at the position and scale shown at that moment. A change of application/workspace, F9, the workspace overview, an output change, a new logical size of the client, minimizing/closing and leaving the compatible modes cancel the effect and use the current presentation. The web transition cache is discarded during the local movement. It is composited again at rest. This prevents storing glass with an intermediate geometry for another workspace.

The preference contract already sent by the host in workspace_motion also controls this movement. Before negotiation and with prefers-reduced-motion, the switch is immediate. Enabling motion later does not replay an old animation. The state announces capabilities.thumbnailTransitions and thumbnailMotion with activity, window ID and duration. These are transient states, with no profile changes.

During the animation, pointer and scroll are not forwarded to surfaces in movement. The click that selects the thumbnail and its release are still consumed. A second check after the focus changes covers the animation started by the press itself. Releasing buttons keeps tracking balanced, and completion or cancellation recomposes the pointer focus. Keyboard and logical focus follow the current selection. No deformed coordinates are forwarded to the application.

Evidence and activation

The EGL test uses the production transform helper, five frames per direction, synthetic buffers with new content on every frame, a fixed bar and a persistent damage tracker. It checks scale/ratio, Normal and Flipped180 orientation, arrival and removal of the previous pixels with no trails. State tests cover initialization, repetition, continuous reversal, reduced motion and invalidations. The input regression covers press/release with no stuck buttons. ANOS_THUMBNAIL_QA_DIR exports only synthetic frames for inspection outside Git.

The GPU frames were inspected directly and through a temporary gallery in the browser, with selection of progress and direction. The gallery does not run Smithay or validate physical input or fluidity. 82 Rust tests with session passed, including EGL, fmt and Clippy with warnings as errors. The Node suite had a pre-existing timing failure in the concurrency of the previews endpoint during build/QA. The full sequential rerun passed with 200 tests, with no change to the assertions. Format:check and check/build:check also passed. No second Electron host/compositor was started. Integrated and physical acceptance still depends on a next login with the prepared binary, without ending the session in use by this implementation.

Activity on the overview cards (2026-10-31)

Each open workspace card in the overview shows one of three states, drawn by the protected host (vendor/interface/host/host.js, host.css). Smithay draws nothing for it. Archived cards show no activity.

State Source in the core Card indicator
Working busy is set by send() and cleared when the turn ends Chip with a pulsing dot and "Trabalhando"
Waiting for approval approval is set by a permission.asked event of the live turn Solid accent chip with "!" and "Aguardando aprovação", accent card border
Finished finishedAt is set by a real turn completion Chip with a check and "Concluído"

web-shell/core/activity.js holds the rules. conversationActivity derives the state, with approval ahead of working ahead of finished. An approval id counts only while the turn is busy, so a stale id never shows a prompt. /api/state adds the derived activity to every conversation, and the host metadata path carries it without resending history.

The finished mark follows these rules:

  • session.idle sets finishedAt only when the last assistant message has no error. A cancel, a timeout, a provider error and a runtime failure never set it.
  • send() clears it when a new turn starts.
  • Opening the workspace clears it. selectConversation, archiveConversation (the workspace it opens), restoreConversation and createConversation go through one helper in conversations.js. The change applies only when the switch succeeds, because the navigation controller commits a cloned state.
  • It lives in state.json, so it survives a UI reload and a core restart. The core does not reset it at startup, unlike busy and approval.
  • A finished turn on the workspace that is already active keeps the mark until the user opens that workspace again or sends a new message. The core does not guess whether the user saw the answer.

The core allows only one turn at a time and blocks workspace switches during it. Working and approval therefore show on at most one card, the one that owns the turn. Finished marks can show on many cards.

The indicators use the shared tokens (--color-accent, --color-on-accent, --color-selection, --color-text, --color-preview-badge, --border-panel), with no new color family. Each state also has its own glyph and text label, so color is not the only signal, and the card aria-label ends with the label. The pulse runs only under prefers-reduced-motion: no-preference. Reduced motion keeps a static dot. The overview disables all cards during a turn. The card that owns the turn stays at 85% opacity so its indicator stays readable.

Evidence

  • web-shell/test/activity.test.js: state derivation, mark rules, clearing in the four conversation actions, and the metadata path of the host client.
  • web-shell/test/activity-http.test.js: a synthetic core with the OpenCode fixture. It checks working during a held turn, no mark after a cancel, the finished mark after a completion, persistence across a core restart, no clearing when another workspace is created, approval during an open turn, and clearing through /api/select. The fixture got an approval-pending turn that emits permission.asked and stays open.
  • Browser check on a synthetic core (isolated tab, no compositor, no provider). The overview was forced open by wrapping the /api/state response, because a synthetic core has no compositor to open it. It showed the working, approval and finished chips, the aria-label text, no horizontal overflow at 390 px, the same states after a page reload, and the finished chip leaving the card after a select. The computed animation was workspace-activity-pulse, and the keyframe rule sits in the no-preference media query. The tab could not emulate reduced motion, so the static fallback is confirmed by the CSS rule, not by a run.
  • Not proven: Electron, the live session, the Smithay overview with real previews, a physical pointer or keyboard, a real permission request from the provider, and the dark and Matugen palettes (the host followed the light system theme in the check).