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

Function onError

sdk/src/run.ts:284–288  ·  view source on GitHub ↗
(error: { message: string })

Source from the content-addressed store, hash-verified

282 })
283
284 async function onError(error: { message: string }) {
285 if (handleEvent) {
286 await handleEvent({ type: 'error', message: error.message })
287 }
288 }
289
290 // The agent runtime mutates sessionState.mainAgentState as it progresses,
291 // replacing messageHistory with a new array once it adds the user prompt.

Callers 3

processToolCallContentsFunction · 0.85
runOnceFunction · 0.85
handlePromptResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected