This repository was archived by the owner on May 20, 2026. It is now read-only.
Repository navigation
Remove Ask User Question tool in favor of Core tool - #3880
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the extension-contributed “Ask Questions” tool and switches Claude’s AskUserQuestion permission flow to invoke the VS Code core vscode_askQuestions tool instead (per issue #296134).
Changes:
- Deleted the
AskQuestionsToolimplementation and its Vitest coverage; removed its tool contribution/strings frompackage.json/package.nls.jsonand deregistered it from vscode-node tool loading. - Introduced shared
IAnswerResult/IQuestionAnswertypes for parsingvscode_askQuestionsresults and reused them in Copilot CLI helpers. - Updated Claude’s
AskUserQuestionHandlerto callToolName.CoreAskQuestionsviaIToolsService.invokeTool, and added unit tests for the handler.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/extension/tools/vscode-node/test/askQuestionsTool.spec.ts | Deletes unit tests for the removed contributed AskQuestions tool. |
| src/extension/tools/vscode-node/askQuestionsTool.ts | Removes the contributed AskQuestions tool implementation and registration. |
| src/extension/tools/vscode-node/allTools.ts | Stops importing/registering the removed AskQuestions tool in vscode-node. |
| src/extension/tools/common/toolNames.ts | Replaces AskQuestions with CoreAskQuestions (vscode_askQuestions) and updates categorization. |
| src/extension/tools/common/askQuestionsTypes.ts | Adds shared types for parsing the core tool response payload. |
| src/extension/agents/copilotcli/node/userInputHelpers.ts | Switches to shared answer-result types. |
| src/extension/agents/claude/vscode-node/toolPermissionHandlers/index.ts | Removes side-effect import of the VS Code-node ask-user-question handler. |
| src/extension/agents/claude/vscode-node/toolPermissionHandlers/askUserQuestionHandler.ts | Updates to invoke the core ask-questions tool via IToolsService. |
| src/extension/agents/claude/node/test/askUserQuestionHandler.spec.ts | Adds Vitest coverage for the updated AskUserQuestionHandler behavior. |
| src/extension/agents/claude/common/toolPermissionHandlers/index.ts | Ensures the handler self-registers from common handlers. |
| src/extension/agents/claude/common/toolPermissionHandlers/askUserQuestionHandler.ts | New common handler implementation that delegates to vscode_askQuestions. |
| src/extension/agents/claude/AGENTS.md | Updates docs to reference core ask-questions behavior (needs alignment with actual handler location). |
| package.nls.json | Removes localized strings for the removed contributed tool UI. |
| package.json | Removes the contributed copilot_askQuestions tool contribution and removes it from the vscode toolset. |
Comments suppressed due to low confidence (1)
src/extension/agents/claude/vscode-node/toolPermissionHandlers/askUserQuestionHandler.ts:30
- This file now duplicates the implementation in
src/extension/agents/claude/common/toolPermissionHandlers/askUserQuestionHandler.ts, butvscode-node/toolPermissionHandlers/index.tsno longer imports it (and a repo-wide search shows no remaining imports). Consider deleting this vscode-node variant or turning it into a small re-export to avoid dead code and to prevent accidental double-registration if it gets imported again later.
export class AskUserQuestionHandler implements IClaudeToolPermissionHandler<ClaudeToolNames.AskUserQuestion> {
public readonly toolNames = [ClaudeToolNames.AskUserQuestion] as const;
constructor(
@IToolsService private readonly toolsService: IToolsService,
) { }
TylerLeonhardt
disabled auto-merge
February 20, 2026 02:05
TylerLeonhardt
commented
Feb 20, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Feb 20, 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.
Fixes microsoft/vscode#296134
ref microsoft/vscode#296135