claude-code-remote-pilot 0.4.6 → 0.4.8

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/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## 0.4.6 — 2026-05-06
3
+ ## 0.4.8 — 2026-05-06
4
+
5
+ ### Added
6
+ - **Startup prompt**: asks "Open web dashboard? (Y/n)" during setup — default yes. Starts the server on `127.0.0.1:3742` and opens the browser automatically.
7
+ - **Terminal header hint**: shows `Ctrl+B D · detach` in the terminal header bar as a reminder to detach from tmux without killing the session.
8
+ - **"⊞ New Terminal" button**: copies `tmux attach -t <name>` to clipboard. Button briefly shows "✓ Copied" as confirmation.
9
+
10
+ ---
11
+
12
+ ## 0.4.7 — 2026-05-06
4
13
 
5
14
  ### Fixed
6
15
  - False `limit` status when a session has recovered from a prior limit hit. Root cause: `LIMIT_RE` was tested against the full 500-line tmux scrollback, so old limit text in scroll history kept re-triggering limit detection even after the session resumed. Now `LIMIT_RE` is checked against only the last 15 non-empty lines (`limitWindow`), matching the same windowed approach used for `RESPONSE_RE` and `RUNNING_RE`.
@@ -393,6 +393,18 @@ ${HELP}`);
393
393
  console.log(` tmux attach -t ${session.name}\n`);
394
394
  }
395
395
 
396
+ const openWeb = await question(setupRl, 'Open web dashboard? (Y/n) ');
397
+ if (isYes(openWeb)) {
398
+ const webServer = new WebServer(manager, 3742, '127.0.0.1');
399
+ manager._webServer = webServer;
400
+ webServer.start();
401
+ const url = 'http://127.0.0.1:3742';
402
+ console.log(` ✓ Web dashboard at ${url}`);
403
+ const opener = process.platform === 'darwin' ? 'open' : 'xdg-open';
404
+ spawn(opener, [url], { stdio: 'ignore', detached: true }).unref();
405
+ console.log('');
406
+ }
407
+
396
408
  setupRl.close();
397
409
 
398
410
  console.log(' Type help for commands.\n');
package/lib/ui.html CHANGED
@@ -498,10 +498,19 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
498
498
  const [msg, setMsg] = useState('');
499
499
  const [sending, setSending] = useState(false);
500
500
  const [killing, setKilling] = useState(false);
501
+ const [copyOk, setCopyOk] = useState(false);
501
502
  const terminalRef = useRef(null);
502
503
  const inputRef = useRef(null);
503
504
  const isOffline = session.status === 'offline';
504
505
 
506
+ const copyAttachCmd = () => {
507
+ const cmd = `tmux attach -t ${session.name}`;
508
+ navigator.clipboard?.writeText(cmd).then(() => {
509
+ setCopyOk(true);
510
+ setTimeout(() => setCopyOk(false), 2000);
511
+ }).catch(() => {});
512
+ };
513
+
505
514
  // Auto-focus input on mount and when session changes
506
515
  useEffect(() => {
507
516
  if (!isOffline) setTimeout(() => inputRef.current?.focus(), 50);
@@ -539,7 +548,8 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
539
548
  } catch {
540
549
  } finally {
541
550
  setSending(false);
542
- inputRef.current?.focus();
551
+ // Defer focus until after React re-enables the input (disabled={sending})
552
+ setTimeout(() => inputRef.current?.focus(), 0);
543
553
  }
544
554
  };
545
555
 
@@ -551,7 +561,7 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
551
561
  body: JSON.stringify({ key }),
552
562
  });
553
563
  } catch {}
554
- inputRef.current?.focus();
564
+ setTimeout(() => inputRef.current?.focus(), 0);
555
565
  };
556
566
 
557
567
  const handleKeyDown = (e) => {
@@ -585,6 +595,11 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
585
595
  <div className="detail-meta" style={{ maxWidth: 480, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{session.path}</div>
586
596
  </div>
587
597
  <div className="detail-actions">
598
+ {!isOffline && (
599
+ <button className="btn btn-sm" onClick={copyAttachCmd} title={`tmux attach -t ${session.name}`}>
600
+ {copyOk ? '✓ Copied' : '⊞ New Terminal'}
601
+ </button>
602
+ )}
588
603
  {!isOffline && (
589
604
  <button className="btn btn-sm" style={{ color: 'var(--error)' }} onClick={handleKill} disabled={killing}>
590
605
  {Icons.trash} {killing ? 'Ending…' : 'End'}
@@ -601,7 +616,9 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
601
616
  <span className="terminal-dot" style={{ background: '#febc2e' }} />
602
617
  <span className="terminal-dot" style={{ background: '#28c840' }} />
603
618
  <span className="terminal-title">{session.name}</span>
604
- <span style={{ marginLeft: 'auto' }}><StatusPill status={session.status} /></span>
619
+ <span style={{ flex: 1 }} />
620
+ {!isOffline && <span style={{ fontSize: 10, color: 'oklch(42% 0.018 50)', fontFamily: 'var(--font-mono)', marginRight: 10 }}>Ctrl+B D · detach</span>}
621
+ <StatusPill status={session.status} />
605
622
  </div>
606
623
 
607
624
  <div className="terminal-body" ref={terminalRef}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-remote-pilot",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Interactive Claude Code supervisor — spawn and monitor multiple Claude sessions from a single terminal.",
5
5
  "type": "commonjs",
6
6
  "bin": {