MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / pauseSession

Function pauseSession

ui/src/components/workspace/api.ts:359–365  ·  view source on GitHub ↗
(wsId: string, sessionId: string)

Source from the content-addressed store, hash-verified

357
358/** Pause a session — kills its PTY but keeps the record so it can be resumed later. */
359export async function pauseSession(wsId: string, sessionId: string): Promise<boolean> {
360 const res = await fetch(
361 `/api/workspaces/${encodeURIComponent(wsId)}/sessions/${encodeURIComponent(sessionId)}/pause`,
362 { method: 'POST' },
363 );
364 return res.ok;
365}
366
367/**
368 * Resume a paused session. Server re-spawns the PTY using the adapter's resume

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected