pi-cohort 5.3.2 → 5.3.3

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.3.3] - 2026-09-07
4
+
5
+ ### Fixed
6
+
7
+ - Nested foreground delegation no longer crashes when a grandchild reports cost progress because child-safe state now initializes the required grand-total accumulator. ([#13](https://github.com/jjuraszek/pi-cohort/issues/13))
8
+
3
9
  ## [5.3.2] - 2026-09-06
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cohort",
3
- "version": "5.3.2",
3
+ "version": "5.3.3",
4
4
  "description": "Delegate Pi work to focused child agents: code review, scouting, implementation, parallel audits, saved chains, and background jobs.",
5
5
  "author": "Jacek Juraszek",
6
6
  "license": "MIT",
@@ -13,6 +13,7 @@ import { SubagentParams } from "./schemas.ts";
13
13
  import { loadConfig } from "./config.ts";
14
14
  import { deriveForwardedFlags } from "../runs/shared/forward-flags.ts";
15
15
  import type { Details, SubagentState } from "../shared/types.ts";
16
+ import { emptyGrandTotal } from "./grand-total.ts";
16
17
 
17
18
  function getSubagentSessionRoot(parentSessionFile: string | null): string {
18
19
  if (parentSessionFile) {
@@ -32,6 +33,7 @@ function createChildSafeState(): SubagentState {
32
33
  baseCwd: "",
33
34
  currentSessionId: null,
34
35
  asyncJobs: new Map(),
36
+ grandTotal: emptyGrandTotal(),
35
37
  foregroundRuns: new Map(),
36
38
  foregroundControls: new Map(),
37
39
  lastForegroundControlId: null,