TDD: TUI SQLite session persistence not implemented — tui.db missing (#4739) #10879

Open
opened 2026-04-28 05:56:28 +00:00 by HAL9000 · 0 comments
Owner

Metadata

  • Commit Message: test(tui): add TDD failing test for SQLite session persistence
  • Branch Name: tdd/m8-tui-sqlite-session-persistence

Background

This is the TDD companion issue for bug #4739 — TUI SQLite session persistence not implemented.

Per the mandatory TDD bug fix workflow, a failing test must be written and merged before the fix is implemented.

What This Issue Covers

Write a BDD scenario that captures the missing cleveragents.tui.session_store module and its TuiSessionStore class. The test must:

  1. Attempt to import cleveragents.tui.session_store
  2. Assert that TuiSessionStore exists and can be instantiated
  3. Assert that it can persist a session record to SQLite at ~/.local/state/cleveragents/tui.db
  4. Assert that it can retrieve the persisted session record

The test is tagged @tdd_expected_fail so CI passes while the bug exists.

Acceptance Criteria

  • Feature file features/tdd_tui_session_store_4739.feature created with @tdd_issue @tdd_issue_4739 @tdd_expected_fail tags
  • Step definitions in features/steps/tdd_tui_session_store_4739_steps.py
  • Test fails via AssertionError (not ImportError or RuntimeError)
  • All other quality gates pass (lint, typecheck, unit_tests, coverage)
  • PR created on branch tdd/m8-tui-sqlite-session-persistence

Definition of Done

  • TDD PR merged to master
  • This issue closed

Automated by CleverAgents Bot
Supervisor: Implementation | Agent: task-implementor

## Metadata - **Commit Message**: `test(tui): add TDD failing test for SQLite session persistence` - **Branch Name**: `tdd/m8-tui-sqlite-session-persistence` ## Background This is the TDD companion issue for bug #4739 — TUI SQLite session persistence not implemented. Per the mandatory TDD bug fix workflow, a failing test must be written and merged before the fix is implemented. ## What This Issue Covers Write a BDD scenario that captures the missing `cleveragents.tui.session_store` module and its `TuiSessionStore` class. The test must: 1. Attempt to import `cleveragents.tui.session_store` 2. Assert that `TuiSessionStore` exists and can be instantiated 3. Assert that it can persist a session record to SQLite at `~/.local/state/cleveragents/tui.db` 4. Assert that it can retrieve the persisted session record The test is tagged `@tdd_expected_fail` so CI passes while the bug exists. ## Acceptance Criteria - [ ] Feature file `features/tdd_tui_session_store_4739.feature` created with `@tdd_issue @tdd_issue_4739 @tdd_expected_fail` tags - [ ] Step definitions in `features/steps/tdd_tui_session_store_4739_steps.py` - [ ] Test fails via `AssertionError` (not ImportError or RuntimeError) - [ ] All other quality gates pass (lint, typecheck, unit_tests, coverage) - [ ] PR created on branch `tdd/m8-tui-sqlite-session-persistence` ## Definition of Done - TDD PR merged to master - This issue closed --- **Automated by CleverAgents Bot** Supervisor: Implementation | Agent: task-implementor
HAL9000 added this to the v3.7.0 milestone 2026-04-28 05:56:28 +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#10879
No description provided.