diff options
| author | Alex Yaroshuk <[email protected]> | 2026-01-24 06:17:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-23 16:17:47 -0600 |
| commit | 8a216a6ad53e52a15b8e64038b4b84036b098ef0 (patch) | |
| tree | 53af2b147e7fac9fbfee90a86d5f98fa5c5e467c | |
| parent | 225b72ca36da50467b35a8de7d16a9fc27f38bcf (diff) | |
| download | opencode-8a216a6ad53e52a15b8e64038b4b84036b098ef0.tar.gz opencode-8a216a6ad53e52a15b8e64038b4b84036b098ef0.zip | |
fix(app): normalize path separators for session diff filtering on Windows (#10291)
| -rw-r--r-- | packages/opencode/src/session/summary.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/session/summary.ts b/packages/opencode/src/session/summary.ts index c03100c9b..611d5f1c6 100644 --- a/packages/opencode/src/session/summary.ts +++ b/packages/opencode/src/session/summary.ts @@ -40,7 +40,7 @@ export namespace SessionSummary { .flatMap((x) => x.parts) .filter((x) => x.type === "patch") .flatMap((x) => x.files) - .map((x) => path.relative(Instance.worktree, x)), + .map((x) => path.relative(Instance.worktree, x).replaceAll("\\", "/")), ) const diffs = await computeDiff({ messages: input.messages }).then((x) => x.filter((x) => { |
