Index unexpectedly turned off automatically and could not be re-enabled

Issue Description

Qoder’s index unexpectedly turned off automatically and could not be re-enabled. After the index was disabled, file read and directory search features were also deactivated, rendering the assistant unable to access or analyze local project files.

Steps to Reproduce

  1. Launch Qoder (v0.2.8) on macOS.

  2. Open any project directory (in this case, a React/Vite app).

  3. Wait for Qoder to finish initial indexing.

  4. Observe that the index disables itself automatically after a short time.

  5. Attempt to re-enable indexing manually via the sidebar or settings → indexing.

  6. Attempt to perform a file read or search operation.

Expected Behavior

  1. Qoder should maintain an active index unless manually disabled.
  2. File read and directory search should remain available even after minor internal restarts or background re-indexing.

Actual Behavior

  1. The index turns off automatically and cannot be toggled back on.
  2. File read and directory search are both disabled and return “feature unavailable” or no response.
  3. Restarting Qoder or VSCode does not restore functionality.

Screenshots / Screen Recordings

Operating System

MacOS

Current Qoder Version (Menu → About Qoder → Copy)

Operating System: macOS (Darwin x64 23.1.0)
Qoder Version: 0.2.8
VSCode Version: 1.100.0
Commit: b2894363a296db96e361b129e4626c356d972112
Date: 2025-10-23T14:38:58.562Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0

@Dung_Claire_Tran Both “Searched Files” and “List Directory” failed—it appears to be caused by Qoder being unable to access the workspace. Please confirm whether Qoder has file system permissions to access the workspace.