diff --git a/packages/opencode/src/kilocode/tool/registry.ts b/packages/opencode/src/kilocode/tool/registry.ts index a57dc60a6b6..ffa8bb339ee 100644 --- a/packages/opencode/src/kilocode/tool/registry.ts +++ b/packages/opencode/src/kilocode/tool/registry.ts @@ -37,7 +37,9 @@ export namespace KiloToolRegistry { function semanticTool(deps: Deps) { return Effect.gen(function* () { - const ready = yield* Effect.tryPromise(() => import("@/kilocode/indexing").then((mod) => mod.KiloIndexing.ready())).pipe( + const ready = yield* Effect.tryPromise(() => + import("@/kilocode/indexing").then((mod) => mod.KiloIndexing.ready()), + ).pipe( Effect.catch((err) => Effect.sync(() => { log.warn("semantic search unavailable", { err }) @@ -66,11 +68,6 @@ export namespace KiloToolRegistry { }) } - /** Override question-tool client gating (adds "vscode" to allowed clients) */ - export function question(): boolean { - return ["app", "cli", "desktop", "vscode"].includes(Flag.KILO_CLIENT) || Flag.KILO_ENABLE_QUESTION_TOOL - } - /** Plan tool is always registered in Kilo (gated by agent permission instead) */ export function plan(): boolean { return true diff --git a/packages/opencode/src/tool/registry.ts b/packages/opencode/src/tool/registry.ts index e7980135f7f..59314ba7c32 100644 --- a/packages/opencode/src/tool/registry.ts +++ b/packages/opencode/src/tool/registry.ts @@ -188,7 +188,10 @@ export const layer: Layer.Layer< } const cfg = yield* config.get() - const questionEnabled = KiloToolRegistry.question() // kilocode_change + // kilocode_change start: add "vscode" to allowed clients + const questionEnabled = + ["app", "cli", "desktop", "vscode"].includes(Flag.KILO_CLIENT) || Flag.KILO_ENABLE_QUESTION_TOOL + // kilocode_change end // kilocode_change start const tool = yield* Effect.all({