Skip to content

[FEATURE]: opencode run --timeout=60s #3583

Closed as not planned
Closed as not planned

Description

@segoon

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

If running opencode run in scripts, I want to see it explicitly fail if it cannot finish in X seconds.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Oct 30, 2025
  2. rekram1-node commented on Oct 30, 2025

    @rekram1-node
    Contributor

    someone has a pr that will address this soon

  3. AurelienRibon commented on Oct 31, 2025

    @AurelienRibon
    Contributor

    @segoon See #3498
    Note that this PR is about a timeout for a single opencode model request (calls to the underlying LLM). An execution of opencode run can produce dozens of LLM calls.

    If you need to timeout the entire opencode run loop after X seconds, you should do that externally using whatever system you're using. If called from bash, there are multiple ways to timeout any script. If called from a python or JS code, use the builtin timeout features (option timeout for child_process::spawn for example).

    It should not be the responsibility of opencode to ensure a maximum duration is respected for the entire loop, since it can be monitored from outside tools.

  4. paulgear commented on Jan 30, 2026

    @paulgear

    The --timeout PR seems to have been closed due to some automated processes making it non-viable to leave long-running PRs open. Any chance this will get looked at again soon?

  5. peter-mw commented on Mar 8, 2026

    @peter-mw

    Any news on this ?

  6. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  7. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions