From 97a41062c93059ff362080b7563354773b2643fb Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Tue, 2 Sep 2025 06:20:08 -0500 Subject: [PATCH] fix: file.list relative to root --- packages/opencode/src/file/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/opencode/src/file/index.ts b/packages/opencode/src/file/index.ts index a6dd08a8..fd846444 100644 --- a/packages/opencode/src/file/index.ts +++ b/packages/opencode/src/file/index.ts @@ -154,13 +154,12 @@ export namespace File { if (exclude.includes(entry.name)) continue const fullPath = path.join(resolved, entry.name) const relativePath = path.relative(Instance.directory, fullPath) - const relativeToRoot = path.relative(Instance.worktree, fullPath) const type = entry.isDirectory() ? "directory" : "file" nodes.push({ name: entry.name, path: relativePath, type, - ignored: ignored(type === "directory" ? relativeToRoot + "/" : relativeToRoot), + ignored: ignored(type === "directory" ? relativePath + "/" : relativePath), }) } return nodes.sort((a, b) => {