Skip to content

Disable question tool for subagent - #291780

Merged
roblourens merged 1 commit into
mainfrom
roblou/detailed-camel
Jan 30, 2026
Merged

roblourens merged 1 commit into
mainfrom
roblou/detailed-camel

Conversation

@roblourens

Copy link
Copy Markdown
Member

Fix #291416

Copilot AI review requested due to automatic review settings January 30, 2026 01:41
@roblourens
roblourens enabled auto-merge (squash) January 30, 2026 01:41
@roblourens roblourens self-assigned this Jan 30, 2026
@vs-code-engineering vs-code-engineering Bot added this to the February 2026 milestone Jan 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_askQuestions tool for subagents alongside other already-disabled tools (runSubagent and manage_todo_list)

if (modeTools) {
modeTools[RunSubagentTool.Id] = false;
modeTools[ManageTodoListToolToolId] = false;
modeTools['copilot_askQuestions'] = false;

Copilot AI Jan 30, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
@roblourens
roblourens merged commit 543804d into main Jan 30, 2026
27 of 28 checks passed
@roblourens
roblourens deleted the roblou/detailed-camel branch January 30, 2026 02:01
Yaseen (notsolvablehat) pushed a commit to notsolvablehat/vscode that referenced this pull request Jan 30, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ask_questions not rendered in UI and flow hangs when called by sub agent

3 participants