opencode-auto-resume 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14461,8 +14461,12 @@ var AutoResumePlugin = async (ctx, options) => {
|
|
|
14461
14461
|
const openTodos = (w.todos || []).filter((t) => t.status === "pending" || t.status === "in_progress");
|
|
14462
14462
|
if (openTodos.length > 0 && w.taskCompleteOverrides < maxRetries) {
|
|
14463
14463
|
w.taskCompleteOverrides++;
|
|
14464
|
+
const reminder = buildOpenTodosReminder(w.todos);
|
|
14465
|
+
const blockMsg = `Mark any finished todos complete and do not redo completed work.
|
|
14466
|
+
${reminder}`;
|
|
14464
14467
|
await log("info", `${short(ctx.sessionID)} - task_complete blocked: ${openTodos.length} open todos remain (override ${w.taskCompleteOverrides}/${maxRetries})`);
|
|
14465
|
-
|
|
14468
|
+
await sendContinuePrompt(ctx.sessionID, blockMsg, w);
|
|
14469
|
+
return blockMsg;
|
|
14466
14470
|
}
|
|
14467
14471
|
}
|
|
14468
14472
|
w.toolTextRecovered = true;
|
package/package.json
CHANGED