MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / setThreadStreamingState

Function setThreadStreamingState

shared/thread-data.ts:32–34  ·  view source on GitHub ↗
(thread: ThreadData, isStreaming: boolean)

Source from the content-addressed store, hash-verified

30}
31
32export function setThreadStreamingState(thread: ThreadData, isStreaming: boolean): ThreadData {
33 return thread.isStreaming === isStreaming ? thread : { ...thread, isStreaming }
34}
35
36export function setThreadCompactingState(thread: ThreadData, isCompacting: boolean): ThreadData {
37 return thread.isCompacting === isCompacting ? thread : { ...thread, isCompacting }

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected