(commit: StreamCommit)
| 356 | } |
| 357 | |
| 358 | function frameKey(commit: StreamCommit) { |
| 359 | if (commit.partID) { |
| 360 | return `${commit.kind}:${commit.partID}:${commit.phase}` |
| 361 | } |
| 362 | |
| 363 | if (commit.messageID) { |
| 364 | return `${commit.kind}:${commit.messageID}:${commit.phase}` |
| 365 | } |
| 366 | |
| 367 | return `${commit.kind}:${commit.phase}:${commit.text}` |
| 368 | } |
| 369 | |
| 370 | function limitFrames(detail: DetailState) { |
| 371 | if (detail.frames.length <= SUBAGENT_COMMIT_LIMIT) { |