Skip to content

feat(sessions): add delete command and enrich sessions list - #19

Merged
emretheus merged 2 commits into
emretheus:masterfrom
emre-kocyigit:claude/confident-heisenberg-xy1KH
Jun 8, 2026
Merged

feat(sessions): add delete command and enrich sessions list#19
emretheus merged 2 commits into
emretheus:masterfrom
emre-kocyigit:claude/confident-heisenberg-xy1KH

Conversation

@emre-kocyigit

@emre-kocyigit emre-kocyigit commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator
  • Add delete_session() to inclave_core with CLIError on missing name
  • Export SessionSummary dataclass from inclave_core (name, saved_at, model, turns, file_count)
  • list_sessions() now returns List[SessionSummary] instead of tuples
  • inclave sessions list table now shows model, turn count, and file count columns
  • inclave sessions delete command with --yes/-y to skip confirmation
  • 6 new tests covering delete, delete-missing error, rich list fields, and list-after-delete

Closes #16

Checklist

  • Tests added or updated
  • uv run ruff check . && uv run ruff format --check . is clean
  • uv run mypy packages shared is clean
  • uv run pytest --cov is clean (≥75% coverage)
  • If this changes a cross-package contract (api.py), it has reviewers from each affected package
  • If this touches the sandbox or any network call, a maintainer has been pinged

- Add delete_session() to inclave_core with CLIError on missing name
- Export SessionSummary dataclass from inclave_core (name, saved_at, model, turns, file_count)
- list_sessions() now returns List[SessionSummary] instead of tuples
- inclave sessions list table now shows model, turn count, and file count columns
- inclave sessions delete <name> command with --yes/-y to skip confirmation
- 6 new tests covering delete, delete-missing error, rich list fields, and list-after-delete

https://claude.ai/code/session_01M8pedejYy92FrrdGjVksEt

@emretheus emretheus left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

important one, thx

@emretheus
emretheus merged commit 486af57 into emretheus:master Jun 8, 2026
1 of 3 checks passed
emretheus added a commit that referenced this pull request Jun 8, 2026
The PR #19 merge dropped the upper half of sessions.py (imports, Session,
save_session, load_session), which broke test collection repo-wide with a
NameError. Restore it from the last good revision.

delete_session also had a contradictory contract: the implementation returned
Path and raised on a missing file, while the bridge handler and the newer tests
expect a bool (True if removed, False if absent). Align the implementation with
that contract and drop the stale test that asserted the raise behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: session persistence — autosave and resume conversations

3 participants