The open source coding agent.
TypeScript
fix: file.list relative to root
Adam97a41062c930
diff --git a/packages/opencode/src/file/index.ts b/packages/opencode/src/file/index.tsindex a6dd08a80a9..fd846444a1e 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)) continueconst 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) => {