feat(hooks): add json-error-recovery hook to prevent infinite retry loops

This commit is contained in:
bowtiedswan
2026-01-13 10:02:21 +02:00
parent 6208c07809
commit 86f2a93fc9
7 changed files with 121 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ export function createToolExecuteAfterHandler(args: {
await hooks.categorySkillReminder?.["tool.execute.after"]?.(input, output)
await hooks.interactiveBashSession?.["tool.execute.after"]?.(input, output)
await hooks.editErrorRecovery?.["tool.execute.after"]?.(input, output)
await hooks.jsonErrorRecovery?.["tool.execute.after"]?.(input, output)
await hooks.delegateTaskRetry?.["tool.execute.after"]?.(input, output)
await hooks.atlasHook?.["tool.execute.after"]?.(input, output)
await hooks.taskResumeInfo?.["tool.execute.after"]?.(input, output)