kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

[BUG] Semantic Codebase Indexing Setting Scope Mismatch

Open bxw91 opened this issue 7 months ago • 4 comments

Description

Description

The "enable indexing" option in Kilo Code's codebase search settings displays the description: "Turn semantic codebase indexing on or off for this workspace." However, this setting is actually saved in the global Kilo configuration (~/.config/kilo/kilo.jsonc or similar), not at the workspace/project level.

Expected Behavior

If the UI text states the setting applies to "this workspace," the configuration should be saved in the local project config (.kilo/kilo.jsonc within the workspace) to allow per-workspace control over semantic indexing.

Actual Behavior

The setting persists globally across all workspaces, contradicting the UI description. Users cannot enable/disable semantic indexing per individual project through the UI.

Workaround

Disable "semantic search" in global Kilo config Manually edit .kilo/kilo.jsonc in each project to enable "semanticSearch": true

Impact

  • Misleading UX: users expect per-workspace control based on tooltip/text
  • Requires manual config editing for per-project settings
  • Inconsistent with stated behavior

Suggested Fix

Either:

Move the semantic indexing setting to be stored in the workspace's local .kilo/kilo.jsonc file OR Update the UI text to clarify it's a global setting (e.g., "Turn semantic codebase indexing on or off globally")

Plugins

No response

Kilo version

7.2.31

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Ubuntu

Terminal

No response

bxw91 avatar Apr 29 '26 19:04 bxw91

@shssoichiro do you want to look into this? Or shall I?

marius-kilocode avatar Apr 29 '26 20:04 marius-kilocode

Additional situation which should be considered for monorepo.

  1. If you open monorepo subfolder, that project be indexed.
  2. But when you go to monorepo root, that subfolder project will be indexed again.

So to avoid double indexing I have set kilo config files as follows:

  1. in global kilo config I have enabled semantic search
  2. in monorepo root kilo config I have disabled semantic search
  3. and in monorepo subfolder project in another kilo config I have enabled semantic search.

But in this approach semantic search is not working. Additionaly, in this configuration when I go to kilo config settings and want to enabled "semantic search" and want to save that change, it is not saved (apparently monorepo root kilo config is forbidding this - this issue with config not saving is probably related to how kilo process situation with multiple configs).

At the end, to solve double indexing, I have disabled semantic search in kilo global, removed kilo config from monorepo root and enabled semantic search per each monorepo projects.

bxw91 avatar Apr 29 '26 20:04 bxw91

@marius-kilocode I can resolve this, I just want to clarify what the expected behavior should be. Currently I think this is a mismatch in the text label, and this is intended to be a global setting. Do we want to also support this as a per-repo setting? (I may have seen a separate issue for this as a feature request.)

shssoichiro avatar Apr 29 '26 21:04 shssoichiro

As global settings because all other Kilo settings (I think) are also for global config only, until one day it would be possible to edit local settings through Kilo gui settings.

Monorepo users should disable function globally and then enable functionality per project folder in local Kilo settings.

bxw91 avatar Apr 29 '26 23:04 bxw91