claude-code-remote-pilot 0.2.0 → 0.2.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.
@@ -110,6 +110,7 @@ function renderTable(sessions) {
110
110
  // ─── watch mode ───────────────────────────────────────────────────────────────
111
111
 
112
112
  function startWatch(manager, rl) {
113
+ rl.removeAllListeners('close');
113
114
  rl.close();
114
115
  if (process.stdin.isTTY) process.stdin.setRawMode(true);
115
116
  process.stdin.resume();
@@ -21,6 +21,11 @@ class SessionManager {
21
21
  const sessionName = sanitizeName(name || path.basename(resolved));
22
22
  if (this.sessions.has(sessionName)) throw new Error(`Session "${sessionName}" already exists.`);
23
23
 
24
+ // Kill stale tmux session from a previous crashed run
25
+ try { execSync(`tmux has-session -t "${sessionName}"`, { stdio: 'ignore' });
26
+ execSync(`tmux kill-session -t "${sessionName}"`, { stdio: 'ignore' });
27
+ } catch {}
28
+
24
29
  execSync(`tmux new-session -d -s "${sessionName}" -c "${resolved}" "claude"`, { stdio: 'ignore' });
25
30
 
26
31
  const session = { name: sessionName, path: resolved, status: 'running', startedAt: new Date(), resumeAt: null };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-remote-pilot",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Interactive Claude Code supervisor — spawn and monitor multiple Claude sessions from a single terminal.",
5
5
  "type": "commonjs",
6
6
  "bin": {