-
Notifications
You must be signed in to change notification settings - Fork 682
Fix custom agents visibility by updating CLI to 0.0.399 #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: patniko <26906478+patniko@users.noreply.github.com>
Co-authored-by: patniko <26906478+patniko@users.noreply.github.com>
Co-authored-by: patniko <26906478+patniko@users.noreply.github.com>
Co-authored-by: patniko <26906478+patniko@users.noreply.github.com>
Co-authored-by: patniko <26906478+patniko@users.noreply.github.com>
|
@copilot bump this up to copilot 0.0.399 |
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
|
@copilot make sure everything is formatted and lints properly |
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
Cross-SDK Consistency ReviewI've reviewed this PR for consistency across all four SDK implementations (Node.js, Python, Go, .NET). Here are my findings: ✅ What's Good
|
Investigation and Fix for Custom Agents Visibility Issue
Problem
Custom agents defined via SDK (Node.js/Python/.NET/Go) are not being surfaced to the assistant when queried. The assistant only knows about built-in agents (explore, task, general-purpose, code-review) but not user-defined custom agents.
Root Cause Analysis
The issue was in CLI version 0.0.394. The code to surface custom agents to the assistant existed but may not have been properly wired or had bugs preventing it from working.
Technical Investigation
Examined CLI version 0.0.399 code and confirmed proper data flow:
GAlfunction retrievescustomAgentsfrom session config:a=(t.customAgents??[]).filter(A=>A.infer!==!1)xqIfunction:description:xqI(i,G,s,a)xqIcallsLqIto format "User-provided custom agents:" sectionSolution
Updated @github/copilot CLI dependency from 0.0.394 to 0.0.399 in:
Testing
Added integration test "should surface custom agents to the assistant for listing" that:
Files Changed
nodejs/package.json- CLI version 0.0.394 → 0.0.399nodejs/package-lock.json- Dependency lockfiletest/harness/package.json- CLI version 0.0.394 → 0.0.399test/harness/package-lock.json- Dependency lockfilenodejs/test/e2e/mcp-and-agents.test.ts- New test case (formatted)Code Quality
Expected Behavior After Fix
When users create a session with custom agents and ask the assistant about available agents, the assistant should list both:
Manual Verification
To manually verify the fix, run the code example from the issue:
The assistant should now mention "test-agent" in its response.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.