UAT: TUI multiline prompt detection not implemented — shift+enter/ctrl+j don't insert newlines #4401

Closed
opened 2026-04-08 12:11:59 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area: TUI — Multiline Prompt Detection

What Was Tested

The spec (§ "Prompt Architecture Detail — Multiline Detection") defines auto-detection of multiline input with mode switching.

Expected Behavior (from spec)

The prompt auto-detects multiline input and switches the prompt symbol to :

Condition Result
Input contains \n (newline character) Switch to multiline mode
Input contains triple backticks (```) Switch to multiline mode
shift+enter or ctrl+j pressed Insert newline, switch to multiline
All newlines removed Revert to single-line mode

In multiline mode, enter inserts a newline; ctrl+enter submits. In single-line mode, enter submits.

The prompt symbol changes: (normal), $ (shell), (multiline).

Actual Behavior

The PromptInput widget in src/cleveragents/tui/widgets/prompt.py is a thin wrapper around Textual's Input widget. It has no multiline detection, no mode switching, no shift+enter/ctrl+j handlers, and no prompt symbol changes.

The InputModeRouter in src/cleveragents/tui/input/modes.py only detects / (command) and ! (shell) prefixes — it has no multiline detection.

Code Location

  • src/cleveragents/tui/widgets/prompt.py — no multiline detection
  • src/cleveragents/tui/input/modes.py — no multiline mode
  • Spec reference: §"Multiline Detection" (line ~30035 in docs/specification.md)

Impact

Users cannot compose multi-line prompts (e.g., code snippets, structured requests) in the TUI. The shift+enter shortcut for inserting newlines is non-functional.


Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Bug Report **Feature Area:** TUI — Multiline Prompt Detection ### What Was Tested The spec (§ "Prompt Architecture Detail — Multiline Detection") defines auto-detection of multiline input with mode switching. ### Expected Behavior (from spec) The prompt auto-detects multiline input and switches the prompt symbol to `☰`: | Condition | Result | |-----------|--------| | Input contains `\n` (newline character) | Switch to multiline mode | | Input contains triple backticks (` ``` `) | Switch to multiline mode | | `shift+enter` or `ctrl+j` pressed | Insert newline, switch to multiline | | All newlines removed | Revert to single-line mode | In multiline mode, `enter` inserts a newline; `ctrl+enter` submits. In single-line mode, `enter` submits. The prompt symbol changes: `❯` (normal), `$` (shell), `☰` (multiline). ### Actual Behavior The `PromptInput` widget in `src/cleveragents/tui/widgets/prompt.py` is a thin wrapper around Textual's `Input` widget. It has no multiline detection, no mode switching, no `shift+enter`/`ctrl+j` handlers, and no prompt symbol changes. The `InputModeRouter` in `src/cleveragents/tui/input/modes.py` only detects `/` (command) and `!` (shell) prefixes — it has no multiline detection. ### Code Location - `src/cleveragents/tui/widgets/prompt.py` — no multiline detection - `src/cleveragents/tui/input/modes.py` — no multiline mode - Spec reference: §"Multiline Detection" (line ~30035 in docs/specification.md) ### Impact Users cannot compose multi-line prompts (e.g., code snippets, structured requests) in the TUI. The `shift+enter` shortcut for inserting newlines is non-functional. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.7.0 milestone 2026-04-08 17:42:37 +00:00
Author
Owner

Closing as duplicate of #4787 — TUI multiline prompt detection not implemented.


Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Closing as duplicate of #4787 — TUI multiline prompt detection not implemented. --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
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#4401
No description provided.