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

Function removePlanDraftsFromBlocks

src/stores/aiChat.ts:741–745  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

739 }
740
741 const removePlanDraftsFromBlocks = () => {
742 const idx = getAiMessageIndex()
743 const blocks = targetBuffer.messages[idx].contentBlocks || []
744 updateAIMessage({ contentBlocks: [...removePlanDraftBlocks(blocks)] })
745 }
746
747 const updatePlanBlockStatus = (status: PlanBlockStatus) => {
748 const idx = getAiMessageIndex()

Callers 2

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85

Calls 2

removePlanDraftBlocksFunction · 0.90
updateAIMessageFunction · 0.85

Tested by

no test coverage detected