Function
pauseSession
(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. */ |
| 359 | export 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
Tested by
no test coverage detected