UAT: Up/down arrow keys do not navigate prompt history (JSONL per project) #10431

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

Summary

The spec requires up/down arrow keys to navigate prompt history stored as JSONL per project. Neither the history storage nor the navigation is implemented.

Expected Behavior (from spec)

  • Up/down arrows navigate prompt history
  • History is stored as JSONL per project

Actual Behavior

src/cleveragents/tui/widgets/prompt.py has no history navigation logic. src/cleveragents/tui/app.py has no history loading/saving. No JSONL history file is created or read.

Reproduction Steps

  1. Inspect src/cleveragents/tui/widgets/prompt.py — no history methods
  2. Inspect src/cleveragents/tui/app.py — no history loading/saving
  3. Press up arrow in TUI — nothing happens (or default Input behavior)

Subtasks

  • Create PromptHistory class that reads/writes JSONL per project
  • Add up/down arrow key handlers to PromptInput
  • Integrate history with app.py (save on submit, load on startup)
  • Add tests for history navigation
  • Add tests for JSONL persistence

Definition of Done

  • Up arrow navigates to previous prompt
  • Down arrow navigates to next prompt
  • History persisted as JSONL in project directory
  • Tests pass

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

## Summary The spec requires up/down arrow keys to navigate prompt history stored as JSONL per project. Neither the history storage nor the navigation is implemented. ## Expected Behavior (from spec) - Up/down arrows navigate prompt history - History is stored as JSONL per project ## Actual Behavior `src/cleveragents/tui/widgets/prompt.py` has no history navigation logic. `src/cleveragents/tui/app.py` has no history loading/saving. No JSONL history file is created or read. ## Reproduction Steps 1. Inspect `src/cleveragents/tui/widgets/prompt.py` — no history methods 2. Inspect `src/cleveragents/tui/app.py` — no history loading/saving 3. Press up arrow in TUI — nothing happens (or default Input behavior) ## Subtasks - [ ] Create `PromptHistory` class that reads/writes JSONL per project - [ ] Add up/down arrow key handlers to `PromptInput` - [ ] Integrate history with `app.py` (save on submit, load on startup) - [ ] Add tests for history navigation - [ ] Add tests for JSONL persistence ## Definition of Done - [ ] Up arrow navigates to previous prompt - [ ] Down arrow navigates to next prompt - [ ] History persisted as JSONL in project directory - [ ] 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#10431
No description provided.