The parseProviderModel function returns { model, provider } but the code
was trying to destructure { providerId, modelId }. Fixed to correctly
use the actual return values and pass the required providers array
parameter to the function.
1. Fixed user message not appearing in global chat
2. Made project chat and global chat remember separate models
- Added separate localStorage storage for global chat model
- Project chat continues to use recentlyUsedModels from AISettings
- Global chat now stores its model independently
3. Moved Chat System Prompt setting from Preferences to System Settings
4. Removed chat pop-out functionality
- Removed isPoppedOut state from GlobalChatContext
- Removed handlePopOut function from GlobalChatPane
- Removed pop-out button from desktop chat header
- Removed isPoppedOut check from FloatingChatButton
- Add hasUnread state to track whether user has seen new messages
- Mark messages as read when chat is opened
- Mark as unread when assistant responds while chat is closed
- Change indicator from message count to simple dot for cleaner UX
The ModelSelector component uses useNavigate which requires Router context.
Move the floating chat components from App.tsx into AppRouter.tsx where
they have access to the BrowserRouter/HashRouter context.
- Add GlobalChatContext, GlobalChatProvider for managing chat state
- Create FloatingChatButton component with unread message indicator
- Create GlobalChatPane with desktop (floating panel) and mobile (full screen) views
- Features include:
- Streaming AI responses with markdown rendering
- Auto context trimming when messages exceed ~50k tokens
- Easy text copy from messages (hover to reveal copy button)
- Pop-out to separate window
- Minimize/dismiss functionality
- Clear chat history
- Mobile-optimized full-screen drawer
- Add settings in Preferences page:
- Enable/disable floating chat button
- Customize chat system prompt
- Add translations for all supported languages (en, pt, zh, ha, yo, ig)
- Integrate with existing AI provider configuration