Files
airc/test
Tommi Kyntola a5ce13b510 Add Copilot CLI to attention detection
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).
2026-06-22 10:04:40 +03:00
..