Skip to content

Commit cbe73cb

Browse files
committed
Remove debug test artifacts and use consistent byte tracking in processChunk
- Delete spawned2.txt and tmp-test.cmd (debug/test leftovers from manual process spawn testing) - Use limitedChunk.nextBytes uniformly in both truncate and non-truncate paths in GitCore processChunk
1 parent 8d257e2 commit cbe73cb

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

apps/server/spawned2.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

apps/server/src/git/Layers/GitCore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ const collectOutput = Effect.fn("collectOutput")(function* <E>(
532532
}
533533

534534
const chunkToDecode = truncateOutputAtMaxBytes ? limitedChunk.chunk : chunk;
535-
bytes = truncateOutputAtMaxBytes ? limitedChunk.nextBytes : bytes + chunk.byteLength;
535+
bytes = limitedChunk.nextBytes;
536536
truncated = truncateOutputAtMaxBytes && limitedChunk.truncated;
537537

538538
const decoded = decoder.decode(chunkToDecode, { stream: !truncated });

apps/server/tmp-test.cmd

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)