Skip to content

feat(tui): tole-tui crate skeleton; bare tole opens it (inline rendering) #459

Closed

Description

@ajianaz

Problem

There is no interactive terminal UI; tole chat is a plain line REPL.

Proposal

New crate crates/tole-tui: presentation + event loop only, depending on tole-core (never on tole-cli, which would be a crate cycle). tole-cli depends on it behind a default tui feature and supplies config, approver, provider and storage through a small host interface.

  • Bare tole (no subcommand) on an interactive terminal opens the TUI, like pi; on a non-TTY it prints help as today.
  • Inline rendering (ratatui inline viewport + crossterm), NOT the alternate screen: terminal scrollback keeps the conversation after exit.
  • Skeleton only in this issue: launch, resize, quit (Ctrl+C twice / /quit), panic-safe terminal restore.

Acceptance

  • cargo build -p tole-cli --no-default-features still builds without the TUI.
  • Terminal state is restored on panic and on SIGINT (test via a pty harness or a documented manual check).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions