opencode-auto-resume 1.0.12 → 1.0.13
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 +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12792,10 +12792,10 @@ var AutoResumePlugin = async (ctx, options) => {
|
|
|
12792
12792
|
if (!hasOpenTodos && todos.length > 0) {
|
|
12793
12793
|
w.todoCheckAttempts++;
|
|
12794
12794
|
if (w.todoCheckAttempts >= 2) {
|
|
12795
|
-
await log("info", `${short(sid)} - todos completed but agent hasn't closed them. Sending
|
|
12795
|
+
await log("info", `${short(sid)} - todos completed but agent hasn't closed them. Sending continue...`);
|
|
12796
12796
|
const candidate2 = {
|
|
12797
|
-
prompt: "
|
|
12798
|
-
source: "todo-
|
|
12797
|
+
prompt: "continue",
|
|
12798
|
+
source: "todo-completed-continue",
|
|
12799
12799
|
priority: 1
|
|
12800
12800
|
};
|
|
12801
12801
|
if (!bestCandidate || candidate2.priority < bestCandidate.priority) {
|
|
@@ -12858,8 +12858,10 @@ var AutoResumePlugin = async (ctx, options) => {
|
|
|
12858
12858
|
}
|
|
12859
12859
|
}
|
|
12860
12860
|
async function tryAbortAndResume(sid, w) {
|
|
12861
|
-
if (typeof sid !== "string" || !sid)
|
|
12861
|
+
if (typeof sid !== "string" || !sid || !sid.startsWith("ses_")) {
|
|
12862
|
+
await log("warn", `Invalid sid for abort: ${sid} (must start with "ses_")`);
|
|
12862
12863
|
return false;
|
|
12864
|
+
}
|
|
12863
12865
|
if (w.aborting)
|
|
12864
12866
|
return false;
|
|
12865
12867
|
w.aborting = true;
|
package/package.json
CHANGED