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

Function updatePlanBlockStatus

src/stores/aiChat.ts:747–758  ·  view source on GitHub ↗
(status: PlanBlockStatus)

Source from the content-addressed store, hash-verified

745 }
746
747 const updatePlanBlockStatus = (status: PlanBlockStatus) => {
748 const idx = getAiMessageIndex()
749 const blocks = targetBuffer.messages[idx].contentBlocks || []
750 for (let index = blocks.length - 1; index >= 0; index--) {
751 const block = blocks[index]
752 if (block.type === 'plan') {
753 block.status = status
754 break
755 }
756 }
757 updateAIMessage({ contentBlocks: [...blocks] })
758 }
759
760 const appendErrorToBlocks = (error: SerializedErrorInfo) => {
761 const idx = getAiMessageIndex()

Callers 2

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85

Calls 1

updateAIMessageFunction · 0.85

Tested by

no test coverage detected