mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
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:
1 parent
9ec2ed5903
commit
7874afdab9
38 files changed
+1506
-279
No files matched your search
@@ -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', () => {
|
||||
|
||||
Reference in new issue
Block a user