Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Maintainer validation is needed to confirm that the replacement GraphQL gate honors the selected model and preserves existing launch options during asynchronous Copilot execution, beyond schema validation.
No open issues 🎉
What changed in this PR
Adds optional model selection to assign_copilot_to_issue, allowing callers to choose a model through GitHub’s assignment API while preserving existing behavior when the model is omitted or empty.
Changes:
- Passes the selected model in the assignment mutation and selects the corresponding feature header.
- Preserves additional launch options during legacy input normalization.
- Adds request-level tests and updates tool documentation, the schema snapshot, and delegation guidance.
| File | Description |
|---|---|
| README.md | Documents the optional model argument. |
| pkg/skills/catalog/skills/copilot-task-delegation/SKILL.md | Explains how to delegate with a specified model. |
| pkg/github/typed_copilot_ui_outputs.go | Preserves launch options during input normalization. |
| pkg/github/copilot.go | Adds model input, mutation serialization, and feature-header selection. |
| pkg/github/copilot_test.go | Covers omitted, empty, and explicit models in outgoing requests. |
| pkg/github/__toolsnaps__/assign_copilot_to_issue.snap | Records the updated tool input schema. |
Review effort: Balanced (adaptive)
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.
Summary
Add the optional string
modeltoassign_copilot_to_issue. A client can pass the model identifier for a particular assignment or leave model selection to Copilot.Why
An issue dispatcher may need to use a model chosen by the person delegating the work. Putting its name in
custom_instructionsonly changes the prompt. This change passes the identifier to GitHub's assignment API.This complements #2849, which adds
custom_agent, and addresses the model-selection use case discussed in #2057. The two branches merge cleanly. A combined regression test on the fork verifies that both values reach GitHub in the same assignment.MCP impact
agentAssignment.modeland uses the documentedcoding_agent_model_selectionfeature header. GitHub determines model availability for the caller. GitHub assignment APIRemote tool
create_pull_request_with_copilotis implemented by GitHub's hosted server. The public agent tasks API acceptsmodel,custom_agentandcreate_pull_request, but returns an asynchronous task and exposes no equivalent to the MCP tool's requiredtitle. Hosted tool request #3015 · Start a taskVerification
base_refandcustom_instructions.modelandcustomAgent. The same validation rejectsmodelwhen the historical and model-selection features are combined with the transport's comma-and-space format. A literal@skip(if: true)on the mutation field prevented execution.bash script/test(Go race detector),go vet ./...and golangci-lint v2.14.0. Regenerated the README and tool snapshot and updated the bundled Copilot delegation skill.