When the daemon detects that an agent bead state doesn't match tmux (e.g., bead says stopped but Claude is running), it now: 1. Logs the divergence clearly with STATE DIVERGENCE prefix 2. Nudges the agent with an actionable command to fix its state 3. Still skips the restart (safety - don't kill healthy sessions) This prevents silent state drift where bead state diverges from reality. Applied to: Deacon, Witness, Refinery ensure functions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 KiB
Executable File
30 KiB
Executable File