You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HeadersTimeoutError after 5 minutes when using @opencode-ai/sdk versions > 1.3.3 #20119
When using @opencode-ai/sdk version 1.3.4 or higher (up to the current latest 1.3.7), the SDK fails with a HeadersTimeoutError after approximately 5 minutes of operation. This issue does not occur in version 1.3.3, which works correctly.
The error occurs during SDK operations (specifically when calling client.session.prompt()), suggesting a timeout configuration change or network handling regression was introduced after version 1.3.3.
code = 'UND_ERR_HEADERS_TIMEOUT'
message = 'Headers Timeout Error'
name = 'HeadersTimeoutError'
stack = 'HeadersTimeoutError: Headers Timeout Error
at FastTimer.onParserTimeout [as _onTimeout] (node:internal/deps/undici/undici:6827:32)
at Timeout.onTick [as _onTimeout] (node:internal/deps/undici/undici:528:17)
at listOnTimeout (node:internal/timers:608:17)
at process.processTimers (node:internal/timers:543:7)'
If this is a different root cause (e.g., a regression introduced after v1.3.3 specifically), please add that context to help distinguish the two issues.
Activity
github-actions commentedon Mar 30, 2026
This issue might be a duplicate of an existing issue. Please check:
HeadersTimeoutErrorafter 5 minutes when usingsession.prompt()with the SDK — identical undici stack trace and root cause (Node.js undiciheadersTimeoutof 300,000ms).If this is a different root cause (e.g., a regression introduced after v1.3.3 specifically), please add that context to help distinguish the two issues.
github-actions commentedon Jul 5, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.