MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / listConfigSessions

Function listConfigSessions

scripts/mars-api.mjs:261–271  ·  view source on GitHub ↗

* Sessions belonging to one config. Same Session shape and pagination as * `listSessions`; a config that exists but has no sessions is an empty * 200, so an empty list here does NOT mean the config is gone.

(configId, { pageSize, pageToken, status } = {})

Source from the content-addressed store, hash-verified

259 * 200, so an empty list here does NOT mean the config is gone.
260 */
261 async listConfigSessions(configId, { pageSize, pageToken, status } = {}) {
262 const body = await request(
263 "GET",
264 `${CONFIGS_PATH}/${configId}${CONFIG_SESSIONS_SUBPATH}`,
265 { query: { page_size: pageSize, page_token: pageToken, status } },
266 );
267 return {
268 sessions: Array.isArray(body?.sessions) ? body.sessions : [],
269 nextPageToken: body?.next_page_token || null,
270 };
271 },
272
273 /**
274 * Sandbox sizes a manifest's `size` may name, smallest first. Each is

Callers

nothing calls this directly

Calls 1

requestFunction · 0.70

Tested by

no test coverage detected