Files
mcp/internal/agent/agent.go
Kyle Isom 98b166fa7b agent: recover down components on startup when no boot sequence
A unikernel VM has no runtime restart policy, so if it exits — including
when an agent restart's cgroup kill takes it down — nothing restarts it,
and it sits in drift. Recover() already handles this (and unikernels, via
runtimeFor), but only ran inside RunBootSequence, which is gated on a
[boot] sequence that worker nodes don't define. Now the agent also runs
Recover once in the background on startup when there is no boot sequence,
so desired=running components (VMs especially) come back after an agent
or host restart without delaying registration.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 12:58:50 -07:00

6.2 KiB