Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions packages/opencode/src/kilocode/tool/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion packages/opencode/src/tool/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Loading