claude-code-session-manager 0.2.2 → 0.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-session-manager",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Local cockpit for Claude Code CLI sessions — terminal + full config surface.",
5
5
  "type": "module",
6
6
  "main": "src/main/index.cjs",
@@ -51,12 +51,18 @@ function relaunchViaNpx() {
51
51
  const npxPath = resolveNpx();
52
52
  if (!npxPath) throw new Error('npx not found on PATH');
53
53
 
54
+ fs.mkdirSync(path.dirname(REBOOT_LOG), { recursive: true });
54
55
  const logFd = fs.openSync(REBOOT_LOG, 'a');
56
+ // `--yes` auto-accepts install prompt; `@latest` forces registry resolution
57
+ // of the dist-tag so a freshly published version is picked up.
55
58
  const child = spawn(npxPath, ['--yes', 'claude-code-session-manager@latest'], {
56
59
  detached: true,
57
60
  stdio: ['ignore', logFd, logFd],
58
61
  env: process.env,
59
62
  });
63
+ // fd was dup'd into the child at spawn time; closing the parent copy frees
64
+ // our file table slot and ensures the child owns the lifetime of the log.
65
+ try { fs.closeSync(logFd); } catch { /* */ }
60
66
 
61
67
  if (!child.pid) throw new Error('spawn returned no pid');
62
68
  logReboot(`spawned ${npxPath} pid=${child.pid}`);