Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/issue1086-chain-self-exemption.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,10 @@ test("#1086 T5 liveness: plain-client chat session keeps compressing as it grows
}));
res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: {}, finish_reason: "tool_calls" }], usage: { prompt_tokens: 100, completion_tokens: 2 } }));
} else {
const text = `reply ${state.bodies.length} ` + "x".repeat(360);
// #3315: mixed-char filler on purpose — a uniform run of >= 200 identical codepoints
// trips the #3289 output-side text-run guard (TEXT_RUN_THRESHOLD, src/runaway-guard.ts)
// and the proxy aborts the upstream stream, so the turn loses its visible reply.
const text = `reply ${state.bodies.length} ` + "xyz".repeat(120);
res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: { role: "assistant", content: text } }] }));
res.write(sseLine({ id: "g1", object: "chat.completion.chunk", choices: [{ index: 0, delta: {}, finish_reason: "stop" }], usage: { prompt_tokens: 100, completion_tokens: 50 } }));
}
Expand Down
Loading