mirror of
https://github.com/mksglu/context-mode.git
synced 2026-09-19 03:27:16 +08:00
49fa9d2dbe
Section 1's "% kept out of context" rounded with toFixed(0), so a genuine 99.888% live-window ratio (8.9 MB kept out, 10.2 KB retrieval) printed a bare "100%". One decimal (toFixed(1)) surfaces the honest 99.9% while the no-retrieval edge still reads an honest 100.0%. Existing ratio assertions parsed the integer with /(\d+)%/, which captured the wrong digit once a decimal appeared; widened to /(\d+(?:\.\d+)?)%/. Tests: new e2e drives formatReport with the real dev-worktree numbers and asserts "99.9% kept out of context" (never a bare 100%). 37/37 green.