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

Function clearUserError

cli/src/utils/message-updater.ts:105–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 * Call this when starting a new successful interaction to dismiss any previous error banners.
104 */
105 const clearUserError = () => {
106 updateAiMessage((msg) => {
107 if (!msg.userError) return msg
108 const { userError: _, ...rest } = msg
109 return rest as ChatMessage
110 })
111 }
112
113 return {
114 updateAiMessage,

Callers

nothing calls this directly

Calls 1

updateAiMessageFunction · 0.85

Tested by

no test coverage detected