mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-11-05 07:48:36 +08:00
On Windows, path.relative() returns an absolute path when source and target are on different drives. The ignore npm package throws a RangeError when fed such paths. This caused 'Failed to send prompt' when VS Code had open tabs from another drive (e.g. extension settings in AppData while workspace is on D:). Guard all path.relative() → ignore.ignores() call sites against absolute results by checking path.isAbsolute() and a Windows drive-letter regex.