{"record":{"id":"bd3e6883ccf88f09","repo":"deepseek-ai/deepseek-harness","slug":"telemetry-capture-step-failed-string-error","errorCode":null,"errorMessage":"telemetry: capture step failed: ${String(error)}","messagePattern":"telemetry: capture step failed: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/session/session-telemetry/src/coordinator.ts","lineNumber":265,"sourceCode":"  }\n\n  /** Lazily create the per-session first-chunk tracking set. */\n  private seen(session: Session): Set<string> {\n    let set = this.chunkSeen.get(session)\n    if (!set) this.chunkSeen.set(session, set = new Set())\n    return set\n  }\n\n  /**\n   * Run one capture-side step with its exception contained: cordis `emit`\n   * is stop-on-throw, so a throwing listener would starve every subscriber\n   * registered after this plugin — nothing from the backend may escape.\n   */\n  private contain(step: () => void): void {\n    try {\n      step()\n    } catch (error) {\n      this.ctx.logger.warn(`telemetry: capture step failed: ${String(error)}`)\n    }\n  }\n}\n\n/**\n * Build the per-session clean-exit marker: emitted at the session's own\n * disposal edge, or at coordinator dispose for sessions still alive then.\n */\nfunction shutdownRecord(session: Session): SessionTelemetryRecord {\n  return {\n    channel: 'ops',\n    time: Date.now(),\n    severity: 'info',\n    attributes: { 'telemetry.op': 'shutdown', 'session.id': String(session.id) },\n    body: { op: 'shutdown' },\n  }\n}\n","sourceCodeStart":247,"sourceCodeEnd":283,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/session/session-telemetry/src/coordinator.ts#L247-L283","documentation":"Error \"telemetry: capture step failed: ${String(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/session/session-telemetry/src/coordinator.ts:265 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the telemetry capture error and fix the failing capture step (backend write, serialization)."],"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"}