Commit ddfc302
tune: a must-see line no longer collides with the live display
report()'s "no passing variant" printed straight to stdout while the bar was
live, so it landed on the bar's line and the next redraw wrote over it — the one
message you must not lose was the one most likely to be destroyed.
Routing it through tune_detail (the obvious fix) would be worse: that mutes
under normal verbosity, so a hard failure would vanish entirely. Added
tune_progress_note instead — it wipes the bar's line, prints the text, and
leaves the display armed so the bar redraws underneath. Silent still suppresses.
Verified on a pty by replaying the CR/LF stream the way a terminal does:
k0: no passing variant
[######--------------] 1/3 k1 finalists 2/4 4 live 0s
Copilot also flagged the summary block for the same reason; that one is fine —
it runs after tune_progress_finish() has already closed the display.
Caught by Copilot on #3583.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent d858c70 commit ddfc302
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1198 | 1198 | | |
1199 | 1199 | | |
1200 | 1200 | | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1201 | 1219 | | |
1202 | 1220 | | |
1203 | 1221 | | |
| |||
0 commit comments