Repository navigation
fix: detect GitHub Copilot CLI via copilot binary and ~/.copilot - #338
Open
chencen-cz wants to merge 1 commit into
Open
chencen-cz wants to merge 1 commit into
chencen-cz wants to merge 1 commit into
Conversation
- Set binary="copilot" on the GitHub Copilot AgentTarget so installations on PATH are detected - Add _copilot_config_dir() preferring ~/.copilot (matching mcp and subagent paths) while falling back to legacy ~/.config/github-copilot - Add unit tests covering binary detection, ~/.copilot preference, and legacy fallback Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
chencen-cz
force-pushed
the
fix/copilot-detection
branch
from
December 2, 2026 03:06
7348a95 to
1ca62a1
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes GitHub Copilot detection in
semble installso GitHub Copilot CLI (and the GitHub Copilot desktop app) are properly detected.Problem
In
src/semble/installer/agents.py, thecopilotAgentTargethad:binary=None(missing"copilot"binary lookup onPATH)config_dir=_HOME / ".config" / "github-copilot"(legacy IDE/Vim path), whereasmcpandsubagent_pathalready target~/.copilot/....As a result, users running GitHub Copilot CLI (whose config directory is
~/.copilot) sawGitHub Copilotlisted as undetected duringsemble install.Changes
binary="copilot"on thecopilotAgentTarget._copilot_config_dir()(mirroring_xdg_jsonc_path()) to check~/.copilotfirst and fall back to legacy~/.config/github-copilotfor backwards compatibility.tests/test_installer.pyverifyingbinary="copilot",~/.copilotpreference, and~/.config/github-copilotfallback.Verification
pytest tests/test_installer.py— 104 passedruff check src/semble/installer/agents.py tests/test_installer.py— all checks passedmypy src/semble/installer/agents.py— no issues found