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.
- package/bin/claude-pilot.js +1 -0
- package/lib/SessionManager.js +5 -0
- package/package.json +1 -1
package/bin/claude-pilot.js
CHANGED
|
@@ -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();
|
package/lib/SessionManager.js
CHANGED
|
@@ -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