opencode-immune 1.0.16 → 1.0.17
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 -5
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -931,6 +931,11 @@ function createMultiCycleHandler(state) {
|
|
|
931
931
|
if (!messageContent)
|
|
932
932
|
return;
|
|
933
933
|
const messageRole = output.message?.role;
|
|
934
|
+
// ── ALL_CYCLES_COMPLETE: clear ultrawork marker (checked before managed session guard) ──
|
|
935
|
+
if (messageContent.includes(ALL_CYCLES_COMPLETE_MARKER)) {
|
|
936
|
+
await clearUltraworkMarker(state);
|
|
937
|
+
console.log("[opencode-immune] Multi-Cycle: ALL_CYCLES_COMPLETE detected, ultrawork marker cleared.");
|
|
938
|
+
}
|
|
934
939
|
if (!isManagedRootUltraworkSession(state, sessionID))
|
|
935
940
|
return;
|
|
936
941
|
const managedSession = getManagedSession(state, sessionID);
|
|
@@ -951,11 +956,6 @@ function createMultiCycleHandler(state) {
|
|
|
951
956
|
});
|
|
952
957
|
}
|
|
953
958
|
}
|
|
954
|
-
// ── ALL_CYCLES_COMPLETE: clear ultrawork marker ──
|
|
955
|
-
if (messageContent.includes(ALL_CYCLES_COMPLETE_MARKER)) {
|
|
956
|
-
await clearUltraworkMarker(state);
|
|
957
|
-
console.log("[opencode-immune] Multi-Cycle: ALL_CYCLES_COMPLETE detected, ultrawork marker cleared.");
|
|
958
|
-
}
|
|
959
959
|
// ── PRE_COMMIT: execute /commit ──
|
|
960
960
|
if (messageContent.includes(PRE_COMMIT_MARKER) && !state.commitPending) {
|
|
961
961
|
state.commitPending = true;
|