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
- // If resume-session specified, use it for first iteration
282
- let resumeSessionId = opts.resumeSession;
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('---');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-workspace",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "Scaffold a project with Claude Code agents for autonomous AI-driven development",
5
5
  "type": "module",
6
6
  "bin": {