Debug: Add comprehensive logging for user message display issue#6968
Closed
Debug: Add comprehensive logging for user message display issue#6968
Conversation
This PR adds debug logging throughout the user message rendering pipeline to help diagnose why user chat messages may not be displaying for some users. Debug points added: 1. ProgressiveMessageList.tsx: - Log all messages being processed with metadata and content types - Log when messages are hidden due to userVisible=false - Log user message rendering decisions (hasOnlyToolResponses check) 2. UserMessage.tsx: - Log every render with full message data - Log extracted text/image content and rendering decisions 3. useChatStream.ts: - Log every incoming message in pushMessage() 4. message.ts: - Log createUserMessage() calls with all parameters - Log getTextAndImageContent() extraction results 5. BaseChat.tsx: - Log isUserMessage() role checks To use: Open browser DevTools console and look for [DEBUG ...] logs. Filter by '[DEBUG' to see only these diagnostic messages. Potential causes being investigated: - metadata.userVisible being false - hasOnlyToolResponses filtering out messages - Empty textContent after extraction - CSS animation issues (opacity-0 not animating)
… is enabled Elements starting at opacity-0 with animation classes were staying invisible because the animation was disabled but opacity wasn't being set to 1. This fixes user messages not displaying for users with reduced motion enabled.
Collaborator
Author
|
closing in favor of #7047 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A user is reporting that user chat messages are not displaying in the UI, but we cannot reproduce the issue.
Debug Logging Added
This PR adds comprehensive debug logging throughout the user message rendering pipeline to help diagnose the issue.
Debug points:
How to Use
[DEBUGto see diagnostic messagesPotential Causes