{"record":{"id":"3042b7f3cc41c7b6","repo":"deepseek-ai/deepseek-harness","slug":"cancelled-3042b7","errorCode":"cancelled","errorMessage":"subagent prompt was cancelled","messagePattern":"subagent prompt was cancelled","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":850,"sourceCode":"  compute: () => SessionProjectionsBlock | undefined,\n): SessionProjectionsBlock | undefined {\n  try {\n    return compute()\n  } catch (error) {\n    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':","sourceCodeStart":832,"sourceCodeEnd":868,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L832-L868","documentation":"Error \"subagent prompt was cancelled\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:850 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the subagent prompt without aborting; check the cancellation source if unintended."],"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"}