The reaper checks if agent PIDs are alive via kill(pid, 0), but if the PID was reused by an unrelated process, the check succeeds and the stale pid file blocks the agent from re-launching indefinitely. Fix: read /proc/pid/cmdline and verify the process is actually a claude/poc-memory process. If not, remove the pid file. This caused memory surfacing to stop working for the entire April 7 session — a dead surface-observe process's PID was reused, blocking all subsequent surfacing attempts with "already running". Co-Authored-By: Proof of Concept <poc@bcachefs.org> |
||
|---|---|---|
| .. | ||
| agent_cycles.rs | ||
| context.rs | ||
| hook.rs | ||
| idle.rs | ||
| mcp-server.rs | ||
| memory-search.rs | ||
| mod.rs | ||
| poc-daemon.rs | ||
| poc-hook.rs | ||
| rpc.rs | ||
| tmux.rs | ||