UAT: TUI prompt history navigation not implemented — up/down arrows don't cycle through history #4400

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

Bug Report

Feature Area: TUI — Prompt History Navigation

What Was Tested

The spec (§ "Prompt Architecture Detail — History Navigation") defines two independent JSONL history files per project for prompt and shell history, with up/down arrow navigation.

Expected Behavior (from spec)

History files:

  • Prompt history: ~/.local/state/cleveragents/history/<project-hash>/prompt.jsonl
  • Shell history: ~/.local/state/cleveragents/history/<project-hash>/shell.jsonl

Navigation rules:

  • up at row 0, column 0: replaces TextArea content with previous history entry
  • down at last row: replaces TextArea content with next history entry (or clears to original input)
  • History entries stored as-is (including multi-line prompts)
  • History files capped at 10,000 entries; oldest pruned on write
  • Each mode (normal, shell) has independent history and cursor position

Actual Behavior

The PromptInput widget in src/cleveragents/tui/widgets/prompt.py is a thin wrapper around Textual's Input widget with only a consume_text() method:

class PromptInput(_InputBase):
    def consume_text(self) -> PromptSubmitted:
        text = self.value
        self.value = ""
        return PromptSubmitted(text=text)

No history navigation logic exists. No JSONL history files are created. No up/down key handlers for history cycling are implemented.

Code Location

  • src/cleveragents/tui/widgets/prompt.py — no history navigation
  • No history storage module in src/cleveragents/tui/
  • Spec reference: §"History Navigation" (line ~30014 in docs/specification.md)

Impact

Users cannot recall previous prompts using arrow keys. Every TUI session starts with empty history.


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

## Bug Report **Feature Area:** TUI — Prompt History Navigation ### What Was Tested The spec (§ "Prompt Architecture Detail — History Navigation") defines two independent JSONL history files per project for prompt and shell history, with `up`/`down` arrow navigation. ### Expected Behavior (from spec) **History files:** - Prompt history: `~/.local/state/cleveragents/history/<project-hash>/prompt.jsonl` - Shell history: `~/.local/state/cleveragents/history/<project-hash>/shell.jsonl` **Navigation rules:** - `up` at row 0, column 0: replaces TextArea content with previous history entry - `down` at last row: replaces TextArea content with next history entry (or clears to original input) - History entries stored as-is (including multi-line prompts) - History files capped at 10,000 entries; oldest pruned on write - Each mode (normal, shell) has independent history and cursor position ### Actual Behavior The `PromptInput` widget in `src/cleveragents/tui/widgets/prompt.py` is a thin wrapper around Textual's `Input` widget with only a `consume_text()` method: ```python class PromptInput(_InputBase): def consume_text(self) -> PromptSubmitted: text = self.value self.value = "" return PromptSubmitted(text=text) ``` No history navigation logic exists. No JSONL history files are created. No `up`/`down` key handlers for history cycling are implemented. ### Code Location - `src/cleveragents/tui/widgets/prompt.py` — no history navigation - No history storage module in `src/cleveragents/tui/` - Spec reference: §"History Navigation" (line ~30014 in docs/specification.md) ### Impact Users cannot recall previous prompts using arrow keys. Every TUI session starts with empty history. --- **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 #4784 — TUI prompt history navigation not implemented.


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

Closing as duplicate of #4784 — TUI prompt history navigation 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#4400
No description provided.