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

Function hasToolResultOutput

cli/src/utils/implementor-helpers.ts:433–436  ·  view source on GitHub ↗
(toolBlock: ToolContentBlock)

Source from the content-addressed store, hash-verified

431}
432
433function hasToolResultOutput(toolBlock: ToolContentBlock): boolean {
434 const outputStr = typeof toolBlock.output === 'string' ? toolBlock.output : ''
435 return outputStr.length > 0 || toolBlock.outputRaw !== undefined
436}
437
438/**
439 * Decide whether the direct edit tool renderer should show a diff preview.

Callers 1

shouldShowEditDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected