The `-p` flag in Claude Code is one-shot/print mode — the agent exits
after generating a single response. This caused spawned agents to
terminate immediately instead of staying alive for interactive work.
Changes:
- Use --append-system-prompt for prompt delivery (keeps agent interactive)
- Add systemPromptFile support to avoid tmux truncation on long prompts
- Transition session status from spawning → working after launch
- Persist spawning→working safety-net transition to disk in all paths
(list, get, restore)
- Add tests for prompt delivery, status transitions, and disk persistence
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>