{"record":{"id":"2af62c220ecc40ef","repo":"deepseek-ai/deepseek-harness","slug":"ask-aborted","errorCode":"ASK_ABORTED","errorMessage":"ask_user_question was aborted before the user answered","messagePattern":"ask_user_question was aborted before the user answered","errorType":"error_code","errorClass":"UserQuestionError","httpStatus":null,"severity":"error","filePath":"packages/interaction/user-questions/src/index.ts","lineNumber":94,"sourceCode":"\n  /**\n   * Ask the active UI provider and wait for the user's answer.\n   *\n   * When a caller supplies an agent, human interaction is valid only for the\n   * exact live runtime root. Runtime ownership, not durable session lineage,\n   * decides this boundary: an owned child has no human answerer and would\n   * block forever, while a lineage-bearing session resumed as a new runtime\n   * root may ask normally.\n   *\n   * @param request Questions, owner agent, and abort signal.\n   * @returns The answer chosen or typed by the human.\n   * @throws {UserQuestionError} code `CALLER_NOT_LIVE` when a supplied\n   *   agent is not the registry's exact live instance, or `DELEGATED_CALLER`\n   *   when that live agent is owned by another agent.\n   */\n  async ask(request: AskUserQuestionRequest): Promise<AskUserQuestionAnswer> {\n    if (request.signal?.aborted) {\n      throw new UserQuestionError('ask_user_question was aborted before the user answered', 'ASK_ABORTED')\n    }\n    if (request.questions.length === 0) {\n      throw new UserQuestionError('ask_user_question requires at least one question', 'EMPTY_QUESTIONS')\n    }\n    const agent = request.agent\n    if (agent !== undefined) {\n      const agents = this.ctx.get('agents')\n      if (agents === undefined || agents.get(agent.id) !== agent) {\n        throw new UserQuestionError(\n          'human interaction requires the exact live calling agent when an agent is supplied',\n          'CALLER_NOT_LIVE')\n      }\n      if (!agents.roots().includes(agent)) {\n        throw new UserQuestionError(\n          'human interaction is unavailable while the calling agent is owned by another live agent; '\n          + \"include the unresolved question or decision in the child agent's final result\",\n          'DELEGATED_CALLER')\n      }","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/interaction/user-questions/src/index.ts#L76-L112","documentation":"Error \"ask_user_question was aborted before the user answered\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/interaction/user-questions/src/index.ts:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the question; do not abort the turn while an ask_user_question call is pending."],"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"}