Skip to content

Commit aa634aa

Browse files
test(server): long Claude import test exceeds the history budget
AI-assisted; verified with the tests and tools listed above.
1 parent 2a6d470 commit aa634aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/project/AgentSessionScanner.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ it.layer(NodeServices.layer)("AgentSessionScanner", (it) => {
18781878
const record = (fields: Record<string, unknown>) =>
18791879
encodeTranscriptRecord({ sessionId: "claude-long", ...fields });
18801880
const longText = "x".repeat(64 * 1024);
1881-
const middleCount = 400;
1881+
const middleCount = 600;
18821882
yield* writeTranscript({
18831883
filePath: path.join(claudeHomePath, "projects", "-slug", "claude-long.jsonl"),
18841884
contents: [
@@ -1887,7 +1887,7 @@ it.layer(NodeServices.layer)("AgentSessionScanner", (it) => {
18871887
cwd: workspace,
18881888
message: { role: "user", content: "First prompt" },
18891889
}),
1890-
// The whole history exceeds the real 32 MiB selected-history budget; the shown window fits.
1890+
// 600 x 64 KiB exceeds the 32 MiB selected-history budget; the shown window fits.
18911891
...Array.from({ length: middleCount }, (_, index) => {
18921892
const role = index % 2 === 0 ? "assistant" : "user";
18931893
return record({ type: role, message: { role, content: longText } });

0 commit comments

Comments
 (0)