@staff0rd/assist 0.419.2 → 0.420.1

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/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.419.2",
9
+ version: "0.420.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -26401,14 +26401,23 @@ function restoreInteractiveSession(id, persisted, base, idle) {
26401
26401
  return notRestoredStub(base, persisted);
26402
26402
  }
26403
26403
  function resumeViaClaude(id, persisted, base, idle) {
26404
- const pty2 = spawnClaude2({
26405
- resumeSessionId: persisted.claudeSessionId,
26406
- prompt: idle ? void 0 : buildResumePrompt(),
26407
- cwd: persisted.cwd,
26408
- sessionId: id
26409
- });
26404
+ const pty2 = spawnClaude2(
26405
+ hasTranscriptOnDisk(persisted) ? {
26406
+ resumeSessionId: persisted.claudeSessionId,
26407
+ prompt: idle ? void 0 : buildResumePrompt(),
26408
+ cwd: persisted.cwd,
26409
+ sessionId: id
26410
+ } : {
26411
+ claudeSessionId: persisted.claudeSessionId,
26412
+ cwd: persisted.cwd,
26413
+ sessionId: id
26414
+ }
26415
+ );
26410
26416
  return idle ? waitingSession(base, persisted, pty2) : runningSession(base, persisted, pty2);
26411
26417
  }
26418
+ function hasTranscriptOnDisk(persisted) {
26419
+ return !!persisted.claudeSessionId && !!findTranscriptPathSync(persisted.cwd, persisted.claudeSessionId);
26420
+ }
26412
26421
  function unrecoverableClaude(id, persisted) {
26413
26422
  return errorSession(
26414
26423
  id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.419.2",
3
+ "version": "0.420.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {