kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

[VS Code] Files-Changed / worktree UI hidden in multi-repo workspaces, git detection is scoped to workspace root

Open ehudc opened this issue 4 months ago • 2 comments

Description

Description

In a VS Code window whose workspace root is a non-git parent that contains multiple git repos (e.g. root = / or ~/workspace, with child repos like ~/workspace/backend, ~/workspace/frontend), the entire changes/worktree UI never appears: no "Show Changes" button, no "Move to Worktree", no per-turn "Modified — N files" chip, no +/- stats — even after the agent edits files inside one of the child repos.

Opening that same child repo directly as the workspace root makes the UI appear immediately, which pins the cause to git detection.

Root cause (from the source)

Git status is detected once at connection init from the workspace root and cached, rather than from the session's actual working directory or the nearest enclosing repo:

Because it's computed from the root and never recomputed against the session's edit directory, multi-repo workspaces lose all of this UI.

Suggested fix

Detect git status from the active session's working directory (or the nearest enclosing git repo of the edited files), not the workspace root; recompute per active session rather than caching a single root-level value.

Plugins

No response

Kilo version

7.4.17

Steps to reproduce

  1. Open VS Code with a non-git parent as the workspace root (root = / or a folder that itself isn't a git repo but contains git sub-repos).
  2. Start a Kilo session and have it edit files inside one of the child git repos.
  3. Let the turn finish (idle). Observe: no "Show Changes" button, no "Modified — N files" chip, no +/- stats.
  4. Open that child repo alone as the workspace root and repeat → the UI now appears.

Screenshot and/or share link

Image

Operating System

macOS 26.5

Terminal

No response

ehudc avatar Aug 03 '26 21:08 ehudc

@ehudc thanks for testing so early. Quick heads-up: There are a bunch of fixes that are missing in the feature and it's not yet fully ready, including your bug. Thanks for reporting!

marius-kilocode avatar Aug 04 '26 12:08 marius-kilocode

@marius-kilocode Thanks for the quick reply. I've only started using the extension about 2 weeks ago as part of migrating from Cursor, so I'm not as aware of what are more recent features than not. But I normally do work across multiple repos that together live in a single workspace directory. So it I originally didn't even know about the Files-Changed being available because it never displayed.

For what it's worth, I also filed a related bug #12833 and a separate but related feature request #12873. Thanks!

ehudc avatar Aug 04 '26 17:08 ehudc