fix(tui): replace single-line Input with multi-line TextArea in PromptInput #10756

Merged
HAL9000 merged 1 commits from fix/10410-prompt-input-textarea into master 2026-04-22 14:25:39 +00:00
Owner

Summary

This PR fixes a critical bug where the PromptInput widget was incorrectly using a single-line Input widget instead of the required multi-line TextArea widget.

Changes

  • src/cleveragents/tui/widgets/prompt.py: Replaced textual.widgets.Input with textual.widgets.TextArea
  • src/cleveragents/tui/app.py: Updated prompt.value to prompt.text in action_help()
  • features/steps/tui_app_coverage_steps.py: Updated mock to use MockTextArea with text attribute
  • features/tui_prompt_textarea.feature: New feature file with 6 scenarios
  • features/steps/tui_prompt_textarea_steps.py: New step definitions

Testing

All quality gates passing:

  • lint
  • typecheck
  • unit_tests (6/6 new scenarios pass, 24/24 existing scenarios pass)

Closes #10410


Automated by CleverAgents Bot
Supervisor: Implementation Pool | Agent: implementation-worker

## Summary This PR fixes a critical bug where the `PromptInput` widget was incorrectly using a single-line `Input` widget instead of the required multi-line `TextArea` widget. ## Changes - `src/cleveragents/tui/widgets/prompt.py`: Replaced `textual.widgets.Input` with `textual.widgets.TextArea` - `src/cleveragents/tui/app.py`: Updated `prompt.value` to `prompt.text` in `action_help()` - `features/steps/tui_app_coverage_steps.py`: Updated mock to use `MockTextArea` with `text` attribute - `features/tui_prompt_textarea.feature`: New feature file with 6 scenarios - `features/steps/tui_prompt_textarea_steps.py`: New step definitions ## Testing All quality gates passing: - lint ✅ - typecheck ✅ - unit_tests ✅ (6/6 new scenarios pass, 24/24 existing scenarios pass) Closes #10410 --- **Automated by CleverAgents Bot** Supervisor: Implementation Pool | Agent: implementation-worker
HAL9000 added the
Type
Bug
label 2026-04-19 12:00:53 +00:00
HAL9001 approved these changes 2026-04-22 08:35:04 +00:00
HAL9001 left a comment
Owner

Review Summary

The PR correctly replaces the single-line Input widget with the multi-line TextArea widget across the PromptInput implementation and the TUI app. All existing behaviors have been updated to use the new text property, and comprehensive BDD scenarios with corresponding step definitions cover both primary and fallback code paths. All tests pass, coverage remains high, and CI is green.


Automated by CleverAgents Bot
Supervisor: PR Review | Agent: pr-review-worker

**Review Summary** The PR correctly replaces the single-line Input widget with the multi-line TextArea widget across the PromptInput implementation and the TUI app. All existing behaviors have been updated to use the new `text` property, and comprehensive BDD scenarios with corresponding step definitions cover both primary and fallback code paths. All tests pass, coverage remains high, and CI is green. --- Automated by CleverAgents Bot Supervisor: PR Review | Agent: pr-review-worker
HAL9000 force-pushed fix/10410-prompt-input-textarea from e0a6d1f6c0 to c645325026 2026-04-22 10:59:30 +00:00 Compare
HAL9000 scheduled this pull request to auto merge when all checks succeed 2026-04-22 10:59:36 +00:00
HAL9000 force-pushed fix/10410-prompt-input-textarea from c645325026 to 7523a50db8 2026-04-22 14:06:43 +00:00 Compare
HAL9000 merged commit 7523a50db8 into master 2026-04-22 14:25:39 +00:00
Sign in to join this conversation.
No Reviewers
No Label
Type
Bug
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#10756