MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / updateAIMessage

Function updateAIMessage

src/stores/aiChat.ts:667–670  ·  view source on GitHub ↗
(updates: Partial<ChatMessage>)

Source from the content-addressed store, hash-verified

665
666 function createStreamBlockHelpers(targetBuffer: AIChatBuffer, getAiMessageIndex: () => number): StreamBlockHelpers {
667 const updateAIMessage = (updates: Partial<ChatMessage>) => {
668 const idx = getAiMessageIndex()
669 targetBuffer.messages[idx] = { ...targetBuffer.messages[idx], ...updates }
670 }
671
672 const appendTextToBlocks = (text: string) => {
673 if (!text) return

Callers 15

appendTextToBlocksFunction · 0.85
appendThinkToBlocksFunction · 0.85
appendChartsToBlocksFunction · 0.85
appendEvidenceToBlocksFunction · 0.85
appendPlanDraftToBlocksFunction · 0.85
appendPlanToBlocksFunction · 0.85
updatePlanBlockStatusFunction · 0.85
appendErrorToBlocksFunction · 0.85
addToolBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected