deepseek-ai/deepseek-harness · error · Error

question cancellation rejected: ${receipt.reason}

Error message

question cancellation rejected: ${receipt.reason}

What it means

Error "question cancellation rejected: ${receipt.reason}" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/client/ui-user-questions/src/client/contract/slots.ts:130

   * @param answer - complete structured answer batch.
   */
  async answer(answer: QuestionAnswer): Promise<void> {
    const receipt = await this.wait.respond({
      ok: true, value: { sessionId: this.wait.sessionId, answer },
    })
    if (!receipt.accepted) {
      throw new Error(`question response rejected: ${receipt.reason}`)
    }
  }

  /** Reject the whole wait (the host resolves the tool call as cancelled); a rejected receipt throws. */
  async cancel(): Promise<void> {
    const receipt = await this.wait.respond({
      ok: false,
      error: { code: 'cancelled', message: 'the user closed this question request', details: {} },
    })
    if (!receipt.accepted) {
      throw new Error(`question cancellation rejected: ${receipt.reason}`)
    }
  }
}

/**
 * Full component props: the framework runtime share (chain currency +
 * session/global standard kit) plus the chain `matched` share — the entry's
 * selector result, already narrowed to the question carrier — plus the
 * standard locale seat; the carrier plus the domain face above carry the
 * whole behavior surface.
 */
export type QuestionComposerProps =
  PropsRuntime<'conversation.composer'> & { matched: QuestionWait } & PropsLocale<'question'>

View on GitHub (pinned to b150a551b8)

Solutions

  1. Read the rejection reason for the cancellation and retry within the allowed contract.

When it happens

Trigger: Thrown at packages/client/ui-user-questions/src/client/contract/slots.ts:130 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/c812f719a010e871. Report an issue: GitHub.