MCPcopy Create free account
hub / github.com/arctic-cli/interface / flushReasoningDelta

Function flushReasoningDelta

packages/arctic/src/session/processor.ts:76–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 const reasoningDeltaBatch: Record<string, string> = {}
75 let reasoningDeltaTimer: Timer | undefined
76 const flushReasoningDelta = async () => {
77 for (const [id, delta] of Object.entries(reasoningDeltaBatch)) {
78 const part = reasoningMap[id]
79 if (part && delta) {
80 await Session.updatePart({ part, delta })
81 }
82 }
83 Object.keys(reasoningDeltaBatch).forEach((key) => {
84 reasoningDeltaBatch[key] = ""
85 })
86 }
87
88 for await (const value of stream.fullStream) {
89 input.abort.throwIfAborted()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected