@commonlyai/cli 0.1.199 → 0.1.200

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonlyai/cli",
3
- "version": "0.1.199",
3
+ "version": "0.1.200",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI — connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -537,6 +537,11 @@ const runClaude = ({
537
537
  stallKill = setTimeout(() => {
538
538
  killProcessTree(proc, 'SIGKILL', treeIo(processTable));
539
539
  sweepStallSurvivors();
540
+ // A pipe holder the snapshot missed (ps failed, or it was reparented
541
+ // before the stall) would still keep close from firing. Dropping our
542
+ // ends of the pipes bounds every stalled turn at window plus grace.
543
+ proc.stdout?.destroy?.();
544
+ proc.stderr?.destroy?.();
540
545
  }, stallKillGraceMs);
541
546
  stallKill.unref?.();
542
547
  },
@@ -1262,7 +1267,7 @@ export default {
1262
1267
  // TASK-440: the context this turn left, read from the transcript the
1263
1268
  // child wrote under its own env (an isolated HOME for public seats).
1264
1269
  const contextTokens = claudeContextTokens({
1265
- cwd: ctx.cwd, sessionId, configDir: claudeConfigDirFor({ ...env, HOME: childHome || env?.HOME }),
1270
+ cwd: physicalPath(ctx.cwd), sessionId, configDir: claudeConfigDirFor({ ...env, HOME: childHome || env?.HOME }),
1266
1271
  });
1267
1272
  return { text: stdout.trim(), newSessionId: sessionId, contextTokens };
1268
1273
  } catch (err) {
@@ -1324,7 +1329,7 @@ export default {
1324
1329
  survivorIo: ctx._survivorIo,
1325
1330
  });
1326
1331
  const contextTokens = claudeContextTokens({
1327
- cwd: ctx.cwd, sessionId: freshId,
1332
+ cwd: physicalPath(ctx.cwd), sessionId: freshId,
1328
1333
  configDir: claudeConfigDirFor({ ...retry.env, HOME: retry.childHome || retry.env?.HOME }),
1329
1334
  });
1330
1335
  return { text: stdout.trim(), newSessionId: freshId, contextTokens };