1 parent 121e76d commit d6dda11Copy full SHA for d6dda11
1 file changed
python_agent_harness/tui/core.py
@@ -288,9 +288,8 @@ def _start_agent(
288
attachments: list[Any] = []
289
errors: list[Any] = []
290
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)
+ has_images = isinstance(text.content, list) and any(
+ isinstance(p, ImagePart) for p in text.content
294
)
295
else:
296
cleaned_text, attachments, errors = parse_at_references(
0 commit comments