Skip to content

Commit 29b0225

Browse files
committed
Fix some performance issues.
1 parent bc692f1 commit 29b0225

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎python_agent_harness/core/models.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def __post_init__(self) -> None:
7575
self._data_url: str | None = None
7676
if self.data is not None:
7777
self._data_url = (
78-
f"data:{self.media_type};base64,"
79-
f"{base64.b64encode(self.data).decode('ascii')}"
78+
f"data:{self.media_type};base64,{base64.b64encode(self.data).decode('ascii')}"
8079
)
8180

8281
@classmethod

‎tests/tui/test_tui_render.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ def test_stream_final_check_with_escape_in_header_hidden(self):
454454
header regex)."""
455455
tui, _ = make_tui()
456456
tui.stream_text = (
457-
"answer text\n\n[FINAL\x1b[0m CHECK]\n"
458-
"- Goal: x\n- Status: SUCCESS\n- Evidence: y"
457+
"answer text\n\n[FINAL\x1b[0m CHECK]\n- Goal: x\n- Status: SUCCESS\n- Evidence: y"
459458
)
460459
row = tui._stream_row()
461460
self.assertIsNotNone(row)

0 commit comments

Comments
 (0)