mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 05:35:15 +00:00
core: conditionally enable question tool only for CLI client to prevent tool usage in non-CLI environments
This commit is contained in:
parent
14b827f941
commit
21cd0482ba
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ export namespace ToolRegistry {
|
|||
|
||||
return [
|
||||
InvalidTool,
|
||||
QuestionTool,
|
||||
...(Flag.OPENCODE_CLIENT === "cli" ? [QuestionTool] : []),
|
||||
BashTool,
|
||||
ReadTool,
|
||||
GlobTool,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue