Skip to content

Write the TUI behavior spec, retire finished migration docs - #377

Merged
TheGreatAxios merged 1 commit into
mainfrom
tui-behaviour-doc
Aug 7, 2026
Merged

Write the TUI behavior spec, retire finished migration docs#377
TheGreatAxios merged 1 commit into
mainfrom
tui-behaviour-doc

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Adds docs/TUI.md: a normative, code-verified behavior spec for the OpenTUI shell — layout/chrome, overlays and dismissal, selectors/pickers, the command palette and model picker, the prompt box, and scrolling/mouse/key macros.
  • Every claim in the doc is checked against src/tui-opentui/* source (geometry resolver, shell key handling, gate wiring, palette, product host, prompt input, clipboard, log sink). A few claims that could not be verified are called out explicitly as open questions at the end of the doc, rather than asserted as fact.
  • Retires docs/plans that recorded a migration that has since landed: docs/tui-cutover-readiness.md, docs/tui-tty-signoff.md, docs/tui-migration-cutover.md, docs/tui-ink-freeze.md, docs/plans/opentui-spike-report.md, docs/plans/opentui-platform-wave2.md, docs/plans/tui-layout-scroll-platform.md.
  • Harvests and retires docs/tui-interaction-contract.md and docs/tui-layout-constitution.md — their still-true content is folded into docs/TUI.md in present tense.
  • Fixes dangling references to the deleted docs in AGENTS.md, docs/PRODUCT.md, docs/tui-opentui-packaging.md, and src/tui-opentui/geometry/zones.ts; adds docs/TUI.md to the AGENTS.md doc index.
  • Leaves docs/adr/opentui-binding.md (historical ADR) and docs/tui-opentui-packaging.md (packaging, different concern) in place aside from reference fixes.

Verification

  • bun run typecheck — passes
  • bun run build — passes
  • bun run test — 4038 pass, 0 fail (308 files)

docs/TUI.md is a normative, code-verified spec for the OpenTUI shell:
layout, overlays, selectors, the palette, the prompt box, and scroll/mouse
behavior. It replaces the interaction-contract and layout-constitution
docs (harvested into it) and the readiness/signoff/cutover/freeze/spike
docs, which recorded a migration that has already landed.

References to the deleted docs are updated to point at docs/TUI.md.
@TheGreatAxios
TheGreatAxios merged commit dbcc49e into main Aug 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant