|
|
@@ -94,10 +94,11 @@ export namespace ToolRegistry {
|
|
|
async function all(): Promise<Tool.Info[]> {
|
|
|
const custom = await state().then((x) => x.custom)
|
|
|
const config = await Config.get()
|
|
|
+ const question = ["app", "cli", "desktop"].includes(Flag.OPENCODE_CLIENT) || Flag.OPENCODE_ENABLE_QUESTION_TOOL
|
|
|
|
|
|
return [
|
|
|
InvalidTool,
|
|
|
- ...(["app", "cli", "desktop"].includes(Flag.OPENCODE_CLIENT) ? [QuestionTool] : []),
|
|
|
+ ...(question ? [QuestionTool] : []),
|
|
|
BashTool,
|
|
|
ReadTool,
|
|
|
GlobTool,
|