Skip to content

fix: detect VS Code Copilot via CLAUDE_PLUGIN_ROOT fallback (#528)#579

Open
krishrathi1 wants to merge 1 commit into
DietrichGebert:mainfrom
krishrathi1:fix/copilot-detection-528
Open

fix: detect VS Code Copilot via CLAUDE_PLUGIN_ROOT fallback (#528)#579
krishrathi1 wants to merge 1 commit into
DietrichGebert:mainfrom
krishrathi1:fix/copilot-detection-528

Conversation

@krishrathi1

Copy link
Copy Markdown
Contributor

VS Code Copilot never sets COPILOT_PLUGIN_DATA, only CLAUDE_PLUGIN_ROOT (pointed at an .vscode/agent-plugins/... install path), so isCopilot was false and ponytail assumed native Claude Code — emitting the statusline setup nudge, which VS Code Copilot doesn't read. Also guard stateDir: it was built from the same unset COPILOT_PLUGIN_DATA whenever isCopilot resolved via this new fallback, so fall back to getClaudeDir() there too.

…Gebert#528)

VS Code Copilot never sets COPILOT_PLUGIN_DATA, only CLAUDE_PLUGIN_ROOT
(pointed at an .vscode/agent-plugins/... install path), so isCopilot was
false and ponytail assumed native Claude Code — emitting the statusline
setup nudge, which VS Code Copilot doesn't read. Also guard stateDir:
it was built from the same unset COPILOT_PLUGIN_DATA whenever isCopilot
resolved via this new fallback, so fall back to getClaudeDir() there too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant