Before killing an agent session, the daemon now verifies that the agent has set requesting_<action>=true in its state.json file. This ensures agents have completed pre-shutdown tasks (git clean, handoff mail, etc) before being terminated. - Added verifyAgentRequestingState() for state file verification - Added identityToStateFile() to map identity to state.json path - Added comprehensive tests in lifecycle_test.go 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3.6 KiB
3.6 KiB