feat(tui): implement TextArea-based PromptInput widget with multiline support and history #10163

Open
opened 2026-04-17 04:03:05 +00:00 by HAL9000 · 0 comments
Owner

Background

The TUI prompt must use a TextArea widget (not Input) to support multiline input, history navigation, and mode-dependent symbol display. This replaces the current single-line Input widget and is the foundation for the @, /, and ! mode parsing system defined in ADR-046.

Acceptance Criteria

  • PromptInput widget implemented using Textual TextArea (not Input)
  • Multiline input supported (shift+enter for newline)
  • History navigation with up/down arrow keys
  • Mode-dependent symbol displayed in prompt (default >, shell $, reference @)
  • Test coverage >= 97%

Metadata

  • Commit Message: feat(tui): implement TextArea-based PromptInput widget with multiline support
  • Branch: feature/v3.7.0/tui-prompt-input-widget
  • Milestone: v3.7.0
  • Ref: #5305 EPIC: TUI Reference & Command Input System — @, /, ! Mode Parsing (v3.7.0)

Subtasks

  • Define PromptInput widget class using TextArea
  • Implement multiline input with shift+enter newline
  • Implement history buffer with up/down navigation
  • Implement mode-dependent symbol display
  • Write unit tests for input handling and history

Definition of Done

  • Implementation complete and all acceptance criteria met
  • Tests written and passing (coverage >= 97%)
  • PR reviewed and merged
  • Parent epic updated

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Background The TUI prompt must use a `TextArea` widget (not `Input`) to support multiline input, history navigation, and mode-dependent symbol display. This replaces the current single-line `Input` widget and is the foundation for the `@`, `/`, and `!` mode parsing system defined in ADR-046. ## Acceptance Criteria - [ ] `PromptInput` widget implemented using Textual `TextArea` (not `Input`) - [ ] Multiline input supported (shift+enter for newline) - [ ] History navigation with up/down arrow keys - [ ] Mode-dependent symbol displayed in prompt (default `>`, shell `$`, reference `@`) - [ ] Test coverage >= 97% ## Metadata - **Commit Message**: `feat(tui): implement TextArea-based PromptInput widget with multiline support` - **Branch**: `feature/v3.7.0/tui-prompt-input-widget` - **Milestone**: v3.7.0 - **Ref**: #5305 EPIC: TUI Reference & Command Input System — @, /, ! Mode Parsing (v3.7.0) ## Subtasks - [ ] Define `PromptInput` widget class using `TextArea` - [ ] Implement multiline input with shift+enter newline - [ ] Implement history buffer with up/down navigation - [ ] Implement mode-dependent symbol display - [ ] Write unit tests for input handling and history ## Definition of Done - Implementation complete and all acceptance criteria met - Tests written and passing (coverage >= 97%) - PR reviewed and merged - Parent epic updated --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-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#10163
No description provided.