fix new chat

This commit is contained in:
Arjun 2026-02-17 17:58:19 +05:30
parent 86c7a7db03
commit ed86c51f75

View file

@ -1636,9 +1636,7 @@ function App() {
setAllPermissionRequests(new Map())
setPermissionResponses(new Map())
setSelectedBackgroundTask(null)
// Update active chat tab's runId to null
setChatTabs(prev => prev.map(t => t.id === activeChatTabId ? { ...t, runId: null } : t))
}, [activeChatTabId])
}, [])
// Chat tab operations
const applyChatTab = useCallback((tab: ChatTab) => {