core: conditionally enable question tool only for CLI client to prevent tool usage in non-CLI environments

pull/7268/head
Dax Raad 2026-01-07 20:09:15 -05:00
parent 14b827f941
commit 21cd0482ba
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export namespace ToolRegistry {
return [
InvalidTool,
QuestionTool,
...(Flag.OPENCODE_CLIENT === "cli" ? [QuestionTool] : []),
BashTool,
ReadTool,
GlobTool,