Repository navigation
feat(tui): tole-tui crate skeleton; bare tole opens it (inline rendering) - #505
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
ajianaz
force-pushed
the
feat/tui-skeleton
branch
2 times, most recently
from
November 4, 2026 00:18
2e79247 to
b56df26
Compare
Inline-viewport TUI skeleton (ratatui + crossterm): placeholder frame, resize redraw, Ctrl+C twice or /quit to exit, drop-guard terminal restore. tole-cli launches it for bare `tole` on a TTY behind the default `tui` feature.
ajianaz
force-pushed
the
feat/tui-skeleton
branch
from
November 4, 2026 00:25
b56df26 to
dae1999
Compare
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What (description of the change)
TUI skeleton (#459, epic #464 Phase 1 start): new crate
crates/tole-tui(ratatui 0.30 minimal-features + crossterm 0.29 events-only) — presentation + event loop only, depending on tole-core; tole-cli depends on it behind a defaulttuifeature.tole(argv count == 1, checked before clap) on a TTY (stdin AND stdout,IsTerminal) opens the TUI; non-TTY keeps today's help exactly. Without thetuifeature, behavior is byte-identical to develop (cfg-gated)./quit+ Enter, panic-safe terminal restore via a Drop guard (raw mode off + viewport leave on unwind).TuiHosttrait (label + approver; tole-cli supplies a deny-all approver). Provider/storage accessors deliberately deferred to feat(tui): MVP — streaming transcript, editor, footer, inline approvals, Esc cancel #460 —Provideris&mutand stateful, a skeleton cannot hand it over sensibly..github/workflows/publish.ymlnow publishestole-tuibetween core and cli (same idempotent already-published classification); order core -> tui -> cli since tole-cli pins tole-tui by version.Why (the problem you're solving)
Closes #459 — there was no interactive terminal UI;
tole chatis a plain line REPL. This lands the crate skeleton the TUI epic (#464) builds on (#460 MVP transcript/editor/footer/approvals next).Testing (how you verified this works)
cargo fmt --all -- --checkclean;cargo clippy --workspace --all-targets -- -D warningsclean;cargo test --workspace --no-fail-fast1004 passed / 0 failed;cargo test -p tole-core -p tole-cli --no-default-featuresrc 0 (868/0 per implementer);cargo build -p tole-cli --no-default-featuresOK (acceptance: builds without the TUI);cargo build -p tole-cli(default, links the TUI) OK. publish.yml validated YAML-clean.tolemeans NO arguments at all (tole --config xwith no subcommand still gets clap's usage error — making the subcommand optional would touch ~10 match sites; say the word if that variant is wanted). Uteke rooms read: tole-dev / uteke-conventions / codecoradev-conventions full, codecora-workflow-standard grep-only (too large). ratatui/crossterm are NEW dependencies (first TUI deps in the workspace).