Files
herdr/website/agent-detection/github-copilot.toml
LaneandOgulcan Celik 7a85249617 fix: support esc
interrupt for github copilot (#1120)

* fix: support esc interrupt for github copilot

Github Copilot CLI version v1.0.69-2 introduces the "esc interrupt" prompt.
Update the Github Copilot agent detection manifest to match this prompt and correctly report the agent as working.
Add test cases in tests.rs to verify state detection.
Synchronize the website's copy of the manifest.

refs #1119

* test: clean up github copilot detection rules and tests

Clean up formatting and comments for the github copilot detection rule and tests.

refs #1119

* test: remove copilot manifest literal test

---------

Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
2026-07-07 15:28:50 +03:00

38 lines
805 B
TOML

id = "copilot"
version = "2026.07.07.1"
min_engine_version = 1
updated_at = "2026-07-07T14:15:00Z"
aliases = ["github-copilot", "ghcs"]
[[rules]]
id = "selection_blocker"
state = "blocked"
priority = 300
region = "whole_recent"
visible_blocker = true
all = [
{ any = [
{ contains = ["esc to cancel"] },
{ contains = ["esc cancel"] },
] },
{ any = [
{ contains = ["enter to select"] },
{ contains = ["enter to confirm"] },
{ contains = ["enter to submit"] },
{ contains = ["enter accept"] },
] },
]
[[rules]]
id = "working_cancel_hint"
state = "working"
priority = 100
region = "whole_recent"
visible_working = true
any = [
{ contains = ["esc to cancel"] },
{ contains = ["esc cancel"] },
{ contains = ["esc again to cancel"] },
{ contains = ["esc interrupt"] }
]