opencode-auto-resume 1.0.8 → 1.0.9

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 +8 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -710,12 +710,14 @@ var AutoResumePlugin = async (ctx, options) => {
710
710
  },
711
711
  config: async () => {
712
712
  log("info", `opencode-auto-resume config OK`);
713
- ctx.ui.toast({
714
- title: "Auto-Resume Plugin",
715
- message: `Loaded with ${chunkTimeoutMs}ms timeout, ${loopMaxContinues} loop attempts`,
716
- variant: "success",
717
- duration: 5000
718
- });
713
+ if (ctx.ui && typeof ctx.ui.toast === "function") {
714
+ ctx.ui.toast({
715
+ title: "Auto-Resume Plugin",
716
+ message: `Loaded with ${chunkTimeoutMs}ms timeout, ${loopMaxContinues} loop attempts`,
717
+ variant: "success",
718
+ duration: 5000
719
+ });
720
+ }
719
721
  }
720
722
  };
721
723
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-auto-resume",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "OpenCode plugin that automatically resumes stalled LLM sessions when thinking/streaming freezes mid-generation.",
5
5
  "keywords": [
6
6
  "opencode",