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
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user