From b8ff031be7e8ad1511836f2009f4df97065d74a1 Mon Sep 17 00:00:00 2001 From: sora <2075279110@qq.com> Date: Fri, 11 Sep 2026 02:35:49 +0000 Subject: [PATCH] Scores in narration lines get bold green (the key fact, previously lost in all-white lines); paths stay cyan Co-Authored-By: Claude --- evalharness/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/evalharness/cli.py b/evalharness/cli.py index 0ffc363..08e0b45 100644 --- a/evalharness/cli.py +++ b/evalharness/cli.py @@ -224,6 +224,14 @@ def _narration(msg: str) -> str: icon = '๐Ÿ“ ' elif 'endpoint ok' in m: icon = '๐Ÿ”— ' + # THE key fact: the score in 'scoring complete ยท %' + # gets bold green -- it is what the eye should find first + import re as _re1 + + m = _re1.search(r'(ยท [a-zA-Z_@]+ [0-9.]+%)$', msg) + if m: + return (f'{icon}{msg[:m.start()]}' + f'[bold green]{m.group(1)}[/bold green]') # highlight any trailing path after '->' if '-> ' in msg: head, _, tail = msg.partition('-> ')