MCPcopy
hub / github.com/coder/mux / startStreamingTurn

Function startStreamingTurn

tests/ui/chat/sendModeDropdown.test.ts:99–104  ·  view source on GitHub ↗
(app: AppHarness, label: string)

Source from the content-addressed store, hash-verified

97}
98
99async function startStreamingTurn(app: AppHarness, label: string): Promise<void> {
100 // Keep stream alive so queued-send mode chooser can be used.
101 const longStreamingTail = " keep-streaming".repeat(600);
102 await app.chat.send(`[mock:wait-start] ${label}${longStreamingTail}`);
103 app.env.services.aiService.releaseMockStreamStartGate(app.workspaceId);
104}
105
106async function waitForSendModeMenuTrigger(container: HTMLElement): Promise<HTMLButtonElement> {
107 return waitFor(

Callers 1

Calls 2

sendMethod · 0.45

Tested by

no test coverage detected