{"record":{"id":"c474b61239bfd952","repo":"deepseek-ai/deepseek-harness","slug":"timeout-c474b6","errorCode":"TIMEOUT","errorMessage":"pi-ai stream idle timeout after ${streamIdleTimeoutMs}ms","messagePattern":"pi-ai stream idle timeout after (.+?)ms","errorType":"exception","errorClass":"LlmError","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-pi-ai/src/adapter.ts","lineNumber":402,"sourceCode":"          if (result.done) {\n            exhausted = true\n            return\n          }\n          yield result.value\n        }\n      } finally {\n        if (!exhausted) {\n          consumer.abort('pi-ai stream consumer stopped')\n          try {\n            await iterator.return(undefined)\n          } catch (_abortedSdkTeardown) {\n            // The stable signal already owns SDK termination; return-time abort cannot add an outcome.\n          }\n        }\n      }\n    } catch (error: unknown) {\n      if (timeoutOf(watchdog.signal, 'LLM_STREAM_IDLE_TIMEOUT') !== undefined) {\n        throw new LlmError(`pi-ai stream idle timeout after ${streamIdleTimeoutMs}ms`, 'TIMEOUT', { cause: error })\n      }\n      if (options.signal?.aborted) {\n        throw new LlmError('pi-ai request aborted by caller', 'ABORTED', { cause: error })\n      }\n      throw error\n    } finally {\n      consumer.abort('pi-ai stream consumer stopped')\n    }\n  }\n}\n","sourceCodeStart":384,"sourceCodeEnd":413,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-pi-ai/src/adapter.ts#L384-L413","documentation":"Error \"pi-ai stream idle timeout after ${streamIdleTimeoutMs}ms\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-pi-ai/src/adapter.ts:402 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the request; raise streamIdleTimeoutMs if the provider is slow to start streaming."],"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"}