Skip to content

feat: auto-detect and mark dead agents on startup#44

Open
Solar2004 wants to merge 1 commit into
aannoo:mainfrom
Solar2004:feat/dead-agent
Open

feat: auto-detect and mark dead agents on startup#44
Solar2004 wants to merge 1 commit into
aannoo:mainfrom
Solar2004:feat/dead-agent

Conversation

@Solar2004
Copy link
Copy Markdown

Summary

On startup, hcom now scans all non-inactive instances with tracked PIDs. If the PID is no longer alive (e.g. after system reboot), it saves a life.stopped snapshot (compatible with hcom r <name>) and cleans up bindings. Hook-based agents without PIDs are handled by existing heartbeat staleness detection.

Changes

  • mark_dead_instances() in src/instance_lifecycle.rs — PID-based dead detection
  • Called from main.rs before router::dispatch()

On startup, hcom now scans all non-inactive instances with tracked PIDs.
If the PID is no longer alive (e.g. after system reboot), it saves a
life.stopped snapshot (compatible with hcom r <name>) and cleans up
bindings. Hook-based agents without PIDs are handled by existing
heartbeat staleness detection.

- mark_dead_instances() in instance_lifecycle.rs
- Called from main.rs before router::dispatch()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant