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.
Files changed (2) hide show
  1. package/dist/index.js +6 -4
  2. 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 reminder...`);
12795
+ await log("info", `${short(sid)} - todos completed but agent hasn't closed them. Sending continue...`);
12796
12796
  const candidate2 = {
12797
- prompt: "Please close all completed todos and finish your message.",
12798
- source: "todo-reminder",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-auto-resume",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "OpenCode plugin that automatically resumes stalled LLM sessions when thinking/streaming freezes mid-generation.",
5
5
  "keywords": [
6
6
  "opencode",