opencode-immune 1.0.14 → 1.0.15

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/plugin.js +5 -0
  2. package/package.json +1 -1
package/dist/plugin.js CHANGED
@@ -497,6 +497,11 @@ function createSessionRecoveryEvent(state) {
497
497
  if (recovery.phase !== "ARCHIVE: DONE") {
498
498
  // Register this root session as managed so retry/recovery works
499
499
  await addManagedUltraworkSession(state, sessionID);
500
+ // Skip sending AUTO-RESUME if already sent from plugin init
501
+ if (state.autoResumeAttempted) {
502
+ console.log(`[opencode-immune] Auto-resume already sent from plugin init, skipping duplicate for session ${sessionID}.`);
503
+ return;
504
+ }
500
505
  setTimeout(async () => {
501
506
  try {
502
507
  await state.input.client.session.promptAsync({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-immune",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "OpenCode plugin: session recovery, auto-retry, multi-cycle automation, context monitoring",
5
5
  "exports": {
6
6
  "./server": "./dist/plugin.js"