Repository navigation
Disable question tool for subagent - #291780
Merged
Merged
Conversation
TylerLeonhardt
approved these changes
Jan 30, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes an issue where subagents attempting to call the ask_questions tool causes the UI to hang and not render properly. The fix prevents subagents from using this tool by explicitly disabling it in the tool configuration.
Changes:
- Disabled the
copilot_askQuestionstool for subagents alongside other already-disabled tools (runSubagentandmanage_todo_list)
| if (modeTools) { | ||
| modeTools[RunSubagentTool.Id] = false; | ||
| modeTools[ManageTodoListToolToolId] = false; | ||
| modeTools['copilot_askQuestions'] = false; |
There was a problem hiding this comment.
The tool ID 'copilot_askQuestions' is hardcoded as a string literal, unlike the other disabled tools which use exported constants (RunSubagentTool.Id and ManageTodoListToolToolId). For consistency and maintainability, consider defining this tool ID as a constant (e.g., in the file where the ask questions tool is defined) and importing it here.
Yaseen (notsolvablehat)
pushed a commit
to notsolvablehat/vscode
that referenced
this pull request
Jan 30, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fix #291416