TDD: TUI /session command missing 6 of 9 required subcommands #10374

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

Metadata

  • Issue Type: Type/Testing
  • Priority: Priority/Critical
  • MoSCoW: MoSCoW/Must Have
  • Branch: tdd/m130-tui-session-subcommands
  • Commit Message: test(tui): add tdd_expected_fail tests for missing session subcommands

Description

TDD issue-capture for bug #10328.

This issue's sole deliverable is failing tests (tagged @tdd_expected_fail) that prove the 6 missing /session subcommands (create, list, switch, close, delete, rename) are not implemented in the TUI TuiCommandRouter.

Bug being captured: TuiCommandRouter._session_command() in src/cleveragents/tui/commands.py only handles show, export, and import. The other 6 subcommands return "Unknown session command: ...".

Test approach:

  • Write Behave scenarios for each of the 6 missing subcommands.
  • Each scenario asserts that the subcommand returns a meaningful result (not "Unknown session command: ...").
  • Tag all scenarios with @tdd_issue @tdd_issue_10328 @tdd_expected_fail.
  • Tests pass CI (inverted) until the bug fix removes @tdd_expected_fail.

Acceptance Criteria

  • Behave scenarios exist for /session create, /session list, /session switch, /session close, /session delete, /session rename.
  • Each scenario is tagged @tdd_issue @tdd_issue_10328 @tdd_expected_fail.
  • Each scenario asserts the subcommand does NOT return "Unknown session command: ...".
  • Tests pass CI with @tdd_expected_fail before the fix.

Subtasks

  • Create feature file with 6 scenarios (one per missing subcommand), all tagged @tdd_issue @tdd_issue_10328 @tdd_expected_fail.
  • Implement step definitions that call TuiCommandRouter with each subcommand and assert non-error response.
  • Verify tests pass CI with @tdd_expected_fail tag.
  • Open PR on tdd/m130-tui-session-subcommands branch.

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.

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

## Metadata - **Issue Type:** Type/Testing - **Priority:** Priority/Critical - **MoSCoW:** MoSCoW/Must Have - **Branch:** tdd/m130-tui-session-subcommands - **Commit Message:** test(tui): add tdd_expected_fail tests for missing session subcommands ## Description TDD issue-capture for bug #10328. This issue's sole deliverable is failing tests (tagged `@tdd_expected_fail`) that prove the 6 missing `/session` subcommands (`create`, `list`, `switch`, `close`, `delete`, `rename`) are not implemented in the TUI `TuiCommandRouter`. **Bug being captured:** `TuiCommandRouter._session_command()` in `src/cleveragents/tui/commands.py` only handles `show`, `export`, and `import`. The other 6 subcommands return `"Unknown session command: ..."`. **Test approach:** - Write Behave scenarios for each of the 6 missing subcommands. - Each scenario asserts that the subcommand returns a meaningful result (not `"Unknown session command: ..."`). - Tag all scenarios with `@tdd_issue @tdd_issue_10328 @tdd_expected_fail`. - Tests pass CI (inverted) until the bug fix removes `@tdd_expected_fail`. ## Acceptance Criteria - [ ] Behave scenarios exist for `/session create`, `/session list`, `/session switch`, `/session close`, `/session delete`, `/session rename`. - [ ] Each scenario is tagged `@tdd_issue @tdd_issue_10328 @tdd_expected_fail`. - [ ] Each scenario asserts the subcommand does NOT return `"Unknown session command: ..."`. - [ ] Tests pass CI with `@tdd_expected_fail` before the fix. ## Subtasks - [ ] Create feature file with 6 scenarios (one per missing subcommand), all tagged `@tdd_issue @tdd_issue_10328 @tdd_expected_fail`. - [ ] Implement step definitions that call `TuiCommandRouter` with each subcommand and assert non-error response. - [ ] Verify tests pass CI with `@tdd_expected_fail` tag. - [ ] Open PR on `tdd/m130-tui-session-subcommands` branch. ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. --- **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#10374
No description provided.