Files
airc/public/index.html
T
Tommi Kyntola 8662634e69 Add attention detection: surface and follow panes whose agent needs you
Watch other tmux panes for a coding agent that has stopped and needs
interaction (blocked on a prompt, or finished and awaiting input), and
surface it in both clients as tap-to-switch chips plus an opt-in auto
toggle that follows the most urgent pane. Switching only moves the
mirrored view, never the user's real tmux focus.

Detection is hybrid: a viewer-gated server scan classifies each non-shell
pane via per-agent recognizers (src/detect.js, Claude Code + Codex),
debounced to avoid mid-render flicker; an optional control-gated hook
endpoint (POST /api/agent/event) lets agents report state exactly and
overrides the screen for 15s. Recognizers are pinned by fixture-based
unit tests (node --test test/) since agent TUIs drift.

Signatures were locked against live captures, not assumptions: current
Claude Code has no "esc to interrupt" string (busy = the spinner/token
line); that string is Codex's busy marker.
2026-06-22 09:28:14 +03:00

62 lines
2.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>airc tmux remote</title>
<link rel="stylesheet" href="/app.css">
</head>
<body class="theme-dark">
<header id="strip">
<span id="dot" class="dot"></span>
<span id="state">connecting</span>
<button id="pane-label" title="pick pane">...</button>
<span id="note"></span>
<span id="alerts" hidden></span>
<span id="dashboard"></span>
<span class="spacer"></span>
<button id="auto-toggle" title="follow the pane that needs you" hidden>auto</button>
<button id="font-minus">A-</button>
<button id="font-plus">A+</button>
<button id="font-fit" class="active">Fit</button>
<button id="controls-toggle" hidden>ctrl</button>
<button id="theme-toggle">day</button>
<button id="pause-toggle">pause</button>
</header>
<main id="term-wrap">
<pre id="term"></pre>
<div id="cursor" hidden></div>
</main>
<footer id="control-bar" hidden>
<input id="control-text" type="text" autocomplete="off" autocapitalize="off" spellcheck="false" placeholder="text">
<button id="control-send">send</button>
<div id="control-ctrl-wrap">
<button id="control-ctrl" title="control keys" aria-haspopup="true" aria-expanded="false">⌃</button>
<div id="control-ctrl-menu" hidden>
<button data-key="Escape">Esc</button>
<button data-key="Tab">Tab</button>
<button data-key="Backspace">BS</button>
<button data-key="C-b">^B</button>
<button data-key="C-c">^C</button>
<button data-key="C-u">^U</button>
<button data-key="C-w">^W</button>
<button data-key="C-d">^D</button>
<button data-key="C-l">^L</button>
<button data-key="C-r">^R</button>
</div>
</div>
<button id="control-up">Up</button>
<button id="control-down">Down</button>
<button id="control-enter">Enter</button>
</footer>
<div id="picker" hidden>
<div id="picker-box">
<div id="picker-title">panes</div>
<div id="picker-list"></div>
<button id="picker-close">close</button>
</div>
</div>
<script src="/app.js"></script>
</body>
</html>