Merge pull request #751 from Momentum96/feat/sisyphus-task-retry

feat(hooks): add sisyphus-task-retry hook for auto-correction
This commit is contained in:
Kenny
2026-01-14 10:57:59 -05:00
committed by GitHub
5 changed files with 265 additions and 2 deletions
+8 -2
View File
@@ -26,6 +26,7 @@ import {
createRalphLoopHook,
createAutoSlashCommandHook,
createEditErrorRecoveryHook,
createSisyphusTaskRetryHook,
createTaskResumeInfoHook,
createStartWorkHook,
createSisyphusOrchestratorHook,
@@ -201,6 +202,10 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
? createEditErrorRecoveryHook(ctx)
: null;
const sisyphusTaskRetry = isHookEnabled("sisyphus-task-retry")
? createSisyphusTaskRetryHook(ctx)
: null;
const startWork = isHookEnabled("start-work")
? createStartWorkHook(ctx)
: null;
@@ -548,8 +553,9 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
await emptyTaskResponseDetector?.["tool.execute.after"](input, output);
await agentUsageReminder?.["tool.execute.after"](input, output);
await interactiveBashSession?.["tool.execute.after"](input, output);
await editErrorRecovery?.["tool.execute.after"](input, output);
await sisyphusOrchestrator?.["tool.execute.after"]?.(input, output);
await editErrorRecovery?.["tool.execute.after"](input, output);
await sisyphusTaskRetry?.["tool.execute.after"](input, output);
await sisyphusOrchestrator?.["tool.execute.after"]?.(input, output);
await taskResumeInfo["tool.execute.after"](input, output);
},
};