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

+7 -1
View File
@@ -246,11 +246,17 @@ export const useChildSessionReconciliation = (sessionID: string | undefined) =>
});
};
/**
* Creates a session in `directory` on the route's server, or on `serverIdOverride` for callers rendered
* outside the server scope that act on a linked server.
*/
export const useCreateSession = (
directory?: string,
onSuccess?: (session: { id: string }) => void,
serverIdOverride?: string,
) => {
const serverId = useOpenCodeServerId();
const routeServerId = useOpenCodeServerId();
const serverId = serverIdOverride ?? routeServerId;
const queryClient = useQueryClient();
return useMutation({