refactor: render reasoning without italics

This commit is contained in:
banteg
2025-12-29 03:07:38 +04:00
parent aa5ecbd6e4
commit aca9cdec3f
2 changed files with 3 additions and 3 deletions
@@ -91,7 +91,7 @@ def attach_id(item_id: Optional[int], line: str) -> str:
return f"[{item_id if item_id is not None else '?'}] {line}"
def format_reasoning(text: str) -> str:
return f"_{text}_"
return text
def format_item_line(etype: str, item: dict[str, Any]) -> str | None:
@@ -28,10 +28,10 @@ def test_render_event_cli_sample_stream() -> None:
assert out == [
"thread started",
"turn started",
"[0] _**Searching for README files**_",
"[0] **Searching for README files**",
"[1] ▸ running: `bash -lc ls`",
"[1] ✓ ran: `bash -lc ls` (exit 0)",
"[2] _**Checking repository root for README**_",
"[2] **Checking repository root for README**",
"assistant:",
" Yep — theres a `README.md` in the repository root.",
"turn completed",