Skip to content

refactor!: remove the bare REPL - #838

Merged
hakula139 merged 6 commits into
mainfrom
refactor/remove-repl
Nov 7, 2026
Merged

hakula139 merged 6 commits into
mainfrom
refactor/remove-repl

Conversation

@hakula139

@hakula139 hakula139 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Remove the bare --no-tui REPL. Interactive sessions now require a terminal on both stdin and stdout, and otherwise exit with a -p hint before loading configuration, credentials, or session storage. Bare -r explains how to resume directly with a session ID and -p.

  • CLI: Keep -p for one-shot prompts and piped input, including continued sessions and structured output.
  • Drivers: Remove the REPL, its approval input abstraction, and its command adapter. Headless output, signal handling, and unavailable-approval behavior remain in the headless driver.
  • Documentation: Remove the retired frontend's usage and design claims.

Closes #837.

Test plan

  • Full workspace formatting, build, both lint modes, rustdoc, and coverage checks passed for the removal.
  • After review fixes, cargo test --locked -p ox --bin ox passed 99 tests, cargo test --locked -p ox --test cli passed 43 tests, and cargo clippy --locked --all-targets passed.
  • The final rebase applied cleanly and passed cargo fmt --check, git diff --check, and all configured pre-commit hooks.
  • Compiling behavior mutations proved the terminal guard, removed flag, and named-command error regressions fail when broken.
  • Independent review completed and both findings were addressed.

Real model checks were not run. The existing live checks were compiled with the all-target lint pass.

@hakula139 hakula139 added this to the v0.1.0-alpha.11 milestone Nov 7, 2026
@hakula139 hakula139 added refactor Behavior-preserving restructuring area: tui Touches terminal UI rendering, input, or theming area: slash Touches slash commands or their pickers area: engine Touches the engine, its protocol, or the drivers that run it labels Nov 7, 2026
@hakula139 hakula139 self-assigned this Nov 7, 2026
@codecov

codecov Bot commented Nov 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hakula139
hakula139 force-pushed the refactor/remove-repl branch from 81d09a8 to 16f1872 Compare November 7, 2026 15:46
Require a terminal on stdin and stdout for interactive sessions and direct scripts to -p before loading config, credentials, or sessions. Remove the REPL driver, approval input abstraction, and command adapter while retaining headless output and signal handling.
Adapt retained CLI, session, signal, and slash-command tests to TUI and print routing. Keep multi-turn thinking and compaction checks through saved-session continuation, and cover early terminal rejection and removal of the legacy flag.
@hakula139
hakula139 force-pushed the refactor/remove-repl branch from 16f1872 to 431576b Compare November 7, 2026 16:09
@hakula139
hakula139 marked this pull request as ready for review November 7, 2026 16:09
@hakula139
hakula139 merged commit 16327e5 into main Nov 7, 2026
9 checks passed
@hakula139
hakula139 deleted the refactor/remove-repl branch November 7, 2026 16:25
@hakula139 hakula139 mentioned this pull request Nov 7, 2026
3 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: engine Touches the engine, its protocol, or the drivers that run it area: slash Touches slash commands or their pickers area: tui Touches terminal UI rendering, input, or theming refactor Behavior-preserving restructuring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the interactive --no-tui REPL frontend

1 participant