Skip to content

fix(render-utils): bug I found but could not describe in technical terms so had my AI write the specifications#5769

Closed
TomSpoct wants to merge 1 commit into
earendil-works:mainfrom
TomSpoct:fix-graphify-undefined-content-crash
Closed

fix(render-utils): bug I found but could not describe in technical terms so had my AI write the specifications#5769
TomSpoct wants to merge 1 commit into
earendil-works:mainfrom
TomSpoct:fix-graphify-undefined-content-crash

Conversation

@TomSpoct

Copy link
Copy Markdown

I found a bug in the TUI renderer but could not describe it in technical terms, so I had my AI write the specifications and implementation.

The interactive TUI was crashing when certain tools (like graphify) returned a result without a content array. This was due to getTextOutput() assuming result.content was always present.

This PR adds a guard to check if result.content is an array before filtering for text and image blocks.

…rms so had my AI write the specifications

The interactive TUI was crashing when certain tools (like graphify)
returned a result without a content array. This was due to
getTextOutput() assuming result.content was always present.

Added a guard to check if result.content is an array before
filtering for text and image blocks.
@github-actions

Copy link
Copy Markdown
Contributor

This PR was auto-closed. Only contributors approved with lgtm can open PRs. Open an issue first.

Maintainers review auto-closed issues daily. Issues that do not meet the quality bar in CONTRIBUTING.md will not be reopened or receive a reply.

If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.

See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant