{"record":{"id":"0fe375bfd43dc614","repo":"deepseek-ai/deepseek-harness","slug":"acp-session-update-failed-string-error","errorCode":null,"errorMessage":"acp: session/update failed: ${String(error)}","messagePattern":"acp: session/update failed: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/acp/acp/src/index.ts","lineNumber":153,"sourceCode":"  }\n\n  const assertOpen = (): void => {\n    if (closed) throw internalError('the ACP bridge has been disposed')\n  }\n\n  const requireSession = (sessionId: SessionId): SessionRecord => {\n    const record = sessions.get(sessionId)\n    if (record === undefined) throw invalidParams(`unknown session: ${sessionId}`)\n    return record\n  }\n\n  /** Send one ordered protocol update while containing transport-only failure. */\n  const notify = async (notification: SessionNotification): Promise<void> => {\n    try {\n      await conn.sessionUpdate(notification)\n    /* v8 ignore start -- the ACP SDK contains notification-handler failures; only a transport write failure reaches this guard. */\n    } catch (error: unknown) {\n      logger.warn(`acp: session/update failed: ${String(error)}`)\n    }\n    /* v8 ignore stop */\n  }\n\n  const rejectFromError = (\n    inflight: NonNullable<SessionRecord['inflight']>,\n    reason: Extract<TurnEndReason, { kind: 'error' }>,\n  ): void => {\n    inflight.reject(internalError(`turn failed: ${reason.error.message}`))\n  }\n\n  /**\n   * Settle one exact prompt only after admission, agent activity, and ordered\n   * assistant delivery have all reached quiescence.\n   */\n  const settleAfterQuiescence = (\n    record: SessionRecord,\n    inflight: NonNullable<SessionRecord['inflight']>,","sourceCodeStart":135,"sourceCodeEnd":171,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/acp/acp/src/index.ts#L135-L171","documentation":"Error \"acp: session/update failed: ${String(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/acp/acp/src/index.ts:153 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the embedded error from session/update and fix the cause (session state, payload); then retry."],"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"}