fix/Handle missing Linear comment user in prompt

This commit is contained in:
aran-yogesh 2026-02-25 11:19:30 -08:00
parent 84ae60ad49
commit 41586c2610

View file

@ -625,7 +625,8 @@ async def process_linear_issue( # noqa: PLR0912, PLR0915
if relevant_comments:
comments_text = "\n\n## Comments:\n"
for comment in relevant_comments:
author = comment.get("user", {}).get("name", "Unknown")
user = comment.get("user") or {}
author = user.get("name", "User")
body = comment.get("body", "")
body_image_urls = extract_image_urls(body)
if body_image_urls: