Background
PRD §11.5 defines cage run --continue (resume the previous conversation in the same directory, modeled on claude-docker --continue), and the CLI UX spec lists the flag. No current issue covers it. Session persistence (#13) provides the metadata and volumes needed, so the gap is the resume flow itself. Leaving the flag undefined risks another parse-only flag like the ones that shipped in the legacy CLI.
Scope
- Decide the pre-alpha stance: implement a minimal resume, or defer with a clear unimplemented error (either is acceptable; it must be explicit).
- If implemented:
- Define interaction with
--cleanup (a cleaned-up session cannot be resumed) and with crashed sessions (resume vs sync --from-volume recovery).
Acceptance Criteria
References
Background
PRD §11.5 defines
cage run --continue(resume the previous conversation in the same directory, modeled on claude-docker--continue), and the CLI UX spec lists the flag. No current issue covers it. Session persistence (#13) provides the metadata and volumes needed, so the gap is the resume flow itself. Leaving the flag undefined risks another parse-only flag like the ones that shipped in the legacy CLI.Scope
claude --continue) through the adapter.--cleanup(a cleaned-up session cannot be resumed) and with crashed sessions (resume vssync --from-volumerecovery).Acceptance Criteria
cage run --continueeither resumes the latest session or fails with an explicit, documented unimplemented error — never a silent no-op.--continuewith no prior session yields a clear error, not a panic.--cleanupand crashed sessions is documented.References
cage-demo/docs/PRD.md§11.5 (additional CLI commands)cage-demo/docs/cli-ux/cli-ux-spec.md§3 (--continue)cage-demo/src/session/SessionStatus lifecycle