Skip to content

Fix hasExpandableContent to check cachedImage instead of imageData#1908

Merged
siddseethepalli merged 1 commit into
mainfrom
fix/has-expandable-content-check
Feb 14, 2026
Merged

Fix hasExpandableContent to check cachedImage instead of imageData#1908
siddseethepalli merged 1 commit into
mainfrom
fix/has-expandable-content-check

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented Feb 14, 2026

Summary

Fixes inconsistency in ToolCallChip.hasExpandableContent flagged by Devin review on PR #1905.

  • hasExpandableContent was checking toolCall.imageData != nil, but the actual rendering (line 66) uses toolCall.cachedImage
  • If imageData contains invalid base64, cachedImage would be nil while imageData is non-nil, showing a chevron for an empty expandable area
  • Changed to check toolCall.cachedImage != nil to stay consistent with what actually renders

Test plan

  • Verified the fix aligns the expandability check with the rendering path

Open with Devin

hasExpandableContent was checking toolCall.imageData != nil, but the
actual rendering uses toolCall.cachedImage. If imageData contains
invalid base64, cachedImage would be nil while imageData is non-nil,
causing an expandable chip with no visible content when expanded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@siddseethepalli siddseethepalli self-assigned this Feb 14, 2026
@siddseethepalli siddseethepalli merged commit 05239e2 into main Feb 14, 2026
@siddseethepalli siddseethepalli deleted the fix/has-expandable-content-check branch February 14, 2026 17:56
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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