mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
CI's coverage gate caught `ansi.ts` at 95.31% branches. My local check had scoped coverage to that one file, which measures a different test set than the gate does — the gate is the authority and it was right. Three branches. Two are now pinned, each verified in a real terminal first: `ab\r` + U+0301 + `x` shows `xb` — the redraw leaves the cursor at column 0, so a combining mark has no cell to attach to and the terminal shows nothing for it. It also revealed that the mark was kept when `cursor` was 0, which is fixed. `ab\rX\x1b[31m` then a plain line shows `Xb` unstyled and the next line RED: the mirror of the reset case, where the scan ends styled while the last cell is not, so the convergence has to OPEN the run at the line end for it to reach the following line. The third was `?? ''` on a `String.split` result, which always yields at least one element — removed rather than tested, since no input can reach it.