Fix assign-to-agent model parameter — add coding_agent_model_selection feature flag#16630
Merged
Fix assign-to-agent model parameter — add coding_agent_model_selection feature flag#16630
Conversation
… provided Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix model parameter failure in assign-to-agent
Fix assign-to-agent model parameter — add coding_agent_model_selection feature flag
Feb 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a runtime failure in the assign-to-agent feature where the model parameter fails because the GraphQL API requires the coding_agent_model_selection feature flag to expose the model field on AgentAssignmentInput.
Changes:
- Updated the GraphQL-Features header to conditionally include
coding_agent_model_selectionwhen themodelparameter is provided - Added tests to verify the header is correctly set in both scenarios (with and without model)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| actions/setup/js/assign_agent_helpers.cjs | Modified GraphQL request to conditionally include coding_agent_model_selection feature flag when model parameter is provided |
| actions/setup/js/assign_agent_helpers.test.cjs | Added test assertions to verify the GraphQL-Features header is correctly set based on whether model is provided |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
The
modelparameter inassign-to-agentfails at runtime because the GraphQL API requires thecoding_agent_model_selectionfeature flag to expose themodelfield onAgentAssignmentInput. Without this flag, the field is hidden and requests fail.Changes
assign_agent_helpers.cjscoding_agent_model_selectioninGraphQL-Featuresheader whenmodelparameter is provided"issues_copilot_assignment_api_support,coding_agent_model_selection""issues_copilot_assignment_api_support"(unchanged)assign_agent_helpers.test.cjscoding_agent_model_selectionwhen model is providedVerification
The GraphQL API behavior with/without the flag:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/github/gh-aw/contents/.github%2Fworkflows%2Faudit-workflows.md/opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/dist/workers/forks.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.