feat(servers): bring linked-server sessions to parity with local

Add a read-only Source Control panel for linked servers backed by the OpenCode VCS API, broadcast remote events to every client, include recent linked-server sessions in Activity with per-server sidebar indicators, and enable the session picker, tool shortcuts, mobile activity, remote Skills panel and remote permission prompt titles.
This commit is contained in:
Chris Scott committed 2026-10-18 21:46:14 -04:00
1 parent 9ec2ed5903
commit 7874afdab9
38 files changed
+1506 -279

No files matched your search

@@ -0,0 +1,30 @@
import { ActivitySpinner } from '@/components/ui/activity-spinner'
import { cn } from '@/lib/utils'
/**
* Renders nothing unless a repo or linked server has an active session, then shows the braille
* spinner in the state colour (info while running, warning when a session needs input).
*/
export function ActivityStateIndicator({
state,
className,
}: {
state: 'needs-input' | 'running' | null
className?: string
}) {
if (state === null) return null
return (
<span
role="img"
aria-label={state === 'needs-input' ? 'Session needs input' : 'Sessions running'}
className={cn(
'inline-flex shrink-0 items-center',
state === 'needs-input' ? 'text-warning' : 'text-info',
className,
)}
>
<ActivitySpinner />
</span>
)
}
@@ -1,23 +1,12 @@
import { ActivitySpinner } from '@/components/ui/activity-spinner'
import { ActivityStateIndicator } from '@/components/activity/ActivityStateIndicator'
import { useRepoActivityState } from '@/hooks/useActiveWork'
import { cn } from '@/lib/utils'
import type { Repo } from '@/api/types'
/**
* Renders nothing unless a session in the repo is active, then shows the braille spinner in the
* state colour (info while running, warning when a session needs input).
* Shows the repo's activity spinner while a session in it needs input or is running.
*/
export function RepoActivityIndicator({ repo, className }: { repo: Repo; className?: string }) {
const state = useRepoActivityState(repo)
if (state === null) return null
return (
<span
role="img"
aria-label={state === 'needs-input' ? 'Session needs input' : 'Sessions running'}
className={cn('inline-flex shrink-0 items-center', state === 'needs-input' ? 'text-warning' : 'text-info', className)}
>
<ActivitySpinner />
</span>
)
return <ActivityStateIndicator state={state} className={className} />
}