Skip to content
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

UI rendering of User "Bubble" on Chat history reload #1893

Open
gdwlf opened this issue Feb 14, 2025 · 2 comments
Open

UI rendering of User "Bubble" on Chat history reload #1893

gdwlf opened this issue Feb 14, 2025 · 2 comments
Labels
bug Something isn't working frontend Pertains to the frontend. needs-triage

Comments

@gdwlf
Copy link

gdwlf commented Feb 14, 2025

Describe the bug
When a User (role / actor = user) submits a chat message, the front end UI renders that into a bubble. Assistant messages are rendered into the left hand version (article?). On re-load of the chat screen, messages are read from the history and rendered to the UI but because they're not rendered through the submit button, they are only rendered in the same style as the Assistant messages.

The defect is therefore - live submission format of User messages can not be sustained through a UI refresh / chat history resume.

To Reproduce
Start a chat session
Input a chat message - Message is rendered right justified in bubble. Save chat message to file. "Role=user"
Receive response - Message is rendered left justified as type "Article". Save response message to file. "Role=assistant"

Refresh UI, re-read messages from history.
You'll see messages are all rendered left justified, no bubble for the User messages.

Expected behavior
Left justified assistant messages
Right justified bubbled user messages on UI refresh.

Screenshots
Note: the screenshot with the bubble message is the first step. The screenshot with the messages all similarly rendered is second.

Image Image

Desktop (please complete the following information):

  • OS: Mac OS Monterey 12.7.5 and onwards. Not an OS problem, is a UI rendering issue on clMessage.send
  • Browser Chrome and Safari
  • Version Version 131.0.6778.265 (Official Build) (x86_64)

Additional context
None.

@dosubot dosubot bot added bug Something isn't working frontend Pertains to the frontend. labels Feb 14, 2025
@willydouhard
Copy link
Collaborator

what data layer are you using?

@gdwlf
Copy link
Author

gdwlf commented Feb 17, 2025

what data layer are you using?

For now it's just a JSON file at the simplest structure attempting to utilise Role (User | Assistant) that is then translated to Author as per the standard on_chat_start which then does the .send() per message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Pertains to the frontend. needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants