fix: detect copilot process name

fixes #118
This commit is contained in:
Ogulcan Celik
2026-05-16 02:01:51 +03:00
parent 16e10aa921
commit c3d74be01e
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
## Unreleased
### Changed
- Moved next-release changelog work into `.pi/docs/CHANGELOG.md` and replaced the end-of-cycle draft prompt with a pre-release audit flow that verifies changelog and documentation coverage before release.
### Fixed
- GitHub Copilot is now correctly detected when its process name is `copilot`.
## [0.5.9] - 2026-05-15
+2 -1
View File
@@ -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));
}