-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Feat/playground messages section #11092
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
base: playground-main-fork
Are you sure you want to change the base?
Conversation
Wallgau
commented
Dec 17, 2025
- Messages list: Messages uses useChatHistory + StickToBottom to render chat history per session; shows a “New chat” empty state and a running skeleton while building.
- Message router: ChatMessage routes to UserMessage for user-sent content and BotMessage otherwise; handles error-category messages via ErrorView.
- UserMessage: Renders avatar/icon or custom profile, text/decoded message, attached files, edited flag, and hover actions. - Supports inline edit via EditMessageField, copy, and feedback. Uses guarded properties for icon/background/feedback and normalized payloads when updating messages.
- BotMessage: Renders bot avatar/icon, optional content blocks (ContentBlockDisplay) with loading state, markdown rendering, edited flag, files, and hover actions. Supports edit/copy/feedback with the same update path.
- Edit controls: EditMessageButton supplies hover-visible actions—edit (when provided), copy with toast state, and helpful/not-helpful feedback for bot messages; hides edit for audio messages.
- Support utils: convert-files normalizes file paths; useChatHistory fetches and filters messages per session/flow, sorts them, and normalizes fields (files, message text).
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
…ound button to use global playground store and removed stale props; fixed simple-sidebar uncontrolled setOpen to handle function updaters; hardened session rename edit timing; added chat header utilities (session title, session management hooks/components, logs modal, sessions dropdown/sidebar); introduced sliding playground container and supporting hooks/stores/constants/styles; refreshed publish dropdown styling. FlowToolbar now drives playground visibility via usePlaygroundStore (isPlaygroundOpen / setPlaygroundOpen) and tracks analytics off the store state.
07b77b8 to
4be141e
Compare
5234dc2 to
58093c2
Compare
58093c2 to
c2a4e57
Compare
ef5d39a to
28d6e04
Compare
…ps for Playbutton
4bad25a to
df47577
Compare