Skip to content

fix(chat): show messages with attachments even when text is empty - #1089

Merged
yannickmonney merged 1 commit into
mainfrom
fix/test-agent-user-input-visibility
Apr 7, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/test-agent-user-input-visibility

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

  • Extend message visibility filter to include messages with attachments or file parts
  • Messages with files but no text content are no longer hidden
  • Added 6 tests covering all message visibility scenarios

Fixes #637

The message visibility filter in chat-messages.tsx only checked for
text content, user role, or aborted status. Messages with file
attachments or file parts but empty text content were incorrectly
hidden. Add checks for attachments and fileParts so these messages
remain visible.
@coderabbitai

coderabbitai Bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@yannickmonney has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 51 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 18 minutes and 51 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ad3205d1-87cd-4efb-9752-d210da638829

📥 Commits

Reviewing files that changed from the base of the PR and between c7a11b5 and 78a903e.

📒 Files selected for processing (2)
  • services/platform/app/features/chat/components/__tests__/chat-messages.test.tsx
  • services/platform/app/features/chat/components/chat-messages.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/test-agent-user-input-visibility

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@yannickmonney
yannickmonney merged commit 87e5793 into main Apr 7, 2026
20 of 23 checks passed
@yannickmonney
yannickmonney deleted the fix/test-agent-user-input-visibility branch April 7, 2026 22:09
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.

Bug: User input not visible in "Test Agent" chat UI (custom agent)

1 participant