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

+13
View File
@@ -466,6 +466,19 @@ describe('useCreateSession', () => {
expect(mocks.createSession).toHaveBeenCalledWith({ directory: '/w/a', agent: undefined }, 'local')
})
it('creates a session on an explicit server for a caller outside the server scope', async () => {
const queryClient = createQueryClient()
const { result } = renderHook(() => useCreateSession('/srv/kitchen', undefined, 'srv_kitchen'), {
wrapper: createWrapper(queryClient),
})
await act(async () => {
await result.current.mutateAsync({ agent: undefined })
})
expect(mocks.createSession).toHaveBeenCalledWith({ directory: '/srv/kitchen', agent: undefined }, 'srv_kitchen')
})
})
describe('useChildSessionReconciliation', () => {