@devries-cameron20 / t3code-1 / commits / 6a241eaee3
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

perf(server): sort the working-tree file list once per status read (#22499)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Victor Vogel committed Nov 1, 2026 at 15:57 UTC 6a241eaee3ac770b314f9f7c68e9a87cab61ecf7
1 file changed +5 -7
apps/server/src/vcs/GitVcsDriverCore.ts
+5 -7
@@ -2316,13 +2316,11 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
2316
2317 let insertions = 0;
2318 let deletions = 0;
2319 - const files = Array.from(fileStatMap.entries())
2320 - .map(([filePath, stat]) => {
2321 - insertions += stat.insertions;
2322 - deletions += stat.deletions;
2323 - return { path: filePath, insertions: stat.insertions, deletions: stat.deletions };
2324 - })
2325 - .toSorted((a, b) => a.path.localeCompare(b.path));
2319 + const files = Array.from(fileStatMap.entries()).map(([filePath, stat]) => {
2320 + insertions += stat.insertions;
2321 + deletions += stat.deletions;
2322 + return { path: filePath, insertions: stat.insertions, deletions: stat.deletions };
2323 + });
2324
2325 for (const filePath of changedFilesWithoutNumstat) {
2326 if (fileStatMap.has(filePath)) continue;