{"record":{"id":"ac093a37d05fa15f","repo":"openclaw/openclaw","slug":"hostids-must-be-a-bounded-array","errorCode":null,"errorMessage":"hostIds must be a bounded array","messagePattern":"hostIds must be a bounded array","errorType":"exception","errorClass":"ClaudeCatalogParamsError","httpStatus":null,"severity":"error","filePath":"extensions/anthropic/session-catalog.ts","lineNumber":1388,"sourceCode":"  hostIds?: string[];\n  cursors?: Record<string, string>;\n} {\n  if (value === undefined || value === null) {\n    return { limitPerHost: DEFAULT_PAGE_LIMIT };\n  }\n  if (!isRecord(value)) {\n    throw new ClaudeCatalogParamsError(\"Claude session catalog parameters must be an object\");\n  }\n  const allowed = new Set([\"search\", \"limitPerHost\", \"hostIds\", \"cursors\"]);\n  const unknown = Object.keys(value).find((key) => !allowed.has(key));\n  if (unknown) {\n    throw new ClaudeCatalogParamsError(`unknown Claude session catalog parameter: ${unknown}`);\n  }\n  const search = readBoundedString(value.search, MAX_SEARCH_LENGTH);\n  let hostIds: string[] | undefined;\n  if (value.hostIds !== undefined) {\n    if (!Array.isArray(value.hostIds) || value.hostIds.length > MAX_HOSTS) {\n      throw new ClaudeCatalogParamsError(\"hostIds must be a bounded array\");\n    }\n    hostIds = [\n      ...new Set(\n        value.hostIds.map((hostId) => {\n          const normalized = readBoundedString(hostId, 256);\n          if (\n            !normalized ||\n            (normalized !== CLAUDE_LOCAL_SESSION_HOST_ID && !normalized.startsWith(\"node:\"))\n          ) {\n            throw new ClaudeCatalogParamsError(\"hostId is invalid\");\n          }\n          return normalized;\n        }),\n      ),\n    ];\n  }\n  let cursors: Record<string, string> | undefined;\n  if (value.cursors !== undefined) {","sourceCodeStart":1370,"sourceCodeEnd":1406,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/anthropic/session-catalog.ts#L1370-L1406","documentation":"Error \"hostIds must be a bounded array\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/anthropic/session-catalog.ts:1388 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01804a75319da4b69c9ab98ceaa30477e22b8c0b","analyzedAt":"2026-08-12T04:37:58.197Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}