{"record":{"id":"6462a4bea37c98f3","repo":"deepseek-ai/deepseek-harness","slug":"subagent-not-resumable","errorCode":"subagent-not-resumable","errorMessage":"subagent cannot be resumed","messagePattern":"subagent cannot be resumed","errorType":"error_code","errorClass":"SubagentError","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":855,"sourceCode":"    ctx.logger.warn(`subagent.history: projections for \"${childSessionId}\" failed (serving the page without them): ${String(error)}`)\n    return undefined\n  }\n}\n\n/** Map continuation admission failures without exposing provider details. */\nfunction subagentPromptError(\n  request: RpcRequest<{ childSessionId: SessionId }>,\n  error: unknown,\n  signal: AbortSignal,\n): RpcResponse<never> {\n  const childSessionId = request.payload.childSessionId\n  if (signal.aborted) {\n    return err(request, { code: 'cancelled', message: 'subagent prompt was cancelled', details: {} })\n  }\n  if (error instanceof SubagentError) {\n    switch (error.code) {\n      case 'NOT_RESUMABLE':\n        return err(request, {\n          code: 'subagent-not-resumable',\n          message: 'subagent cannot be resumed',\n          details: { childSessionId },\n        })\n      case 'UNAUTHORIZED':\n        return err(request, {\n          code: 'subagent-unauthorized',\n          message: 'subagent does not belong to this parent',\n          details: { childSessionId },\n        })\n      case 'DRAINING':\n      case 'ACTIVATION_CLOSING':\n      case 'CONTINUATION_UNAVAILABLE':\n      case 'PERSISTENCE_UNAVAILABLE':\n        return err(request, {\n          code: 'subagent-delivery-unavailable',\n          message: 'subagent follow-up is temporarily unavailable',\n          details: { childSessionId },","sourceCodeStart":837,"sourceCodeEnd":873,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L837-L873","documentation":"Error \"subagent cannot be resumed\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:855 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The subagent cannot be resumed in its current state; start a new subagent instead."],"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"}