(detail: DetailState)
| 368 | } |
| 369 | |
| 370 | function limitFrames(detail: DetailState) { |
| 371 | if (detail.frames.length <= SUBAGENT_COMMIT_LIMIT) { |
| 372 | return |
| 373 | } |
| 374 | |
| 375 | detail.frames.splice(0, detail.frames.length - SUBAGENT_COMMIT_LIMIT) |
| 376 | } |
| 377 | |
| 378 | function mergeLiveCommit(current: StreamCommit, next: StreamCommit) { |
| 379 | if (current.phase !== "progress" || next.phase !== "progress") { |