MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / finishStream

Method finishStream

apps/cli/src/agent/output-manager.ts:408–414  ·  view source on GitHub ↗

* Finish streaming a message (add newline).

(ts: number)

Source from the content-addressed store, hash-verified

406 * Finish streaming a message (add newline).
407 */
408 finishStream(ts: number): void {
409 if (this.currentlyStreamingTs === ts) {
410 this.writeRaw("\n")
411 this.currentlyStreamingTs = null
412 this.streamingState.next({ ts: null, isStreaming: false })
413 }
414 }
415
416 /**
417 * Output a say:completion_result message (streamed text of the completion).

Callers 4

outputTextMessageMethod · 0.95
outputCommandOutputMethod · 0.95

Calls 2

writeRawMethod · 0.95
nextMethod · 0.80

Tested by

no test coverage detected