diff --git a/core/indexing/walkDir.ts b/core/indexing/walkDir.ts index 9289f9960..1c320f181 100644 --- a/core/indexing/walkDir.ts +++ b/core/indexing/walkDir.ts @@ -220,10 +220,9 @@ export async function walkDir( for await (const e of dfsWalker.walk()) { relativePaths.push(e); } - const pathSep = await ide.pathSep(); - const prefix = options.returnRelativePaths ? "" : (path + pathSep); - + const prefix = options.returnRelativePaths ? "" : path + pathSep; + if (pathSep === "/") { return relativePaths.map((p) => prefix + p); } diff --git a/gui/src/components/mainInput/resolveInput.ts b/gui/src/components/mainInput/resolveInput.ts index 8e81b90f9..a067243da 100644 --- a/gui/src/components/mainInput/resolveInput.ts +++ b/gui/src/components/mainInput/resolveInput.ts @@ -7,7 +7,6 @@ import { RangeInFile, } from "core"; import { stripImages } from "core/llm/countTokens"; -import { getBasename, getRelativePath } from "core/util"; import { IIdeMessenger } from "../../context/IdeMessenger"; interface MentionAttrs {