ai_tools: ide_plugins can't detect VS Code's built-in GitHub Copilot Chat
Fleet versions
- Discovered: 4.90.0-rc.2608041622 (branch
rc-minor-fleet-v4.90.0) - Reproduced: 4.90.0-rc.2608041622 (branch
rc-minor-fleet-v4.90.0)
Web browser and operating system: N/A โ ai_tools osquery table (fleetd), reproduced on macOS, Windows, and Linux hosts running VS Code 1.130+
๐ฅ Actual behavior
A user with GitHub Copilot Chat actively enabled in VS Code (1.130+, where it ships as a built-in extension) shows zero Copilot-related rows under type='ide_plugins' in the ai_tools table โ on macOS, Windows, and Linux alike.
๐ ๏ธ Expected behavior
An actively-enabled Copilot Chat should be detected and surfaced under ide_plugins, similar to how other IDE plugins (Continue, Cline, JetBrains AI Assistant) are already detected.
๐งโ๐ป Steps to reproduce
These steps:
- [x] Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
- [ ] Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
- Install VS Code 1.130 or later on macOS, Windows, or Linux (Copilot Chat ships as a built-in extension by default on a fresh install).
- Confirm Copilot Chat is present and enabled (default state; also confirm via the app's own bundled
extensions/copilot/package.json, e.g./Applications/Visual Studio Code.app/Contents/Resources/app/extensions/copilot/package.jsonon macOS). - Query
SELECT * FROM ai_tools WHERE type='ide_plugins'; - Observe no Copilot-related row, despite the extension being genuinely bundled and active.
Note: the standalone github.copilot marketplace extension (which the ide_plugins collector's original test plan targeted) is now deprecated by GitHub in favor of github.copilot-chat, and can no longer be installed at all on this VS Code build (blocked by a version conflict with the built-in). This makes the built-in-detection gap the only way this functionality is exercised in practice today.
๐ฏ๏ธ More info (optional)
Root cause: ai_tools's VS Code collector (orbit/pkg/table/ai_tools/internal/ide/vscode.go) only scans the user profile's ~/.vscode/extensions directory. It never checks for extensions bundled directly inside the app's own installation directory, which is where Copilot Chat actually lives once GitHub folded it into a VS Code built-in.
Suggested fix: extend the VS Code collector to also check for built-in bundled extensions inside the app installation directory (e.g. .../resources/app/extensions/copilot/package.json), not just the user profile extensions folder.
Found while QA'ing #47619 (ai_tools fleetd table).
Verdict: โ PASS โ ready to close. Verified end-to-end on real macOS, Windows, and Linux hosts running fleetd built from the RC branch, plus code review, unit tests, and a pre-fix reproduction.
Fix: #50768 "Detect VS Code bundled built-in extensions in ai_tools" (merged to main as b1a20d8)
RC status: cherry-picked into rc-minor-fleetd-v1.59.0 as ee17edf281; git diff rc..main -- orbit/pkg/table/ai_tools/ is empty โ RC code identical to main.
Test environment: Fleet 4.90.0-rc.2607311555 ยท fleetd built from ee17edf281, orbit 26.8.25221, distributed via a local test TUF repo ยท all three agents confirmed byte-identical to / sourced from that build.
Cross-platform live verification
All three hosts returned the Copilot row from a live SELECT ... FROM ai_tools WHERE type='ide_plugins':
| Platform | Host | VS Code | Copilot ext | scope | Reported path |
|---|---|---|---|---|---|
| macOS 26.5.2 (arm64) | reed.localdomain (id 1) |
1.127.0 | 0.55.0 | system | /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/copilot |
| Windows 11 Home 25H2 (x86_64) | cabbage (id 80) |
1.132 (build 1b6a188127) |
0.58.0 | user | C:\Users\xpkoa\AppData\Local\Programs\Microsoft VS Code\1b6a188127\resources\app\extensions\copilot |
| Ubuntu 24.04.3 LTS (aarch64) | ubuntu-gnu-linux-24-04-3 (id 20) |
1.133.0 (deb) | 0.61.0 | system | /usr/share/code/resources/app/extensions/copilot |
Every row: identifier=github.copilot-chat, name=GitHub Copilot, category=coding-assistant, source=vscode, editor_family=vscode, publisher=GitHub. Exactly one row per host โ no duplicates.
Three distinct code paths confirmed on real hardware, two of which were previously fixture-only:
- macOS
.appbundle โContents/Resources/app/extensions. Also confirms the case-insensitive-volume guard works: no second row fromContents/resources/.... - Windows build-id nested layout โ the app tree sits one level below the install dir under a build-id folder, found by the child-probing fallback in
vscode_builtin.go:236-249; previously onlyTestScanVSCodeBuiltinsBuildIDLayout. Also confirms theLocalAppData\Programsper-user root and correctscope: user. - Linux deb layout โ
/usr/share/code/resources/app/extensionsvia the/usr/sharesystem root. At VS Code 1.133.0, this is the exact scenario the ticket describes (1.130+ with Copilot Chat bundled), on the newest VS Code of the three.
Test plan execution
| # | Step | Result |
|---|---|---|
| 1 | VS Code 1.130+ installed with Copilot Chat bundled | โ Linux at 1.133.0 and Windows at 1.132 both exceed the threshold; macOS at 1.127.0 already ships the same bundled layout |
| 2 | Confirm the extension is genuinely bundled | โ
manifest read at each path above; github.copilot-chat maps to coding-assistant in classify/kb.json |
| 3 | SELECT * FROM ai_tools WHERE type='ide_plugins' |
โ Copilot row returned from all three live agents |
| 4 | Observe pre-fix behavior | โ
Bug reproduces on df36ce891a: 1 row total, 0 Copilot rows |
Supporting checks
| Check | Result |
|---|---|
go test ./orbit/pkg/table/ai_tools/... |
โ all packages pass |
New ide tests |
โ 14 pass โ dedup, build-id layout, NLS placeholder resolution, per-user scope |
| Regression, other types | โ
all 6 other types still collect on macOS; table functional on Linux (apps: 2) and Windows (all 5 types) |
| Negative control | โ
before VS Code was installed, the Linux host returned 0 ide_plugins rows while the table itself worked โ no false positives |
| Collector runtime | โ sub-second per type; bundled scan adds ~10ms cold, 0 warm |
| Server-side consumers | none โ no ai_tools references in server/, ee/, frontend/ |
| Changes file | correctly absent โ table is unreleased, covered by orbit/changes/47619-ai-tools-table |
Bundled tools hide in plain sight scanning both folders reveals what works completeness emerges