{"record":{"id":"0619ff9dd03c35c2","repo":"deepseek-ai/deepseek-harness","slug":"session-search-provider-repeated-a-continuation-cu","errorCode":null,"errorMessage":"session search provider repeated a continuation cursor","messagePattern":"session search provider repeated a continuation cursor","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2053,"sourceCode":"                || hit.bestMatch.sessionId !== hit.header.id\n                || hit.bestMatch.surface !== 'current'\n                || !MESSAGE_TYPES.has(hit.bestMatch.type)\n                || acceptedIds.has(hit.header.id)\n              ) continue\n              const snippet = truncateUnicodeCodePoints(\n                hit.bestMatch.snippet,\n                SESSION_SEARCH_SNIPPET_MAX_CODE_POINTS,\n              )\n              acceptedIds.add(hit.header.id)\n              authorized.push({\n                sessionId: hit.header.id,\n                snippet,\n              })\n            }\n            const nextCursor = page.nextCursor\n            if (nextCursor !== undefined) {\n              if (seenCursors.has(nextCursor)) {\n                throw new Error('session search provider repeated a continuation cursor')\n              }\n              seenCursors.add(nextCursor)\n            }\n            if (authorized.length > SESSION_SEARCH_RESULT_LIMIT || nextCursor === undefined) break\n            cursor = nextCursor\n          }\n          return ok(request, {\n            items: authorized.slice(0, SESSION_SEARCH_RESULT_LIMIT),\n            hasMore: authorized.length > SESSION_SEARCH_RESULT_LIMIT,\n          })\n        } catch (error: unknown) {\n          if (\n            isAborted(signal)\n            || (error instanceof SessionQueryError && error.code === 'SESSION_QUERY_ABORTED')\n          ) return cancelled()\n          // XXX: Redact provider details before exposing this gateway beyond\n          // its current single-user local deployment.\n          return err(request, {","sourceCodeStart":2035,"sourceCodeEnd":2071,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2035-L2071","documentation":"Error \"session search provider repeated a continuation cursor\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2053 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":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}