From c3d74be01e6c3485f50f74e1ff566499ebe092b0 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 16 May 2026 02:01:51 +0300 Subject: fix: detect copilot process name fixes #118 --- src/detect.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 { "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)); } -- cgit v1.2.3