opencode-immune 1.0.4 → 1.0.5

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 +2 -2
  2. package/package.json +1 -1
package/dist/plugin.js CHANGED
@@ -784,8 +784,6 @@ const RATE_LIMIT_MESSAGE_PATTERN = /too many requests|rate_limit|rate limit/i;
784
784
  function createMultiCycleHandler(state) {
785
785
  return async (input, output) => {
786
786
  const sessionID = input.sessionID;
787
- if (!isManagedRootUltraworkSession(state, sessionID))
788
- return;
789
787
  // Extract text content from parts
790
788
  const parts = output.parts ?? [];
791
789
  let messageContent = "";
@@ -817,6 +815,8 @@ function createMultiCycleHandler(state) {
817
815
  state.retryTimers.set(sessionID, timer);
818
816
  }
819
817
  }
818
+ if (!isManagedRootUltraworkSession(state, sessionID))
819
+ return;
820
820
  // ── PRE_COMMIT: execute /commit ──
821
821
  if (messageContent.includes(PRE_COMMIT_MARKER) && !state.commitPending) {
822
822
  state.commitPending = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-immune",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "OpenCode plugin: session recovery, auto-retry, multi-cycle automation, context monitoring",
5
5
  "exports": {
6
6
  "./server": "./dist/plugin.js"