close
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: anomalyco/opencode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
...
head repository: Archipel/opencode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 10 files changed
  • 1 contributor

Commits on Aug 16, 2026

  1. feat(session): configurable retry schedule for failed provider requests

    Transient provider overloads can outlive the hardcoded retry schedule
    (5 retries, 2s/4s/8s/16s/30s), causing sessions to give up mid-task.
    
    Add an optional top-level `retry` config object with optional
    `initial_delay_ms`, `backoff_factor`, `max_retries`, and
    `max_delay_ms` fields that override the corresponding constants in
    SessionRetry when present. When the config has no `retry` object the
    schedule is byte-identical to before. Retry-After / Retry-After-Ms
    response headers still take precedence over the exponential schedule,
    and non-retryable errors are never retried.
    Thomas Weyn
    Thomas Weyn committed Aug 16, 2026
    Configuration menu
    Copy the full SHA
    4bf6d7b View commit details
    Browse the repository at this point in the history
  2. chore(opencode): allow infinite retries via max_retries: -1; bump to …

    …1.18.18-patched.4bf6d7bdc
    
    - max_retries now accepts any integer; negative values mean unlimited retries\n  (keeps old docs default of 5, no behavior change when unset).\n- Version string documents the local patch lineage: 1.18.18-patched.4bf6d7bdc.
    Thomas Weyn
    Thomas Weyn committed Aug 16, 2026
    Configuration menu
    Copy the full SHA
    3d71473 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2026

  1. feat(session): automatic model fallback on provider rate limits

    A model can now declare a `fallback` (provider/model) plus optional
    `fallback_cooldown_ms`. On a 429/rate-limit error the session swaps to
    the fallback for the rest of the cooldown window instead of burning
    retry attempts, then returns to the original model. Retry-After /
    Retry-After-Ms headers take precedence over the configured cooldown,
    and fallback chains are walked (cycle-safe) when the target is also
    cooling. 429 is additionally treated as retryable by the schedule.
    Thomas Weyn
    Thomas Weyn committed Aug 21, 2026
    Configuration menu
    Copy the full SHA
    f212355 View commit details
    Browse the repository at this point in the history
  2. chore: sync bun.lock with patched opencode version

    Thomas Weyn
    Thomas Weyn committed Aug 21, 2026
    Configuration menu
    Copy the full SHA
    e47a0fc View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'upstream/dev' into feat/configurable-retry

    # Conflicts:
    #	bun.lock
    #	packages/opencode/package.json
    Thomas Weyn
    Thomas Weyn committed Aug 21, 2026
    Configuration menu
    Copy the full SHA
    789186e View commit details
    Browse the repository at this point in the history
Loading