mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Frontend chat API, hooks and the chat session page
This commit is contained in:
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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user