Overview
PATAPIM saves and restores terminal sessions per project. Close the app and reopen — your terminals are back where you left them.
What Gets Saved
- Terminal sessions (working directory, shell)
- Active project
- Terminal state (
isProcessing,isPlanMode,needsAttention) - Claude Code session IDs (for session resume)
Storage
Sessions stored at ~/.patapim/sessions.json.
Restore Behavior
On startup:
- Last active project is restored
- Terminal sessions for that project are re-created
- Working directories are restored
- Claude session IDs are preserved
A 10-second timeout applies — if a session can’t be restored in time, a fresh terminal is created.
Claude Session Resume
PATAPIM detects the most recent Claude .jsonl session file and uses it for session resume. Sessions older than 7 days are skipped.