From 1e928e1603ec29ea6c640c261ddd15c25d6e7583 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 20 Mar 2026 22:10:23 -0700 Subject: [PATCH] Remove the Stop hook for activity idle tracking The idle state is now determined by the absence of activity heartbeats rather than an explicit hook signal, which is more reliable when the process exits unexpectedly. --- src/vm.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vm.ts b/src/vm.ts index 6e1728d..5417215 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -220,7 +220,6 @@ async function configureEnvironment(home: string, apiKey: string): Promise const hooks = { UserPromptSubmit: [{ hooks: [{ type: "command", command: `${activityBin} active` }] }], PreToolUse: [{ hooks: [{ type: "command", command: `${activityBin} active` }] }], - Stop: [{ hooks: [{ type: "command", command: `${activityBin} idle` }] }], } const statusLine = { type: "command", command: `/home/${USER}/.local/bin/sandlot-statusline` } const settingsJson = JSON.stringify({ apiKeyHelper: "~/.claude/api-key-helper.sh", skipDangerousModePermissionPrompt: true, hooks, statusLine })