claude-code-remote-pilot 0.4.7 → 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 +10 -1
- package/bin/claude-pilot.js +12 -0
- package/lib/ui.html +17 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.4.
|
|
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`.
|
package/bin/claude-pilot.js
CHANGED
|
@@ -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);
|
|
@@ -586,6 +595,11 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
|
|
|
586
595
|
<div className="detail-meta" style={{ maxWidth: 480, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{session.path}</div>
|
|
587
596
|
</div>
|
|
588
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
|
+
)}
|
|
589
603
|
{!isOffline && (
|
|
590
604
|
<button className="btn btn-sm" style={{ color: 'var(--error)' }} onClick={handleKill} disabled={killing}>
|
|
591
605
|
{Icons.trash} {killing ? 'Ending…' : 'End'}
|
|
@@ -602,7 +616,9 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
|
|
|
602
616
|
<span className="terminal-dot" style={{ background: '#febc2e' }} />
|
|
603
617
|
<span className="terminal-dot" style={{ background: '#28c840' }} />
|
|
604
618
|
<span className="terminal-title">{session.name}</span>
|
|
605
|
-
<span style={{
|
|
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} />
|
|
606
622
|
</div>
|
|
607
623
|
|
|
608
624
|
<div className="terminal-body" ref={terminalRef}>
|
package/package.json
CHANGED