(session: DeepImmutable<RemoteAgentTaskState>)
| 491 | // formatReviewStageCounts (shared with the pill) so the two views can't |
| 492 | // drift; completed state is dialog-specific (findings summary). |
| 493 | function reviewCountsLine(session: DeepImmutable<RemoteAgentTaskState>): string { |
| 494 | const p = session.reviewProgress; |
| 495 | // No progress data — the orchestrator never wrote a snapshot. Don't |
| 496 | // claim "0 findings" when completed; we just don't know. |
| 497 | if (!p) return session.status === 'completed' ? 'done' : 'setting up'; |
| 498 | const verified = p.bugsVerified; |
| 499 | const refuted = p.bugsRefuted ?? 0; |
| 500 | if (session.status === 'completed') { |
| 501 | const parts = [`${verified} ${plural(verified, 'finding')}`]; |
| 502 | if (refuted > 0) parts.push(`${refuted} refuted`); |
| 503 | return parts.join(' · '); |
| 504 | } |
| 505 | return formatReviewStageCounts(p.stage, p.bugsFound, verified, refuted); |
| 506 | } |
| 507 | type MenuAction = 'open' | 'stop' | 'back' | 'dismiss'; |
| 508 | function ReviewSessionDetail(t0) { |
| 509 | const $ = _c(56); |
no test coverage detected