Opus finding
formatPRComment cost rounding can display '$0.00' for sub-cent reviews
lowmaintainabilityhigh
- apps/web/lib/pr-comment.ts:35-38
estimatedCostUsd is rendered with toFixed(2). If the actual cost is, e.g., $0.004, the footer will print '~$0.00' which is misleading and arguably a docs/observability bug since AGENTS-style direct/technical voice should not show cost as zero. Same concern for totalMs: Math.round(500/1000) = 0s.
Recommendation
Use a small-number-aware formatter (e.g., '< $0.01' when cost < 0.005), and similarly for sub-second timings.