mirror of
https://github.com/Kynde/airc.git
synced 2026-10-20 08:31:38 +02:00
Replace the single config.session with a sessions[] list, resolved by precedence (repeatable --session > file sessions[] > legacy session string > default). config.session is kept as the primary so singular readers keep working. The view selection becomes one value of two kinds: a session (follow its active pane) or a specific pane id (pin). Pane ids are tmux-server-global, so capture never needs the session, but the followed session is carried alongside a pin so a vanished pin falls back to its own session's active pane rather than blanking. A dead followed session switches to a surviving one; only zero live sessions surfaces an error. Server: thread requestedSession through captureFrame, the WS view message, the HTTP frame query, and input routing; report the resolved session in frame payloads and etags; list panes across all sessions tagged by session; healthz reports liveSessions and is ok if any is up. Clients: grouped pane picker with session headers (follow) and indented pane rows (pin) in both the browser and Android app, persisting the followed session.