Skip to content

Commit 8a216a6

Browse files
authored
fix(app): normalize path separators for session diff filtering on Windows (anomalyco#10291)
1 parent 225b72c commit 8a216a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/session/summary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export namespace SessionSummary {
4040
.flatMap((x) => x.parts)
4141
.filter((x) => x.type === "patch")
4242
.flatMap((x) => x.files)
43-
.map((x) => path.relative(Instance.worktree, x)),
43+
.map((x) => path.relative(Instance.worktree, x).replaceAll("\\", "/")),
4444
)
4545
const diffs = await computeDiff({ messages: input.messages }).then((x) =>
4646
x.filter((x) => {

0 commit comments

Comments
 (0)