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 +3,6 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'
import { ArrowLeft, FileText, GitBranch, Loader2, RefreshCw } from 'lucide-react'
import {
getVcsDiff,
getVcsInfo,
listVcsStatus,
type VcsFileDiff,
type VcsFileStatus,
@@ -16,6 +15,7 @@ import { cn } from '@/lib/utils'
import { serverScopedKey } from '@/lib/serverScope'
import { useRefreshOnOpen } from '@/hooks/useRefreshOnOpen'
import { useMobile } from '@/hooks/useMobile'
import { useVcsInfo } from '@/hooks/useVcsInfo'
import { GIT_UI_COLORS } from '@/lib/git-status-styles'
import type { GitFileStatus } from '@/types/git'
@@ -60,11 +60,7 @@ export function RemoteSourceControlContent({
[directory, serverId],
)
const infoQuery = useQuery({
queryKey: [...vcsKey, 'info'],
queryFn: () => getVcsInfo(directory, serverId),
retry: false,
})
const infoQuery = useVcsInfo(directory, serverId)
const statusQuery = useQuery({
queryKey: [...vcsKey, 'status'],