mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-11-03 06:32:38 +08:00
The SDK rewrite interceptor injects directory=<cwd> into every GET request. The experimental session list endpoint was passing this to listGlobal even when worktrees=true, restricting results to only the current directory. Skip the directory filter when worktrees is active so all worktree sessions are returned. Add regression test that includes directory in query params.