feat(tui): implement / command mode with command registry and autocomplete #8639

Open
opened 2026-04-13 21:39:47 +00:00 by HAL9000 · 1 comment
Owner

Metadata

  • Commit message type: feat
  • Scope: tui
  • Branch name prefix: feat/v3.7.0-command-mode-registry

Background and Context

As part of Epic #8604 (Reference and Command Input System), the / command mode allows users to execute TUI commands. A command registry holds all available commands, and autocomplete shows matching commands as the user types.

This issue depends on input mode detection being implemented first.

This issue blocks Epic #8604.

Expected Behavior

  • After typing /, an autocomplete dropdown shows available TUI commands
  • Commands include: /clear, /help, /persona, /settings, /quit
  • Selecting a command executes it
  • Unknown commands show a clear error message

Acceptance Criteria

  • Command registry holds all available TUI commands
  • Autocomplete dropdown shows matching commands after /
  • Selecting a command executes it
  • Unknown commands show a clear error message
  • Widget tests verify command execution
  • Unit tests achieve >= 97% coverage

Subtasks

  • Implement CommandRegistry class
  • Register built-in commands (/clear, /help, /persona, /settings, /quit)
  • Implement command autocomplete dropdown
  • Implement command execution
  • Implement error handling for unknown commands
  • Write widget tests for command execution
  • Write unit tests for command registry

Definition of Done

  1. / command mode with command registry is functional
  2. Widget tests verify command execution
  3. Unit tests pass with >= 97% coverage
  4. Code reviewed and merged to main branch

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

## Metadata - **Commit message type**: `feat` - **Scope**: `tui` - **Branch name prefix**: `feat/v3.7.0-command-mode-registry` ## Background and Context As part of Epic #8604 (Reference and Command Input System), the / command mode allows users to execute TUI commands. A command registry holds all available commands, and autocomplete shows matching commands as the user types. This issue depends on input mode detection being implemented first. This issue blocks Epic #8604. ## Expected Behavior - After typing `/`, an autocomplete dropdown shows available TUI commands - Commands include: /clear, /help, /persona, /settings, /quit - Selecting a command executes it - Unknown commands show a clear error message ## Acceptance Criteria - [ ] Command registry holds all available TUI commands - [ ] Autocomplete dropdown shows matching commands after `/` - [ ] Selecting a command executes it - [ ] Unknown commands show a clear error message - [ ] Widget tests verify command execution - [ ] Unit tests achieve >= 97% coverage ## Subtasks - [ ] Implement `CommandRegistry` class - [ ] Register built-in commands (/clear, /help, /persona, /settings, /quit) - [ ] Implement command autocomplete dropdown - [ ] Implement command execution - [ ] Implement error handling for unknown commands - [ ] Write widget tests for command execution - [ ] Write unit tests for command registry ## Definition of Done 1. / command mode with command registry is functional 2. Widget tests verify command execution 3. Unit tests pass with >= 97% coverage 4. Code reviewed and merged to main branch --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor
Author
Owner

[AUTO-OWNR-1] Triage Decision (Cycle 7)

Status: Verified

MoSCoW: Must Have
Priority: High
Milestone: v3.7.0

Rationale: The / command mode with CommandRegistry and autocomplete is a core deliverable of the Reference and Command Input System (ADR-046). Built-in commands (/clear, /help, /persona, /settings, /quit) are required for a complete TUI experience. Depends on #8637 (input mode detection).

Next Steps: Implement CommandRegistry and command autocomplete. Ensure #8637 is merged first. Target branch: feat/v3.7.0-command-mode-registry.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

## [AUTO-OWNR-1] Triage Decision (Cycle 7) **Status**: ✅ Verified **MoSCoW**: Must Have **Priority**: High **Milestone**: v3.7.0 **Rationale**: The `/` command mode with `CommandRegistry` and autocomplete is a core deliverable of the Reference and Command Input System (ADR-046). Built-in commands (`/clear`, `/help`, `/persona`, `/settings`, `/quit`) are required for a complete TUI experience. Depends on #8637 (input mode detection). **Next Steps**: Implement `CommandRegistry` and command autocomplete. Ensure #8637 is merged first. Target branch: `feat/v3.7.0-command-mode-registry`. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
HAL9000 added this to the v3.7.0 milestone 2026-04-13 21:48:59 +00:00
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#8639
No description provided.