MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / updateAiMessage

Function updateAiMessage

cli/src/utils/message-updater.ts:35–39  ·  view source on GitHub ↗
(updater: (msg: ChatMessage) => ChatMessage)

Source from the content-addressed store, hash-verified

33 setMessages: SetMessagesFn,
34): MessageUpdater => {
35 const updateAiMessage = (updater: (msg: ChatMessage) => ChatMessage) => {
36 setMessages((prev) =>
37 prev.map((msg) => (msg.id === aiMessageId ? updater(msg) : msg)),
38 )
39 }
40
41 const updateAiMessageBlocks = (
42 blockUpdater: (blocks: ContentBlock[]) => ContentBlock[],

Callers 5

updateAiMessageBlocksFunction · 0.85
addBlockFunction · 0.85
markCompleteFunction · 0.85
setErrorFunction · 0.85
clearUserErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected