Skip to main content
This method is not currently implemented in the SDK. Session tracking is planned for a future release.

Planned Method Signature

async listSessions(): Promise<SessionInfo[]>

Planned Returns

SessionInfo[]
array
Array of session information objects

Workaround

Currently, track sessions manually in your application:
const activeSessions = new Map<string, ExecutionSession>();

// Create and track
const session = await sandbox.createSession({ id: 'my-session' });
activeSessions.set(session.id, session);

// Cleanup
await sandbox.deleteSession('my-session');
activeSessions.delete('my-session');

See Also

Build docs developers (and LLMs) love