(diff)
| 179 | } |
| 180 | |
| 181 | export function createComparisonNextAction(diff) { |
| 182 | const chatPrompt = diff.newFailures.length > 0 ? "What should I fix first?" : "What should I run next?"; |
| 183 | return { |
| 184 | label: diff.newFailures.length > 0 ? "Address the new failures first" : "Continue from the improved baseline", |
| 185 | why: diff.newFailures.length > 0 |
| 186 | ? "New failures block trust in the comparison, even if the score improved elsewhere." |
| 187 | : "The comparison is trending in the right direction, so the next move is to keep the workflow tight and repeatable.", |
| 188 | command: buildStartCommand(diff.target, chatPrompt), |
| 189 | chatPrompt, |
| 190 | }; |
| 191 | } |
no test coverage detected