From cbe73cb407b468f9b00942259e32db2e66486b3f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 11 Apr 2026 06:04:05 +0000 Subject: [PATCH] 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 --- apps/server/spawned2.txt | 2 -- apps/server/src/git/Layers/GitCore.ts | 2 +- apps/server/tmp-test.cmd | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 apps/server/spawned2.txt delete mode 100644 apps/server/tmp-test.cmd diff --git a/apps/server/spawned2.txt b/apps/server/spawned2.txt deleted file mode 100644 index 3b31732c2d..0000000000 --- a/apps/server/spawned2.txt +++ /dev/null @@ -1,2 +0,0 @@ -started -started diff --git a/apps/server/src/git/Layers/GitCore.ts b/apps/server/src/git/Layers/GitCore.ts index b94278095a..a92f1b1d87 100644 --- a/apps/server/src/git/Layers/GitCore.ts +++ b/apps/server/src/git/Layers/GitCore.ts @@ -532,7 +532,7 @@ const collectOutput = Effect.fn("collectOutput")(function* ( } const chunkToDecode = truncateOutputAtMaxBytes ? limitedChunk.chunk : chunk; - bytes = truncateOutputAtMaxBytes ? limitedChunk.nextBytes : bytes + chunk.byteLength; + bytes = limitedChunk.nextBytes; truncated = truncateOutputAtMaxBytes && limitedChunk.truncated; const decoded = decoder.decode(chunkToDecode, { stream: !truncated }); diff --git a/apps/server/tmp-test.cmd b/apps/server/tmp-test.cmd deleted file mode 100644 index b095f6e5ac..0000000000 --- a/apps/server/tmp-test.cmd +++ /dev/null @@ -1,3 +0,0 @@ -@echo off -echo started >> spawned2.txt -