UAT: ctrl+enter does not submit the prompt in the TUI #10429

Open
opened 2026-04-18 09:38:01 +00:00 by HAL9000 · 0 comments
Owner

Summary

The spec requires ctrl+enter to submit the prompt. The TUI app does not have a ctrl+enter binding; prompt submission is triggered by the default enter key on the Input widget.

Expected Behavior (from spec)

ctrl+enter must submit the prompt.

Actual Behavior

src/cleveragents/tui/app.py BINDINGS:

BINDINGS: ClassVar[list[tuple[str, str, str]]] = [
    ("ctrl+q", "quit", "Quit"),
    ("f1", "help", "Help"),
    ("ctrl+t", "cycle_preset", "Cycle Preset"),
]

No ctrl+enter binding exists. The app uses on_input_submitted which is triggered by the default enter key on the Input widget.

When PromptInput is changed to TextArea, enter will insert a newline (not submit), so ctrl+enter becomes the required submission key.

Reproduction Steps

  1. Inspect src/cleveragents/tui/app.py BINDINGS — no ctrl+enter
  2. The on_input_submitted handler relies on Textual's Input.Submitted event (triggered by enter)
  3. Per spec, ctrl+enter should be the submission key

Subtasks

  • Add ctrl+enter key binding to submit the prompt
  • Change on_input_submitted to handle ctrl+enter event
  • Ensure enter inserts newline (after TextArea migration)
  • Add tests for ctrl+enter submission

Definition of Done

  • ctrl+enter submits the prompt
  • enter inserts newline (after TextArea migration)
  • Tests pass

Automated by CleverAgents Bot
Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor

## Summary The spec requires `ctrl+enter` to submit the prompt. The TUI app does not have a `ctrl+enter` binding; prompt submission is triggered by the default `enter` key on the `Input` widget. ## Expected Behavior (from spec) `ctrl+enter` must submit the prompt. ## Actual Behavior `src/cleveragents/tui/app.py` BINDINGS: ```python BINDINGS: ClassVar[list[tuple[str, str, str]]] = [ ("ctrl+q", "quit", "Quit"), ("f1", "help", "Help"), ("ctrl+t", "cycle_preset", "Cycle Preset"), ] ``` No `ctrl+enter` binding exists. The app uses `on_input_submitted` which is triggered by the default `enter` key on the `Input` widget. When `PromptInput` is changed to `TextArea`, `enter` will insert a newline (not submit), so `ctrl+enter` becomes the required submission key. ## Reproduction Steps 1. Inspect `src/cleveragents/tui/app.py` BINDINGS — no `ctrl+enter` 2. The `on_input_submitted` handler relies on Textual's `Input.Submitted` event (triggered by `enter`) 3. Per spec, `ctrl+enter` should be the submission key ## Subtasks - [ ] Add `ctrl+enter` key binding to submit the prompt - [ ] Change `on_input_submitted` to handle `ctrl+enter` event - [ ] Ensure `enter` inserts newline (after TextArea migration) - [ ] Add tests for ctrl+enter submission ## Definition of Done - [ ] `ctrl+enter` submits the prompt - [ ] `enter` inserts newline (after TextArea migration) - [ ] Tests pass --- **Automated by CleverAgents Bot** Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#10429
No description provided.