{"record":{"id":"240fe428635fc1e1","repo":"deepseek-ai/deepseek-harness","slug":"message-message-id-is-already-pending","errorCode":null,"errorMessage":"message \"${message.id}\" is already pending","messagePattern":"message \"(.+?)\" is already pending","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/agent/src/inbox.ts","lineNumber":216,"sourceCode":"    const inbox = this.state[splice.target]\n    return inbox.splice(splice.start, splice.removedCount ?? 0, ...splice.inserted)\n  }\n\n  /** Validate one normalized splice against the current projection. */\n  private validate(splice: SessionEventMap['agent/inbox/spliced']): void {\n    const inbox = this.state[splice.target]\n    const removedCount = splice.removedCount ?? 0\n    if (!Number.isSafeInteger(splice.start) || splice.start < 0 || splice.start > inbox.length\n      || !Number.isSafeInteger(removedCount) || removedCount < 0\n      || splice.start + removedCount > inbox.length) {\n      throw new Error('invalid inbox splice')\n    }\n    const candidate = inbox.toSpliced(splice.start, removedCount, ...splice.inserted)\n    const ids = new Set<string>()\n    for (const message of splice.target === 'next-turn'\n      ? [...candidate, ...this.nextStep]\n      : [...this.nextTurn, ...candidate]) {\n      if (ids.has(message.id)) throw new Error(`message \"${message.id}\" is already pending`)\n      ids.add(message.id)\n    }\n  }\n}\n","sourceCodeStart":198,"sourceCodeEnd":221,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/agent/src/inbox.ts#L198-L221","documentation":"Error \"message \"${message.id}\" is already pending\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/agent/src/inbox.ts:216 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait for or cancel the pending message before sending another with the same id."],"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"}