Skip to content

ADR-0002: Relationship to Tesserae UI

Warning

Superseded by ADR-0006 Shell Independent of Tesserae UI (2026-10-25) The maintainer decided Tesserae stays a separate project and the shell is built on tre alone. The record below is kept as written.

Note

Tesserae Shell depends on tesserae-ui for its view language, reactivity, themes, stylesheets and hot reload, and does not define a second YAML dialect. Tesserae today opens only plain windows, so it must gain a way to open layer and popup windows. That work is a Tesserae request, not yet written.

Context

Vault Reference > Known constraints and gaps (seed list) asks whether to depend on tesserae-ui or build a smaller layer directly on tre. Two YAML dialects for the same view concepts would diverge (Goals and Non-Goals N8).

What the Tesserae source does today (local clone at ~/Projects/pyDev/projects/tesserae, commit 6e22100, read 2026-10-25):

  • pyproject.toml pins tesserae-engine==0.5.8.
  • src/tesserae/app.py creates its windows as plain Window(...) (the main window at line 318, extra windows through open_window at line 944) and passes them to tre.App.add_window.
  • The source contains no LayerWindow, PopupWindow or outputs() use.

So Tesserae can run on the tre that has LayerWindow but cannot yet ask for one from a view. #needs-verification: confirm against the published tesserae-ui release and docs; the clone may be ahead of PyPI.

Options

Reuse the view language, Signal/Computed/Effect, MD3 components, themes, stylesheets and hot reload.

  • For: one YAML dialect, one reactivity model, one design system. Shell views and app views share components and themes.
  • Against: Tesserae is shaped around an application with a main window. A shell has many surfaces, some with no title, size or focus in the app sense. Tesserae must grow a surface concept.

Option B — Build a Smaller Layer Directly on tre

  • For: shaped for shells from the start.
  • Against: a second view language, second reactivity and second theme system to design, document and keep in step. Rejected by Goals and Non-Goals N8.

Decision

Accepted 2026-10-25 by the maintainer in chat ("as recommended"): Option A. Tesserae Shell depends on tesserae-ui. Superseded the same day by ADR-0006 Shell Independent of Tesserae UI.

Consequences