Skip to content

fix: hide empty messages#54

Open
maxy-shpfy wants to merge 1 commit into
mainfrom
06-30-fix_hide_empty_messages
Open

fix: hide empty messages#54
maxy-shpfy wants to merge 1 commit into
mainfrom
06-30-fix_hide_empty_messages

Conversation

@maxy-shpfy

@maxy-shpfy maxy-shpfy commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

TL;DR

Empty agent messages are now filtered out of the chat transcript instead of being rendered as blank bubbles.

What changed?

A new isEmptyMessage utility was added to messageState.ts that identifies agent messages with no content, thinking/reasoning, attachments, or memory. In ChatMessageList, messages matching this condition are filtered out before being passed to the virtualizer and scroll hook — unless the message is still actively streaming, in which case it is kept visible since content may still arrive.

How to test?

Trigger a workflow or bundle in Prime that yields no output from the agent. Confirm that no blank or empty message bubble appears in the chat transcript. Also verify that a message that begins empty but is still streaming remains visible and renders correctly once content arrives.

Why make this change?

Prime occasionally emits agent messages with no payload (e.g. when a workflow or bundle produces no output). Previously these would render as empty bubbles in the transcript, which is confusing to users. Dropping them entirely keeps the conversation view clean and meaningful.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@maxy-shpfy maxy-shpfy marked this pull request as ready for review July 1, 2026 19:24
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