TDD: shift+enter and ctrl+j do not insert newlines in PromptInput #10428

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

Summary

TDD counterpart: shift+enter and ctrl+j must insert newlines in PromptInput.

Tests to Write

def test_shift_enter_inserts_newline():
    # After fixing PromptInput to use TextArea
    from cleveragents.tui.widgets.prompt import PromptInput
    widget = PromptInput()
    widget.insert_newline()  # triggered by shift+enter
    assert "\n" in widget.text

def test_ctrl_j_inserts_newline():
    from cleveragents.tui.widgets.prompt import PromptInput
    widget = PromptInput()
    widget.insert_newline()  # triggered by ctrl+j
    assert "\n" in widget.text

Subtasks

  • Write failing BDD scenarios for shift+enter and ctrl+j
  • Verify tests fail with current implementation
  • Implement newline insertion
  • Verify tests pass

Definition of Done

  • BDD scenarios exist and pass
  • Both key bindings insert newlines

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

## Summary TDD counterpart: `shift+enter` and `ctrl+j` must insert newlines in `PromptInput`. ## Tests to Write ```python def test_shift_enter_inserts_newline(): # After fixing PromptInput to use TextArea from cleveragents.tui.widgets.prompt import PromptInput widget = PromptInput() widget.insert_newline() # triggered by shift+enter assert "\n" in widget.text def test_ctrl_j_inserts_newline(): from cleveragents.tui.widgets.prompt import PromptInput widget = PromptInput() widget.insert_newline() # triggered by ctrl+j assert "\n" in widget.text ``` ## Subtasks - [ ] Write failing BDD scenarios for shift+enter and ctrl+j - [ ] Verify tests fail with current implementation - [ ] Implement newline insertion - [ ] Verify tests pass ## Definition of Done - [ ] BDD scenarios exist and pass - [ ] Both key bindings insert newlines --- **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#10428
No description provided.