summaryrefslogtreecommitdiffhomepage
path: root/packages/app
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-02-22 23:49:51 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-02-22 23:49:51 +0000
commitfaa63227ac5136b7f86961206e048a0cd598c514 (patch)
treefdaafa24bf6204894d2727ac908a91aaab9cb244 /packages/app
parenta74fedd23beecc70cb7cf7f07c6a14186787c960 (diff)
downloadopencode-faa63227ac5136b7f86961206e048a0cd598c514.tar.gz
opencode-faa63227ac5136b7f86961206e048a0cd598c514.zip
chore: generate
Diffstat (limited to 'packages/app')
-rw-r--r--packages/app/src/context/file/path.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/app/src/context/file/path.ts b/packages/app/src/context/file/path.ts
index 6be7588f9..72c058aec 100644
--- a/packages/app/src/context/file/path.ts
+++ b/packages/app/src/context/file/path.ts
@@ -113,9 +113,10 @@ export function createPathHelpers(scope: () => string) {
const windows = /^[A-Za-z]:/.test(root)
const canonRoot = windows ? root.toLowerCase() : root
const canonPath = windows ? path.toLowerCase() : path
- if (canonPath.startsWith(canonRoot) &&
- (canonRoot.endsWith("/") || canonPath === canonRoot ||
- canonPath.startsWith(canonRoot + "/"))) {
+ if (
+ canonPath.startsWith(canonRoot) &&
+ (canonRoot.endsWith("/") || canonPath === canonRoot || canonPath.startsWith(canonRoot + "/"))
+ ) {
// If we match canonRoot + "/", the slash will be removed below.
path = path.slice(root.length)
}