altimate-code
altimate-code copied to clipboard
[Feature] Session management safeguards and UX improvements
Problem
Several session management commands have UX gaps:
altimate session deletehas no confirmation — permanently deletes session history immediately with no safety netaltimate session listwith no sessions gives no output — silent empty result, user can't tell if the command workedaltimate exportwithout session ID hangs — starts interactive selection that doesn't work in non-interactive modealtimate dbwith no subcommand gives no output — no help text or available subcommands shown
Desired Behavior
Session Deletion Safety
- Require confirmation before permanent deletion: "Session 'SQL Optimization' (15 messages, 3 tool calls). Delete? [y/N]"
- Support
--forceflag to skip confirmation for scripts - Consider soft-delete with configurable retention (e.g., 7 days) before permanent removal
Empty State Handling
altimate session listwith no sessions → "No sessions found. Start one with: altimate"altimate dbwith no subcommand → show available subcommands and brief helpaltimate exportwithout session ID in non-interactive mode → clear error with usage hint
Key Files
packages/altimate-code/src/cli/cmd/session.ts— session list, delete commandspackages/altimate-code/src/cli/cmd/export.ts— export commandpackages/altimate-code/src/cli/cmd/db.ts— db command
Industry Patterns
- Claude Code: Checkpointing system with
/rewind— scrollable checkpoint list with options to rewind conversation only, code only, or both - Git:
git branch -Drequires-D(force) for unmerged branches; regular-dhas safety check - GitHub CLI: All destructive operations require
--yesflag or interactive confirmation
Acceptance Criteria
- [ ]
session deleterequires confirmation prompt (or--forceflag) - [ ] Session summary shown before deletion (message count, date range)
- [ ]
session listshows helpful message when no sessions exist - [ ]
exportin non-interactive mode gives clear error when no session ID provided - [ ]
dbwith no subcommand shows help text