diff --git a/src/vm.ts b/src/vm.ts index 0b2b736..5a4bb29 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -204,8 +204,8 @@ async function configureEnvironment(home: string, apiKey: string): Promise const activityBin = `/home/${USER}/.local/bin/sandlot-activity` const hooks = { UserPromptSubmit: [{ hooks: [{ type: "command", command: `${activityBin} active` }] }], + PreToolUse: [{ hooks: [{ type: "command", command: `${activityBin} active` }] }], Stop: [{ hooks: [{ type: "command", command: `${activityBin} idle` }] }], - PostToolUseFailure: [{ 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 })