@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,
|