Frontend chat API, hooks and the chat session page

This commit is contained in:
Chris Scott committed 2026-11-07 14:54:26 -05:00
1 parent 3c064e4b60
commit 275483f5e9
15 files changed
+1140 -110

No files matched your search

@@ -3,11 +3,13 @@ import { useLocation, useMatch } from 'react-router-dom'
import { LOCAL_OPENCODE_SERVER_ID } from '@opencode-manager/shared/schemas'
import { useAuth } from '@/hooks/useAuth'
import { useOpenCodeServers } from '@/hooks/useOpenCodeServers'
import { isAssistantPath, parseRepoRoute } from '@/lib/navigation'
import { isAssistantPath, parseChatSessionRoute, parseRepoRoute } from '@/lib/navigation'
import { useSidebarServerStore } from '@/stores/sidebarServerStore'
function isLocalRoute(pathname: string): boolean {
return parseRepoRoute(pathname).repoId !== null || isAssistantPath(pathname)
return parseRepoRoute(pathname).repoId !== null
|| isAssistantPath(pathname)
|| parseChatSessionRoute(pathname) !== null
}
/**