mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
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:
1 parent
477d055797
commit
0c4de2e2c0
6 files changed
+85
-186
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user