aboutsummaryrefslogtreecommitdiff
path: root/src/detect.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-16 02:01:51 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-16 02:01:51 +0300
commitc3d74be01e6c3485f50f74e1ff566499ebe092b0 (patch)
treea681d6d18610a7cb2d7a561f79abf850bacc22c3 /src/detect.rs
parent16e10aa921711f1343d2af77978b71cbb4e7c461 (diff)
fix: detect copilot process name
fixes #118
Diffstat (limited to 'src/detect.rs')
-rw-r--r--src/detect.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/detect.rs b/src/detect.rs
index 2bd1fea7..9c98a1b9 100644
--- a/src/detect.rs
+++ b/src/detect.rs
@@ -79,7 +79,7 @@ pub fn identify_agent(process_name: &str) -> Option<Agent> {
"cursor" => Some(Agent::Cursor),
"cline" => Some(Agent::Cline),
"opencode" | "open-code" => Some(Agent::OpenCode),
- "github-copilot" | "ghcs" => Some(Agent::GithubCopilot),
+ "copilot" | "github-copilot" | "ghcs" => Some(Agent::GithubCopilot),
"kimi" => Some(Agent::Kimi),
"droid" => Some(Agent::Droid),
"amp" | "amp-local" => Some(Agent::Amp),
@@ -687,6 +687,7 @@ mod tests {
assert_eq!(identify_agent("cline"), Some(Agent::Cline));
assert_eq!(identify_agent("opencode"), Some(Agent::OpenCode));
assert_eq!(identify_agent("kimi"), Some(Agent::Kimi));
+ assert_eq!(identify_agent("copilot"), Some(Agent::GithubCopilot));
assert_eq!(identify_agent("ghcs"), Some(Agent::GithubCopilot));
}