Fix global chat issues and move chat system prompt setting

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
This commit is contained in:
MK Fain committed 2025-12-03 20:03:53 -06:00
1 parent 477d055797
commit 0c4de2e2c0
6 files changed
+85 -186

No files matched your search

+3 -3
View File
@@ -5,11 +5,11 @@ import { useAppContext } from '@/hooks/useAppContext';
import { cn } from '@/lib/utils';
export function FloatingChatButton() {
const { isOpen, setIsOpen, isPoppedOut, hasUnread } = useGlobalChat();
const { isOpen, setIsOpen, hasUnread } = useGlobalChat();
const { config } = useAppContext();
// Don't render if disabled in settings or if popped out
if (config.globalChatEnabled === false || isPoppedOut) {
// Don't render if disabled in settings
if (config.globalChatEnabled === false) {
return null;
}