Merge pull request #982 from langchain-ai/yogesh/linear-comment-user-null

fix: Handle missing Linear comment user in prompt
This commit is contained in:
Aran Yogesh 2026-02-27 10:52:18 -08:00 • committed by GitHub
commit a502191a7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: