(toolBlock: ToolContentBlock)
| 443 | * operations never briefly flash an input-derived full-file diff. |
| 444 | */ |
| 445 | export function shouldShowEditDiff(toolBlock: ToolContentBlock): boolean { |
| 446 | if (!extractDiff(toolBlock) || isCreateFile(toolBlock)) { |
| 447 | return false |
| 448 | } |
| 449 | |
| 450 | if ( |
| 451 | !isProposedToolName(toolBlock.toolName) && |
| 452 | !hasToolResultOutput(toolBlock) |
| 453 | ) { |
| 454 | return false |
| 455 | } |
| 456 | |
| 457 | return true |
| 458 | } |
| 459 | |
| 460 | export interface TimelineItem { |
| 461 | type: 'commentary' | 'edit' |
no test coverage detected