Skip to content

Commit 5682f92

Browse files
only21milclaude
andcommitted
fix(server): quiet the selected-file index reset so large trees can't overflow its output
A mixed `git reset` prints one line per dirty tracked file, and git output over the 1 MB capture cap fails the command. Now that reset failures stop the commit, a very large dirty tree could abort a selected-file commit. Run the reset with `--quiet`. It prints nothing on success and still fails with the index.lock error when another process holds the lock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent b787703 commit 5682f92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/server/src/vcs/GitVcsDriverCore.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2421,7 +2421,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
24212421
"Cannot commit selected files during a merge. Commit all files to finish the merge.",
24222422
});
24232423
}
2424-
yield* runGit("GitVcsDriver.commit.reset", cwd, ["reset"]);
2424+
yield* runGit("GitVcsDriver.commit.reset", cwd, ["reset", "--quiet"]);
24252425
}
24262426
yield* runGit(
24272427
"GitVcsDriver.commit.addSelected",

0 commit comments

Comments
 (0)