Session Stop
Stop recording and save your agent session to the project ledger.
Stop recording and save this agent session to the project ledger.
Use when:
- Finishing a coding session and want to save the recording
- Wrapping up a feature, investigation, or bug fix
- Ending work for the day and want context preserved
- Before switching to a different task or repository
Keywords: session stop, save, finish, end, done, wrap up, stop recording, upload, ledger
Common Issues
Not recording
Symptom: no active session or similar error
Solution: No session is currently active. Run ox agent <id> session start first
LFS upload failed
Symptom: Session saved locally but upload to ledger failed Solution: Check network connectivity and retry. The session data is saved locally and can be pushed later
Summary generation slow
Symptom: Command hangs during "Generating summary..." Solution: Summarization runs client-side. Wait for completion or check network if it stalls
Post-Command: Generate and Push Summary (REQUIRED)
After the command completes, check the JSON output for a summary_prompt field.
This step is critical for session completeness - without it, the session has no rich summary.
If summary_prompt is present:
- Read the prompt carefully - it references the raw session file on disk
- Read the raw session file at the path specified in the prompt
- Generate the summary JSON following the Output Format in the prompt
- Save it to the exact path specified (typically
summary.jsonin the session cache dir) - If the prompt includes a
push-summarystep, run that command immediately - Verify the push succeeded by checking the JSON output for
"success": true
If summary generation fails:
- Run
ox agent <id> doctor- it can detect and help recover missing summaries - The session data is safe regardless; only the rich summary is missing
$ox agent session stop