{"record":{"id":"36d40dd2b70c0fd6","repo":"deepseek-ai/deepseek-harness","slug":"session-not-found-36d40d","errorCode":"session-not-found","errorMessage":"error.message","messagePattern":"error\\.message","errorType":"error_code","errorClass":"ApiRemoteSessionNotFound","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2174,"sourceCode":"        try {\n          const source = await historySourceFor(sessionId)\n          // Both awaits happen BEFORE the cut. Ensuring the recorded\n          // composition's standing mount is what registers its projection\n          // units, so a first cold read would otherwise serve a baseline\n          // missing every preset-owned key; and an attached session keeps\n          // appending, so awaiting between the two reads would pair events cut\n          // at N with a baseline folded to N+1.\n          const scope = await presenterScopeFor(sessionId, sourceSession(source))\n          const cut = historyCutOf(source, beforeSeq === undefined)\n          const page = historyPage(ctx, cut.events, beforeSeq, maxMessages, scope)\n          return ok(request, {\n            events: page.events,\n            hasMore: page.hasMore,\n            ...cut.projections === undefined ? {} : { projections: cut.projections },\n          })\n        } catch (error: unknown) {\n          if (error instanceof SessionNotFound) {\n            return err(request, { code: 'session-not-found', message: error.message, details: { sessionId } })\n          }\n          return err(request, {\n            code: 'internal',\n            message: `history unavailable for session \"${sessionId}\": ${String(error)}`,\n            details: {},\n          })\n        }\n      },\n\n      async models(request) {\n        const { sessionId } = request.payload\n        const found = await agentFor(sessionId)\n        if ('error' in found) return err(request, found.error)\n        const current = selectionFor(found.agent).current\n        const { groups, failures } = await buildModelCatalog(ctx)\n        const routable = routeServed(current.provider)\n        return ok(request, { current: { ...current }, routable, groups, failures })\n      },","sourceCodeStart":2156,"sourceCodeEnd":2192,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2156-L2192","documentation":"Error \"error.message\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2174 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the forwarded error message in the response or logs and fix the underlying failure it names."],"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"}