feat(frontend): open session details from the header

Pressing the session title opens a details sheet with server, project, branch and directory and inline rename. Linked-server sessions show a server icon and their branch, child sessions show a parent session pill, a banner marks paused live updates while the stream reconnects, and the header context indicator is removed now that usage lives on the model pill.
This commit is contained in:
Chris Scott committed 2026-10-23 20:18:27 -04:00
1 parent 52162d5c4a
commit d99fcc268e
20 files changed
+732 -418

No files matched your search

+3 -7
View File
@@ -1,8 +1,9 @@
import { useNavigate, useParams, useSearchParams } from 'react-router-dom'
import { useQuery } from '@tanstack/react-query'
import { FolderGit2, GitBranch, Loader2, Plus, Server } from 'lucide-react'
import { getVcsInfo, listProjects } from '@/api/opencode'
import { listProjects } from '@/api/opencode'
import { useCreateSession } from '@/hooks/useOpenCode'
import { useVcsInfo } from '@/hooks/useVcsInfo'
import { useOpenCodeServers } from '@/hooks/useOpenCodeServers'
import { useSettingsDialog } from '@/hooks/useSettingsDialog'
import { useSSE } from '@/hooks/useSSE'
@@ -50,12 +51,7 @@ function RemoteProjectContent({ serverId, directory }: { serverId: string; direc
retry: false,
})
const vcsQuery = useQuery({
queryKey: [...serverScopedKey(['opencode', 'vcs', directory ?? ''], serverId), 'info'],
queryFn: () => getVcsInfo(directory ?? '', serverId),
enabled: isReady,
retry: false,
})
const vcsQuery = useVcsInfo(directory, serverId, { enabled: isReady })
useSSE(directory)