Galaxy Shell / docs
Docs / Histórico

Approved milestone: web shell customizable by conversation

openspec/changes/archive/2026-10-26-web-shell-mvp/design.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

Approved milestone: web shell customizable by conversation

Doc status: history. Milestone of 2026-10-26; superseded by docs/architecture-decisions.md and docs/self-maintenance.md. Checked 2026-11-10.

Mandatory later addition: interactive HTML responses inside messages. Customizing the shell appearance does not replace this central requirement. Highlighting in the grid is optional and comes later.

Historical reading: the current direction of 2026-10-27 records React + Electron, Smithay in development, and the AI maintaining the system itself. Self-maintenance supersedes the original restrictions of this milestone on commands and host editing. The boundaries of generated HTML and the validated visual editing cycle remain.

Date: 2026-10-26. Status: implementation authorized by the project owner; delivery not yet validated.

This record complements the concept and the compositor investigation. It overrides the earlier recommendations of Flutter as the main UI and Mutter as the first candidate. It does not change the proven state of the prototype described in development.

Decisions after the initial evaluation

  • The project owner explicitly chose River as the Linux compositor in the Implementer session. The historical recommendation to prioritize Mutter is not the current choice.
  • Flutter without Material Design was authorized and started. Preserve the WIP. There is no obligation to keep this stack in the final interface.
  • HTML, CSS and JavaScript are a central language for communication and interaction between the AI and the user. They will not be limited to auxiliary graphics in a fixed structure.
  • The user wants to reshape the shell's own conversation, navigation and controls through requests to the agent. This requirement justifies the current direction of a web shell with a native host, replacing Flutter as the main UI.
  • The project owner approved running the minimum that lets the user use the shell and evolve its interface from the conversation itself. There is no need to keep compatibility with the recent prototype or to build a complex incremental migration.
  • The spatial canvas was discussed as a hypothesis in the Implementer session. It is not a requirement of this milestone and not a validation of advanced River effects. History: the user asked for a workspace canvas on 2026-11-01, see canvas windows.

Minimum delivery

  1. A local application that hosts HTML/CSS/JavaScript in an existing web engine.
  2. A real conversation with OpenCode, with session continuity and state outside the replaceable UI.
  3. A local interface project, with files that the agent can inspect and edit through tools restricted to that project.
  4. A full cycle: visual request in the conversation, real file edit, validation and presentation of the change after reload.
  5. Preservation of the conversation and the session during reload.
  6. Recoverable versions and restoration of the last working interface.
  7. A recovery mechanism that stays reachable even when the edited interface does not load or does not respond.

Acceptance example: the user asks to move the side navigation to a bottom strip. The agent changes the interface files. The shell presents the new composition and keeps the conversation. An invalid change can be discarded or restored without losing history and without depending on the visual control that broke.

Changing the interface means editing the versioned local project, not only injecting temporary CSS into a WebView. The initial UI must be simple and usable, because the user will refine it. The old visual draft remains unapproved as a reference.

Responsibility boundaries

  • Host/core: sessions, tools, permissions, persistent state and recovery.
  • Editable shell: presentation, navigation, styles and visual behavior in HTML/CSS/JavaScript.
  • Generated surfaces: interactive visualizations created by the agent. They do not receive privileged authority only because they run JavaScript.
  • WM/backend: organization of the conversation, surfaces and real applications in the grid. River remains the chosen Linux backend, still subject to implementation and validation.

The authorization of this milestone allows specific tools for editing the UI project. It does not give the product agent a generic shell, unrestricted file access, credentials, or editing of the host itself. The UI project must have an explicit root. Operations must validate paths, including attempts to escape through relative paths or symbolic links.

Credentials and recovery mechanisms must not depend on files that the AI can rewrite. Visual customization does not widen permissions to control the computer.

Web hosting

Tauri + Rust and Electron are candidates that were discussed. They are not a final choice by the project owner. Both host existing engines. Neither delivers the River WM ready-made. Choose the minimum viable option, state the decision explicitly and validate the cycle above before widening the architecture.

  • Tauri: Rust host and system WebViews. Different engines across Windows, macOS and Linux require validation per platform.
  • Electron: Chromium shipped with the product. It gives more uniform engine versions, with no guarantee of identical behavior across systems or of acceptable consumption without measurement.
  • Wry/CEF/Servo: future alternatives if a concrete limitation justifies additional work. Do not create a custom web renderer in this milestone.

Flutter was not dropped because it would be unable to use WebViews. The change comes from the intent to make the whole interface customizable on the same web platform. No performance superiority of Flutter, Rust/WebView or Electron was shown for the product scenario.

References consulted in the evaluation: Tauri: processes and WebViews, Tauri: engines per platform, Electron: processes, Wry, CEF, Servo.

Milestone limit and validation

The customization cycle can be validated on the Mac. Real application control through River, the Linux session, multiplatform parity, the infinite map and advanced effects do not block this delivery. Do not declare them ready from it.

Check a real request through the UI, the actual file edit, application of the change, conversation continuity and recovery from an invalid change. Run the checks that apply to the chosen host and document the evidence and the limits. Performance requires measurement with representative surfaces. Executable size and host language do not prove runtime consumption.

Independent adversarial review and video still depend on specific authorization, as AGENTS.md describes. The implementation authorization does not imply authorization to install or replace the user's desktop.