Skip to content

feat(tool): answer questions without ending the turn - #834

Merged
hakula139 merged 11 commits into
mainfrom
feat/ask-tool
Nov 7, 2026
Merged

hakula139 merged 11 commits into
mainfrom
feat/ask-tool

Conversation

@hakula139

@hakula139 hakula139 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Add an ask tool that lets the agent ask a question and continue its turn with the answer. The TUI offers recommended choices, freeform input, skip, and cancel. Empty answers remain distinct from skipped or aborted questions.

  • Engine: Match answers by request ID and retain cancellation through the existing op channel. Real answers and approval feedback immediately update the permission classifier's user intent and persist beside tool results without duplicate history bubbles or prompt-recall entries.
  • Frontends: The engine returns an aborted answer immediately for unattended runs, leaving headless stdin to prompt input. Question controls stay visible in a fixed, wrapped footer while long content scrolls.

Closes #671.

Test plan

Full workspace checks passed before the two UI review fixes, with 3,349 tests and 99.20% line coverage. Focused TUI tests and all-target lint passed after those fixes. The new 30-column, 12-row footer regression compiled and failed on the previous renderer, then passed with the fix.

  • cargo fmt --check
  • cargo build --locked
  • cargo clippy --locked --all-targets and cargo clippy --locked
  • cargo doc --locked --no-deps
  • cargo llvm-cov --locked, with five existing live checks ignored.
  • pnpm format, pnpm lint, and pnpm spellcheck
  • Independent question, history, recall, headless, dispatch, TUI, and same-round classifier regressions. Compiling behavior mutations proved the answer and approval-feedback provenance checks 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 milestone Nov 7, 2026
@hakula139 hakula139 added enhancement New capability area: tui Touches terminal UI rendering, input, or theming area: tools Touches the built-in tools such as bash, read, edit, grep, and glob 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
@hakula139 hakula139 modified the milestones: v0.1.0, v0.1.0-alpha.11 Nov 7, 2026
@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.83859% with 33 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ox-tui/src/modal/question.rs 88.84% 29 Missing ⚠️
crates/ox-tui/src/app/events.rs 0.00% 3 Missing ⚠️
crates/ox-core/src/engine.rs 75.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@hakula139
hakula139 changed the base branch from main to refactor/remove-repl November 7, 2026 15:32
@hakula139
hakula139 force-pushed the refactor/remove-repl branch from 81d09a8 to 16f1872 Compare November 7, 2026 15:46
@hakula139 hakula139 added the area: permission Touches permission rules, modes, or the approval gate label Nov 7, 2026
@hakula139
hakula139 force-pushed the refactor/remove-repl branch from 16f1872 to 431576b Compare November 7, 2026 16:09
Base automatically changed from refactor/remove-repl to main November 7, 2026 16:25
@hakula139
hakula139 marked this pull request as ready for review November 7, 2026 16:28
@hakula139
hakula139 merged commit 5117609 into main Nov 7, 2026
9 checks passed
@hakula139
hakula139 deleted the feat/ask-tool branch November 7, 2026 16:42
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: permission Touches permission rules, modes, or the approval gate area: tools Touches the built-in tools such as bash, read, edit, grep, and glob area: tui Touches terminal UI rendering, input, or theming enhancement New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an ask tool for mid-turn questions

1 participant