killeros 2.0.11 → 2.0.12

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to KillerOS are documented here.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [2.0.12] - 2026-08-18
8
+
9
+ ### Fixed
10
+
11
+ - Resumed active goals exactly once after Pi reports automatic compaction complete.
12
+
7
13
  ## [2.0.11] - 2026-08-17
8
14
 
9
15
  ### Fixed
package/README.md CHANGED
@@ -31,7 +31,7 @@ pi install git:github.com/KyrosHendrix/pi-KillerOS
31
31
  Pin an install to a release:
32
32
 
33
33
  ```bash
34
- pi install git:github.com/KyrosHendrix/pi-KillerOS@v2.0.11
34
+ pi install git:github.com/KyrosHendrix/pi-KillerOS@v2.0.12
35
35
  ```
36
36
 
37
37
  Add `-l` to either command for a project-only install. Restart Pi after installing.
package/killeros/goals.ts CHANGED
@@ -468,8 +468,6 @@ function completeAutomaticCompaction(
468
468
  runtime.automaticCompaction = undefined;
469
469
  return;
470
470
  }
471
- runtime.automaticCompaction = "completed";
472
- if (runtime.goalTurnInFlight || !ctx.isIdle()) return;
473
471
  runtime.automaticCompaction = undefined;
474
472
  setImmediate(() => scheduleGoalContinuation(pi, runtime, initState, ctx));
475
473
  }
@@ -1058,12 +1056,7 @@ export function registerGoalSettlement(
1058
1056
  const reason = runtime.lastError || "the agent turn was aborted";
1059
1057
  runtime.lastStopReason = undefined;
1060
1058
  runtime.lastError = undefined;
1061
- if (runtime.automaticCompaction !== undefined) {
1062
- if (runtime.automaticCompaction === "completed") {
1063
- completeAutomaticCompaction(pi, runtime, initState, ctx);
1064
- }
1065
- return;
1066
- }
1059
+ if (runtime.automaticCompaction !== undefined) return;
1067
1060
  pauseGoalForPossibleManualCompaction(pi, runtime, ctx, reason);
1068
1061
  return;
1069
1062
  }
@@ -1080,10 +1073,7 @@ export function registerGoalSettlement(
1080
1073
  });
1081
1074
 
1082
1075
  pi.on("session_compact", (event, ctx) => {
1083
- if (runtime.automaticCompaction !== undefined) {
1084
- completeAutomaticCompaction(pi, runtime, initState, ctx);
1085
- return;
1086
- }
1076
+ if (runtime.automaticCompaction !== undefined) return;
1087
1077
  if (event.reason !== "manual") return;
1088
1078
  recoverGoalAfterManualCompaction(pi, runtime, initState, ctx);
1089
1079
  });
@@ -57,7 +57,7 @@ export interface GoalRuntime {
57
57
  continuationHeld: boolean;
58
58
  goalTurnInFlight: boolean;
59
59
  agentEndObserved: boolean;
60
- automaticCompaction?: "pending" | "completed";
60
+ automaticCompaction?: "pending";
61
61
  persistenceRetryNeeded: boolean;
62
62
  lastStopReason?: string;
63
63
  lastError?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "killeros",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "TUI, goals, and workflow automation for the Pi coding agent",
5
5
  "type": "module",
6
6
  "keywords": [