@proagentstore/cli 0.4.138 → 0.4.139

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.
@@ -263,11 +263,11 @@ export class HeadlessSession {
263
263
  // Our own key first, the cloud's nominated predecessor second. See `resumeFrom`. Codex uses
264
264
  // a distinct key namespace: a vendor thread id is not interchangeable with Claude's id.
265
265
  this.claudeSessionId =
266
- config.clientType === "claude"
266
+ config.clientType === "claude" && !config.fresh
267
267
  ? readState(config.statePath, config.id, "claude") ?? (config.resumeFrom ? readState(config.statePath, config.resumeFrom, "claude") : null)
268
268
  : null;
269
269
  this.codexThreadId =
270
- config.clientType === "codex" && this.mode === "stream-json"
270
+ config.clientType === "codex" && this.mode === "stream-json" && !config.fresh
271
271
  ? readCodexState(config.statePath, config.id) ?? (config.resumeFrom ? readCodexState(config.statePath, config.resumeFrom) : null)
272
272
  : null;
273
273
  // AFTER both lines above, because `resumedConversation` reads them: the brief is the fallback,
@@ -202,6 +202,7 @@ export class CodingRuntime {
202
202
  env: input.env,
203
203
  statePath: defaultStatePath(this.reposBaseDir),
204
204
  resumeFrom: input.resumeFrom,
205
+ fresh: input.fresh === true,
205
206
  seed: input.seed,
206
207
  ghScope: input.ghScope,
207
208
  bin: input.bin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proagentstore/cli",
3
- "version": "0.4.138",
3
+ "version": "0.4.139",
4
4
  "description": "CLI for creating, publishing, and running ProAgentStore agents",
5
5
  "license": "MIT",
6
6
  "type": "module",