fix(tui): tab submits when no task running in steer mode (#10035)

When steer mode is enabled, Tab used to only queue while a task was
running and otherwise did nothing. Treat Tab as an immediate submit when
no task is running so input isn't dropped when the inflight turn ends
mid-typing.

Adds a regression test and updates docs/tooltips.
This commit is contained in:
Josh McKinney
2026-02-09 16:39:09 -08:00
committed by GitHub
Unverified
parent c9271cdff2
commit a3e4bd3bc0
3 changed files with 85 additions and 3 deletions
+4
View File
@@ -96,6 +96,10 @@ popup so gating stays in sync.
There are multiple submission paths, but they share the same core rules:
When steer mode is enabled, `Tab` requests queuing if a task is already running; otherwise it
submits immediately. `Enter` always submits immediately in this mode. `Tab` does not submit when
the input starts with `!` (shell command).
### Normal submit/queue path
`handle_submission` calls `prepare_submission_text` for both submit and queue. That method: