Skip to content

[origin-review] anomalyco/opencode#44517 — LIMITED #30

Description

@kvnloo

Why this matters

Providers and transports fail intermittently; a tunable retry surface must classify the right errors without looping forever on overflow or client 4xx.

Evidence

Tip fca21c174dc5a015f4530c84b95da186149210ac (base dev):

  • Live: cd packages/opencode && bun test test/session/retry.test.ts → 70 pass / 3 fail (timeouts on policy updates, policy stops after five, one ECONNRESET conversion)
  • Core session.retry.retryable and most message-v2.fromError cases passed
  • Evidence class: BEHAVIORAL (LIMITED — flaky wall-clock under CI-like caps)

Invariant: matching API/transport capacity and 5xx text retries; context overflow and non-retryable 4xx do not.

Ask (design, light) — prospective; non-blocking

  1. Should delay/policy tests use fake timers so wall-clock flakes cannot gate merge?
  2. Is five retries the right hard stop for free-tier vs paid, or should that stay config-only?


Fork mirror of a sealed OSS review draft. Not posted upstream.

  • origin: feat: make the session retry policy configurable anomalyco/opencode#44517
  • tip: fca21c174dc5a015f4530c84b95da186149210ac
  • evidence: BEHAVIORAL — tip packages/opencode bun test test/session/retry.test.ts → 70/73 (3 timeout flakes on delay/fromError; retryable/message-v2 core green)
  • pack: 03 draft 021
  • dedupe_key: anomalyco/opencode#44517
  • github_writes_origin: 0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    grok botPosted by Grok Bot OSS review dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions