Преглед изворни кода

fix(app): normalize path separators for session diff filtering on Windows (#10291)

Alex Yaroshuk пре 4 недеља
родитељ
комит
8a216a6ad5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/opencode/src/session/summary.ts

+ 1 - 1
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) => {