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

Function getCancelledRunState

sdk/src/run.ts:325–335  ·  view source on GitHub ↗
(message?: string)

Source from the content-addressed store, hash-verified

323 return state
324 }
325 function getCancelledRunState(message?: string): RunState {
326 message = message ?? 'Run cancelled by user.'
327 return {
328 sessionState: getCancelledSessionState(message),
329 traceSessionId,
330 output: {
331 type: 'error',
332 message,
333 },
334 }
335 }
336
337 const onResponseChunk = async (
338 action: ServerAction<'response-chunk'>,

Callers 1

runOnceFunction · 0.85

Calls 1

getCancelledSessionStateFunction · 0.85

Tested by

no test coverage detected