Detect GitHub Copilot app in CLI telemetry - #19740
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e757dd54-eb42-4b0a-b112-2ea77e4eacc7
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19740Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19740" |
There was a problem hiding this comment.
Pull request overview
Adds GitHub Copilot app detection to Aspire CLI telemetry, matching the .NET SDK rules.
Changes:
- Detects
AI_AGENT=github_copilot_app_agentascopilot-app. - Tests standalone and combined Copilot CLI/app detection.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/Aspire.Cli/Telemetry/CodingAgentDetector.cs |
Adds the Copilot app detection rule. |
tests/Aspire.Cli.Tests/Telemetry/AspireCliTelemetryTests.cs |
Adds regression test cases. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e757dd54-eb42-4b0a-b112-2ea77e4eacc7
Tests selector (audit mode)The full test matrix and all jobs still run in audit mode. The tests and jobs below are what selective CI would run under enforcement. 2 / 102 test projects · 4 jobs, from 2 changed files. Selected test projects (2 / 102)
Selected jobs (4)
How these were chosen — grouped by what changed📦 affected project 🧪 Job reasons
Selection computed for commit |
|
Pull request created: #1589
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#1589 targeting Added a 13.6 data-points row to the Microsoft-collected CLI telemetry doc noting that the CLI now separately reports
Note This draft PR needs human review before merging. |
Description
The Aspire CLI does not currently identify commands run from the GitHub Copilot app separately from the underlying Copilot CLI. This keeps
CodingAgentDetectoraligned with the latest detection rules indotnet/sdk.When
AI_AGENT=github_copilot_app_agentis present, telemetry now reportscopilot-app. The Copilot app also setsCOPILOT_CLI, so its complete coding-agent value iscopilot-cli, copilot-app.Validation:
Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?