Fix role toggle functionality where switching message roles (assistant/system) did not update the UI immediately and required page refresh to see changes. Changes: - Add message.role comparison in OptimizedMessageContent memo function - Add message.role comparison in OptimizedMessageActions memo function The issue was caused by React.memo optimization that wasn't tracking role changes, preventing re-renders when only the message role property changed. Now role switches are reflected immediately in both message content display and action button states. Fixes: Role switching requires page refresh to display correctly
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| ChatArea.js | Loading commit data... | |
| CodeViewer.js | Loading commit data... | |
| ConfigManager.js | Loading commit data... | |
| CustomInputRender.js | Loading commit data... | |
| CustomRequestEditor.js | Loading commit data... | |
| DebugPanel.js | Loading commit data... | |
| FloatingButtons.js | Loading commit data... | |
| ImageUrlInput.js | Loading commit data... | |
| MessageActions.js | Loading commit data... | |
| MessageContent.js | Loading commit data... | |
| OptimizedComponents.js | Loading commit data... | |
| ParameterControl.js | Loading commit data... | |
| SettingsPanel.js | Loading commit data... | |
| ThinkingContent.js | Loading commit data... | |
| configStorage.js | Loading commit data... | |
| index.js | Loading commit data... |