fix(doctor): explain discord streaming opt-in (#52450)

This commit is contained in:
Vincent Koc
2026-03-22 12:37:03 -07:00
committed by GitHub
parent c26655d397
commit 5f723ecd7f
7 changed files with 47 additions and 1 deletions

View File

@@ -537,6 +537,12 @@ describe("processDiscordMessage draft streaming", () => {
expectSinglePreviewEdit();
});
it("keeps preview streaming off by default when streaming is unset", async () => {
await runSingleChunkFinalScenario({ maxLinesPerMessage: 5 });
expect(editMessageDiscord).not.toHaveBeenCalled();
expect(deliverDiscordReply).toHaveBeenCalledTimes(1);
});
it("falls back to standard send when final needs multiple chunks", async () => {
await runSingleChunkFinalScenario({ streamMode: "partial", maxLinesPerMessage: 1 });