create-claude-workspace 1.1.26 → 1.1.27
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.
|
@@ -270,7 +270,7 @@ async function main() {
|
|
|
270
270
|
const existing = readCheckpoint(opts.projectDir);
|
|
271
271
|
if (opts.resume && existing) {
|
|
272
272
|
checkpoint = existing;
|
|
273
|
-
log.info(`Resuming from checkpoint: iteration ${checkpoint.iteration}, task ${checkpoint.lastTaskSeen ?? 'unknown'}`);
|
|
273
|
+
log.info(`Resuming from checkpoint: iteration ${checkpoint.iteration}, task ${checkpoint.lastTaskSeen ?? 'unknown'}${existing.lastSessionId ? `, session ${existing.lastSessionId}` : ''}`);
|
|
274
274
|
}
|
|
275
275
|
else {
|
|
276
276
|
if (existing && !opts.resume) {
|
|
@@ -278,8 +278,9 @@ async function main() {
|
|
|
278
278
|
}
|
|
279
279
|
checkpoint = emptyCheckpoint();
|
|
280
280
|
}
|
|
281
|
-
//
|
|
282
|
-
|
|
281
|
+
// Resume last Claude session: explicit --resume-session takes priority,
|
|
282
|
+
// otherwise --resume auto-continues the session that was interrupted by CTRL+C.
|
|
283
|
+
let resumeSessionId = opts.resumeSession ?? (opts.resume && existing?.lastSessionId ? existing.lastSessionId : null);
|
|
283
284
|
let resumePrompt = null;
|
|
284
285
|
setupSignals(opts, log, checkpoint);
|
|
285
286
|
log.info('---');
|