mirror of
https://github.com/Kynde/airc.git
synced 2026-10-20 08:31:38 +02:00
Recognize GitHub Copilot CLI panes alongside Claude Code and Codex, keyed on live `tmux capture-pane -p` captures: the "Working esc cancel" busy footer (its spinner glyph animates, so match the stable text), the boxed "Do you want to run…?" approval prompt, and the "/ commands · ? help" ready footer. Fixtures and tests pin all three states. Order the Copilot detector ahead of Claude: Copilot's "❯ 1. Yes" approval menu also matches CLAUDE_CHROME, so a waiting Copilot pane was being misclassified as Claude. The `copilot` foreground command now routes it first; a regression test asserts this holds even when the command hint is a wrapper. Copilot CLI has no notification/hook mechanism, so it relies on the zero-config screen scan alone (noted in docs/attention.md).