1 parent 93b2408 commit afc9517Copy full SHA for afc9517
1 file changed
python_agent_harness/tui/commands.py
@@ -290,8 +290,12 @@ def _conversation_text(self) -> str:
290
if isinstance(m.content, list):
291
image_count = sum(1 for p in m.content if isinstance(p, ImagePart))
292
if image_count:
293
- paths = [p.path for p in m.content if isinstance(p, ImagePart) and p.path]
294
- body = f"{image_placeholder(image_count, paths)}\n{body}"
+ sources = [
+ p.path or p.url
295
+ for p in m.content
296
+ if isinstance(p, ImagePart) and (p.path or p.url)
297
+ ]
298
+ body = f"{image_placeholder(image_count, sources)}\n{body}"
299
if body:
300
parts.append(f"**{m.role}**: {body}")
301
return "\n\n".join(parts)
0 commit comments