Fix container detail terminal isolation and working directory

This commit is contained in:
KodekaTeam committed 2026-06-19 00:27:47 +07:00
1 parent 30e1c5e934
commit 58bc5d2547
6 files changed
+109 -37

No files matched your search

+6 -2
View File
@@ -2769,14 +2769,18 @@ export const terminal = {
stderr: string;
exitCode: number;
}>("/terminal/exec", { serverId, command }),
wsTicket: (serverId: string, sessionId?: string) =>
wsTicket: (
serverId: string,
sessionId?: string,
target?: { type: "shell" } | { type: "command"; command: string },
) =>
post<{
success: boolean;
data: {
ticket: string;
expiresAt: string;
};
}>("/terminal/ws-ticket", { serverId, sessionId }),
}>("/terminal/ws-ticket", { serverId, sessionId, target }),
/** Returns WebSocket URL for interactive shell */
wsUrl: (
serverId: string,