[BUG] Semantic Codebase Indexing Setting Scope Mismatch
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
@shssoichiro do you want to look into this? Or shall I?
Additional situation which should be considered for monorepo.
- If you open monorepo subfolder, that project be indexed.
- 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:
- in global kilo config I have enabled semantic search
- in monorepo root kilo config I have disabled semantic search
- 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.
@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.)
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.