State Resume
Resume a conversation from an existing state file.
Arguments
- •No argument: Resume most recent state file
- •
$ARGUMENTS= timestamp: Resume specific.state/{timestamp}.state.md
Workflow
- •Get repo root:
git rev-parse --show-toplevel - •Find state file:
- •If no argument:
ls -1 .state/*.state.md | sort -rn | head -1 - •If timestamp provided:
.state/{timestamp}.state.md
- •If no argument:
- •If file not found, error and suggest
/stateList - •Read the state file contents
- •Update frontmatter:
- •Set
status: active - •Update
updatedtimestamp
- •Set
- •Output header + full contents:
code
Resuming from state file: .state/{timestamp}.state.md --- [file contents] - •Remember filename for
/stateUpdatecalls
Error Handling
If no state files exist:
code
No state files found in .state/ Use /stateCreate to start a new session.
If specified timestamp not found:
code
State file not found: .state/{timestamp}.state.md
Use /stateList to see available state files.