@get-bb/plugin-sdk 0.6.60 → 0.6.68

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.
@@ -445,8 +445,12 @@ function main() {
445
445
  return;
446
446
  }
447
447
  const segments = buildSegments(entries, dialect);
448
- const segmentIndex = claimSegmentIndex(args.state);
449
- let script = segments[segmentIndex] ?? [];
448
+ const diagnosticFork =
449
+ args.dialect === "claude-cli" &&
450
+ process.argv.includes("--fork-session") &&
451
+ process.argv.includes("--no-session-persistence");
452
+ const segmentIndex = diagnosticFork ? null : claimSegmentIndex(args.state);
453
+ let script = segmentIndex === null ? [] : (segments[segmentIndex] ?? []);
450
454
  const log = (text) => process.stderr.write(`[replay-child #${segmentIndex}] ${text}\n`);
451
455
  if (script.length === 0) {
452
456
  log(`no recorded segment ${segmentIndex} (recording has ${segments.length}); answering generically`);