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

Function appendPlanDraftToBlocks

src/stores/aiChat.ts:728–733  ·  view source on GitHub ↗
(delta: string)

Source from the content-addressed store, hash-verified

726 }
727
728 const appendPlanDraftToBlocks = (delta: string) => {
729 if (!delta) return
730 const idx = getAiMessageIndex()
731 const blocks = targetBuffer.messages[idx].contentBlocks || []
732 updateAIMessage({ contentBlocks: [...appendPlanDraftDelta(blocks, delta)] })
733 }
734
735 const appendPlanToBlocks = (plan: PlanContentBlock) => {
736 const idx = getAiMessageIndex()

Callers 2

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85

Calls 2

appendPlanDraftDeltaFunction · 0.90
updateAIMessageFunction · 0.85

Tested by

no test coverage detected