Repository navigation
v0.7.7 — Orphaned MCP server fix
What's new
Fix
-
Orphaned MCP servers eliminated — when a session ended via SIGKILL (idle/absolute timeout or `/reset`), only the top-level agent-runner process was killed. MCP servers spawned inside it by the Claude Agent SDK had no parent and were left running, accumulating over time as stale processes.
Agent processes now spawn with `detached: true`, creating a dedicated process group. Timeout kills and `/reset` now use `process.kill(-pid, signal)` to tear down the entire group at once — agent-runner and all MCP children together.
To update: run `/update-ghostclaw` in your main chat.