UAT: TUI slash command router only handles 3 of 87 catalogued commands — 84 slash commands return "Unknown command" at runtime #3049

Open
opened 2026-04-05 04:17:11 +00:00 by freemo · 2 comments
Owner

Metadata

  • Branch: feat/tui-slash-command-router-implementation
  • Commit Message: feat(tui): implement full slash command routing for all 87 catalogued commands
  • Milestone: v3.7.0
  • Parent Epic: #868

Description

The TUI slash catalog (src/cleveragents/tui/slash_catalog.py) defines 87 slash commands across 12 groups (Session, Persona, Scope, Plan, Project, Actor, Resource, Config, Tool, Skill, Invariant, Profile, Context, Utility). However, the TuiCommandRouter.handle() method in src/cleveragents/tui/commands.py only handles 3 top-level command groups:

  • persona (only list and set sub-commands)
  • session (only show, export, import sub-commands)
  • help

All other commands (84 out of 87) return "Unknown command: /<command>" when invoked.

Specifically, the following command groups have NO implementation:

  • scope:* (4 commands: add, remove, clear, show)
  • plan:* (13 commands: use, list, status, tree, execute, apply, cancel, diff, correct, resume, revert, rollback, explain, errors, artifacts, inspect)
  • project:* (5 commands: list, create, show, delete, inspect, context:show)
  • actor:* (3 commands: list, show, set-default)
  • resource:* (4 commands: list, show, tree, inspect)
  • config:* (3 commands: list, get, set)
  • tool:* (2 commands: list, show)
  • skill:* (2 commands: list, show)
  • invariant:* (3 commands: list, add, remove)
  • profile:* (2 commands: list, show)
  • context:* (3 commands: inspect, set, simulate)
  • clear, theme, settings, about, debug (5 utility commands)
  • persona:create, persona:edit, persona:delete, persona:export, persona:import (5 persona commands)
  • session:create, session:list, session:switch, session:close, session:delete, session:rename (6 session commands)

Current behaviour: Typing any of the above 84 commands in the TUI prompt returns "Unknown command: /<command>" with no action taken.

Expected behaviour per spec: All 87 catalogued slash commands should be routed to their respective backend service calls via the A2A protocol.

Code locations:

  • src/cleveragents/tui/commands.py lines 46–56: handle() only dispatches to persona, session, help
  • src/cleveragents/tui/slash_catalog.py: 87 commands defined but only 3 groups implemented

Subtasks

  • Implement scope:* command group routing in TuiCommandRouter
  • Implement plan:* command group routing in TuiCommandRouter
  • Implement project:* command group routing in TuiCommandRouter
  • Implement actor:* command group routing in TuiCommandRouter
  • Implement resource:* command group routing in TuiCommandRouter
  • Implement config:* command group routing in TuiCommandRouter
  • Implement tool:* and skill:* command group routing in TuiCommandRouter
  • Implement invariant:*, profile:*, context:* command group routing
  • Implement remaining persona:* and session:* sub-commands
  • Implement utility commands (clear, theme, settings, about, debug)
  • Write BDD scenarios for all new command groups

Definition of Done

  • All 87 catalogued slash commands are routed to their respective backend calls via the A2A protocol
  • Each command returns appropriate output or error messages
  • BDD scenarios cover all command groups (in features/)
  • nox -e typecheck passes
  • nox -e unit_tests passes
  • Coverage >= 97%
  • All nox stages pass
  • Commit created with message feat(tui): implement full slash command routing for all 87 catalogued commands on branch feat/tui-slash-command-router-implementation
  • PR merged and issue closed

Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: ca-new-issue-creator

## Metadata - **Branch**: `feat/tui-slash-command-router-implementation` - **Commit Message**: `feat(tui): implement full slash command routing for all 87 catalogued commands` - **Milestone**: v3.7.0 - **Parent Epic**: #868 ## Description The TUI slash catalog (`src/cleveragents/tui/slash_catalog.py`) defines 87 slash commands across 12 groups (Session, Persona, Scope, Plan, Project, Actor, Resource, Config, Tool, Skill, Invariant, Profile, Context, Utility). However, the `TuiCommandRouter.handle()` method in `src/cleveragents/tui/commands.py` only handles 3 top-level command groups: - `persona` (only `list` and `set` sub-commands) - `session` (only `show`, `export`, `import` sub-commands) - `help` All other commands (84 out of 87) return `"Unknown command: /<command>"` when invoked. Specifically, the following command groups have **NO implementation**: - `scope:*` (4 commands: add, remove, clear, show) - `plan:*` (13 commands: use, list, status, tree, execute, apply, cancel, diff, correct, resume, revert, rollback, explain, errors, artifacts, inspect) - `project:*` (5 commands: list, create, show, delete, inspect, context:show) - `actor:*` (3 commands: list, show, set-default) - `resource:*` (4 commands: list, show, tree, inspect) - `config:*` (3 commands: list, get, set) - `tool:*` (2 commands: list, show) - `skill:*` (2 commands: list, show) - `invariant:*` (3 commands: list, add, remove) - `profile:*` (2 commands: list, show) - `context:*` (3 commands: inspect, set, simulate) - `clear`, `theme`, `settings`, `about`, `debug` (5 utility commands) - `persona:create`, `persona:edit`, `persona:delete`, `persona:export`, `persona:import` (5 persona commands) - `session:create`, `session:list`, `session:switch`, `session:close`, `session:delete`, `session:rename` (6 session commands) **Current behaviour:** Typing any of the above 84 commands in the TUI prompt returns `"Unknown command: /<command>"` with no action taken. **Expected behaviour per spec:** All 87 catalogued slash commands should be routed to their respective backend service calls via the A2A protocol. **Code locations:** - `src/cleveragents/tui/commands.py` lines 46–56: `handle()` only dispatches to `persona`, `session`, `help` - `src/cleveragents/tui/slash_catalog.py`: 87 commands defined but only 3 groups implemented ## Subtasks - [ ] Implement `scope:*` command group routing in `TuiCommandRouter` - [ ] Implement `plan:*` command group routing in `TuiCommandRouter` - [ ] Implement `project:*` command group routing in `TuiCommandRouter` - [ ] Implement `actor:*` command group routing in `TuiCommandRouter` - [ ] Implement `resource:*` command group routing in `TuiCommandRouter` - [ ] Implement `config:*` command group routing in `TuiCommandRouter` - [ ] Implement `tool:*` and `skill:*` command group routing in `TuiCommandRouter` - [ ] Implement `invariant:*`, `profile:*`, `context:*` command group routing - [ ] Implement remaining `persona:*` and `session:*` sub-commands - [ ] Implement utility commands (`clear`, `theme`, `settings`, `about`, `debug`) - [ ] Write BDD scenarios for all new command groups ## Definition of Done - [ ] All 87 catalogued slash commands are routed to their respective backend calls via the A2A protocol - [ ] Each command returns appropriate output or error messages - [ ] BDD scenarios cover all command groups (in `features/`) - [ ] `nox -e typecheck` passes - [ ] `nox -e unit_tests` passes - [ ] Coverage >= 97% - [ ] All nox stages pass - [ ] Commit created with message `feat(tui): implement full slash command routing for all 87 catalogued commands` on branch `feat/tui-slash-command-router-implementation` - [ ] PR merged and issue closed --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-new-issue-creator
freemo added this to the v3.7.0 milestone 2026-04-05 04:17:26 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Confirmed
  • MoSCoW: Should Have

Valid finding verified during batch triage.


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

Issue triaged by project owner: - **State**: Verified - **Priority**: Confirmed - **MoSCoW**: Should Have Valid finding verified during batch triage. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Author
Owner

Starting implementation on branch feat/tui-slash-command-router-implementation.

Plan: Implement all 84 missing slash command routes in TuiCommandRouter.handle() across 12 command groups: scope, plan, project, actor, resource, config, tool, skill, invariant, profile, context, and utility commands. Also completing remaining persona and session sub-commands.

All commands will return appropriate formatted output or error messages via the container's service layer.


Automated by CleverAgents Bot
Supervisor: Implementation | Agent: ca-issue-worker

Starting implementation on branch `feat/tui-slash-command-router-implementation`. **Plan:** Implement all 84 missing slash command routes in `TuiCommandRouter.handle()` across 12 command groups: scope, plan, project, actor, resource, config, tool, skill, invariant, profile, context, and utility commands. Also completing remaining persona and session sub-commands. All commands will return appropriate formatted output or error messages via the container's service layer. --- **Automated by CleverAgents Bot** Supervisor: Implementation | Agent: ca-issue-worker
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.

Blocks
Reference
cleveragents/cleveragents-core#3049
No description provided.