feat(tui): implement input mode detection and switching for @, /, ! prefixes #8637

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

Metadata

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

Background and Context

As part of Epic #8604 (Reference and Command Input System), the input box must detect when the user types @, /, or ! as the first character and switch to the appropriate input mode. This is the foundation for all three input modes.

This issue blocks Epic #8604.

Expected Behavior

  • Typing @ as the first character switches to reference mode
  • Typing / as the first character switches to command mode
  • Typing ! as the first character switches to shell execution mode
  • Deleting the prefix character returns to normal input mode
  • Mode indicator is shown in the input box

Acceptance Criteria

  • @ prefix triggers reference mode
  • / prefix triggers command mode
  • ! prefix triggers shell execution mode
  • Deleting prefix returns to normal mode
  • Mode indicator is shown in the input box
  • Widget tests verify mode switching
  • Unit tests achieve >= 97% coverage

Subtasks

  • Implement InputMode enum (NORMAL, REFERENCE, COMMAND, SHELL)
  • Implement prefix detection in input box
  • Implement mode switching logic
  • Implement mode indicator display
  • Write widget tests for mode switching
  • Write unit tests for mode detection

Definition of Done

  1. Input mode detection and switching is functional
  2. Widget tests verify mode switching
  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-input-mode-detection` ## Background and Context As part of Epic #8604 (Reference and Command Input System), the input box must detect when the user types @, /, or ! as the first character and switch to the appropriate input mode. This is the foundation for all three input modes. This issue blocks Epic #8604. ## Expected Behavior - Typing `@` as the first character switches to reference mode - Typing `/` as the first character switches to command mode - Typing `!` as the first character switches to shell execution mode - Deleting the prefix character returns to normal input mode - Mode indicator is shown in the input box ## Acceptance Criteria - [ ] `@` prefix triggers reference mode - [ ] `/` prefix triggers command mode - [ ] `!` prefix triggers shell execution mode - [ ] Deleting prefix returns to normal mode - [ ] Mode indicator is shown in the input box - [ ] Widget tests verify mode switching - [ ] Unit tests achieve >= 97% coverage ## Subtasks - [ ] Implement `InputMode` enum (NORMAL, REFERENCE, COMMAND, SHELL) - [ ] Implement prefix detection in input box - [ ] Implement mode switching logic - [ ] Implement mode indicator display - [ ] Write widget tests for mode switching - [ ] Write unit tests for mode detection ## Definition of Done 1. Input mode detection and switching is functional 2. Widget tests verify mode switching 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: Input mode detection and switching (@, /, ! prefixes) is a foundational requirement for the Reference and Command Input System per ADR-046. All three input modes depend on this detection layer being in place first — it is a hard blocker for Epic #8604.

Next Steps: Implement InputMode enum and prefix detection logic in the TUI input box. Ensure widget tests cover all mode transitions. Target branch: feat/v3.7.0-input-mode-detection.


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**: Input mode detection and switching (`@`, `/`, `!` prefixes) is a foundational requirement for the Reference and Command Input System per ADR-046. All three input modes depend on this detection layer being in place first — it is a hard blocker for Epic #8604. **Next Steps**: Implement `InputMode` enum and prefix detection logic in the TUI input box. Ensure widget tests cover all mode transitions. Target branch: `feat/v3.7.0-input-mode-detection`. --- **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:58 +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#8637
No description provided.