[PR #2998] Increase default provider timeout from 5 minutes to 15 minutes #10506

Closed
opened 2026-02-16 18:15:10 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2998

State: closed
Merged: No


Summary

Increase default provider timeout from 5 minutes to 15 minutes to better align with industry standards and prevent timeouts during long-running operations.

Problem

The current 5-minute default timeout causes issues with complex coding tasks that require longer processing time, particularly with larger codebases or complex refactoring operations.

Research

  • Aider: No default timeout (user configurable)
  • OpenAI: 10-minute default timeout
  • Anthropic: 15-minute default timeout
  • Current opencode: 5-minute default timeout

Solution

  • Increase default timeout from 300,000ms (5 minutes) to 900,000ms (15 minutes)
  • Update schema documentation to reflect the new default
  • Maintains backward compatibility - users can still configure custom timeouts per provider

Changes

  • packages/opencode/src/config/config.ts: Updated default timeout value and documentation in Zod schema

Testing

  • Code formatting passes (bun run script/format.ts)
  • No breaking changes to existing API
  • Users can still override timeout per provider in opencode.json

Impact

  • Better user experience for complex coding tasks
  • Aligns with industry standards (Anthropic's 15-minute default)
  • Reduces timeout-related interruptions during development workflows
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2998 **State:** closed **Merged:** No --- ## Summary Increase default provider timeout from 5 minutes to 15 minutes to better align with industry standards and prevent timeouts during long-running operations. ## Problem The current 5-minute default timeout causes issues with complex coding tasks that require longer processing time, particularly with larger codebases or complex refactoring operations. ## Research - **Aider**: No default timeout (user configurable) - **OpenAI**: 10-minute default timeout - **Anthropic**: 15-minute default timeout - **Current opencode**: 5-minute default timeout ## Solution - Increase default timeout from 300,000ms (5 minutes) to 900,000ms (15 minutes) - Update schema documentation to reflect the new default - Maintains backward compatibility - users can still configure custom timeouts per provider ## Changes - packages/opencode/src/config/config.ts: Updated default timeout value and documentation in Zod schema ## Testing - Code formatting passes (bun run script/format.ts) - No breaking changes to existing API - Users can still override timeout per provider in opencode.json ## Impact - Better user experience for complex coding tasks - Aligns with industry standards (Anthropic's 15-minute default) - Reduces timeout-related interruptions during development workflows
yindo added the pull-request label 2026-02-16 18:15:10 -05:00
yindo closed this issue 2026-02-16 18:15:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10506