Skip to content

V2: remove retry policy from the LLM package #34992

Closed

Description

@rekram1-node

Context

@opencode-ai/llm should execute one provider-turn attempt per generate or stream call. Retry policy belongs to the consumer, matching packages/opencode, where the integration catches failures and decides whether to retry.

Scope

  • Remove automatic retry scheduling from packages/llm/src/route/executor.ts.
  • Delete retry delay/count helpers and tests that assert automatic second attempts.
  • Keep useful provider failure details for consumers, but do not expose retry hooks or retry lifecycle events.

Acceptance Criteria

  • One LLM call sends at most one provider request attempt.
  • Retry-related executor tests are removed or rewritten to assert single-attempt failures.
  • Errors still preserve enough status/header/body/provider detail for opencode-owned retry policy.

Activity

  1. self-assigned this
    on Jul 2, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Jul 2, 2026
  3. opencode-agent commented on Jul 5, 2026

    @opencode-agent
    Contributor

    Completed by merged PR #35003, which removes automatic retry policy from the LLM package and leaves consumer-owned retry work to #34995/#35002.

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

Metadata

Metadata

Assignees

Labels

2.0coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions