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

Function appendPlanToBlocks

src/stores/aiChat.ts:735–739  ·  view source on GitHub ↗
(plan: PlanContentBlock)

Source from the content-addressed store, hash-verified

733 }
734
735 const appendPlanToBlocks = (plan: PlanContentBlock) => {
736 const idx = getAiMessageIndex()
737 const blocks = targetBuffer.messages[idx].contentBlocks || []
738 updateAIMessage({ contentBlocks: [...replacePlanDraftWithPlan(blocks, plan)] })
739 }
740
741 const removePlanDraftsFromBlocks = () => {
742 const idx = getAiMessageIndex()

Callers 2

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85

Calls 2

replacePlanDraftWithPlanFunction · 0.90
updateAIMessageFunction · 0.85

Tested by

no test coverage detected