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.
- package/dist/plugin.js +5 -0
- 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({
|