Skip to content

Commit d6dda11

Browse files
authored
Update core.py
1 parent 121e76d commit d6dda11

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎python_agent_harness/tui/core.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,8 @@ def _start_agent(
288288
attachments: list[Any] = []
289289
errors: list[Any] = []
290290
display_text = cleaned_text.strip() or "(attachment)"
291-
has_images = (
292-
isinstance(text.content, list)
293-
and any(isinstance(p, ImagePart) for p in text.content)
291+
has_images = isinstance(text.content, list) and any(
292+
isinstance(p, ImagePart) for p in text.content
294293
)
295294
else:
296295
cleaned_text, attachments, errors = parse_at_references(

0 commit comments

Comments
 (0)