-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If user input too long, the conversation can not display all the input #8815
Comments
I found a similar issue that might be relevant to your problem: Nested code blocks or other markdown blocks in the chat window need a copy button for easy code copying. This issue is closed and was last updated on April 07, 2024. The suggested solution was to duplicate the issue to another one [1]. Regarding your specific issue with long user messages not being displayed properly, the current implementation does not explicitly truncate or handle long user messages. They are displayed in their entirety within the chat interface, which might cause formatting issues if the message is too long [2]. To address this, you might consider implementing CSS styles to handle text overflow, such as Additionally, there is no existing functionality for adding copy or play buttons to user messages. This feature is currently only available for AI messages. You might need to extend the existing components to include these buttons for user messages as well. If you need further assistance with implementing these changes, feel free to ask! |
Can you provide some example texts? |
Hi, @sideef5ect. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. Issue Summary:
Next Steps:
Thank you for your understanding and contribution! |
Self Checks
Dify version
0.8.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
send a long text with code, the user message can not be displayed correctly, the response from AI is good.
✔️ Expected Behavior
The user message should also be well formatted.
BTW, is it possible to also have the copy button for user messages? the user message should be treated as the same of the ai messages? Why there is no copy button and the play button for user messages?
❌ Actual Behavior
can not review the user messages because of bad formatting.
The text was updated successfully, but these errors were encountered: