The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 04:30 UTC
fix(server): review rows for nested repositories load in large diffs (#29693)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: maria-rcks <maria@kuuro.net>
Alex Southwell committed
Nov 3, 2026 at 23:28 UTC
2f2e81f6bcf49c71c793ca271a277a5abf14cad6
2 files changed
+7
-2
apps/server/src/vcs/GitVcsDriverCore.test.ts
+4
-1
@@ -2310,6 +2310,9 @@ it.layer(layerTest)("GitVcsDriver core integration", (it) => {
2310
yield* writeTextFile(cwd, "untracked.txt", "new\n");
2311
const driver = yield* GitVcsDriver.GitVcsDriver;
2312
const nestedCwd = path.join(cwd, "nested");
2313
+ const clone = path.join(nestedCwd, "clone");
2314
+ yield* fileSystem.makeDirectory(clone);
2315
+ yield* initRepoWithCommit(clone);
2316
const projectDirectories = [nestedCwd];
2317
if (symlinksSupported) {
2318
const alias = path.join(directory, "alias");
@@ -2323,7 +2326,7 @@ it.layer(layerTest)("GitVcsDriver core integration", (it) => {
2326
});
2327
assert.equal(
2328
preview.sources.find((source) => source.kind === "working-tree")!.files!.length,
2326
- 2,
2329
+ 3,
2330
);
2331
for (const source of preview.sources) {
2332
for (const file of source.files ?? []) {
apps/server/src/vcs/GitVcsDriverCore.ts
+3
-1
@@ -3123,8 +3123,10 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
3123
{ maxOutputBytes: REVIEW_METADATA_MAX_OUTPUT_BYTES },
3124
).pipe(Effect.orElseSucceed(() => null));
3125
if (untracked === null) return null;
3126
+ // ls-files lists a nested repository with a trailing slash; its diff path has none.
3127
const paths = splitNullSeparatedGitStdoutPaths(untracked).filter(
3127
- (candidate) => onlyPath === undefined || candidate === onlyPath,
3128
+ (candidate) =>
3129
+ onlyPath === undefined || candidate === onlyPath || candidate === `${onlyPath}/`,
3130
);
3131
if (paths.length === 0) return { env: undefined };
3132
if (paths.length > REVIEW_UNTRACKED_MAX_FILES) return null;