Clear activity after session and on tool failure
This commit is contained in:
parent
3631411ce2
commit
fa45ea43ce
|
|
@ -137,5 +137,7 @@ export async function action(
|
|||
await vm.claude(worktreeAbs, { prompt, print: opts.print })
|
||||
}
|
||||
|
||||
await vm.clearActivity(worktreeAbs, branch)
|
||||
|
||||
if (opts.save !== false) await saveChanges(worktreeAbs, branch)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,5 +33,7 @@ export async function action(
|
|||
await vm.claude(session.worktree, { prompt, print: opts.print, continue: true })
|
||||
}
|
||||
|
||||
await vm.clearActivity(session.worktree, branch)
|
||||
|
||||
if (opts.save !== false) await saveChanges(session.worktree, branch)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ async function configureEnvironment(home: string, apiKey: string): Promise<void>
|
|||
const hooks = {
|
||||
UserPromptSubmit: [{ hooks: [{ type: "command", command: `${activityBin} active` }] }],
|
||||
Stop: [{ hooks: [{ type: "command", command: `${activityBin} idle` }] }],
|
||||
PostToolUseFailure: [{ hooks: [{ type: "command", command: `${activityBin} idle` }] }],
|
||||
}
|
||||
const settingsJson = JSON.stringify({ apiKeyHelper: "~/.claude/api-key-helper.sh", skipDangerousModePermissionPrompt: true, hooks })
|
||||
const claudeJson = JSON.stringify({ hasCompletedOnboarding: true, effortCalloutDismissed: true, projects: { "/": { hasTrustDialogAccepted: true } } })
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user