Skip to content

v0.4.11 — OpenCode resolve timeout protection

Choose a tag to compare

@Tefx Tefx released this 10 May 07:46
· 2698 commits to main since this release

Highlights

  • Prevents OpenCode plugin runtime hooks from blocking indefinitely before provider requests.
  • Adds LARVA_OPENCODE_RESOLVE_TIMEOUT_MS with a 5000ms default and invalid/zero/negative fallback handling.
  • Timed-out runtime resolves now degrade to stale last-known-good prompts or fail-closed prompts without leaking [larva:<id>] placeholders.
  • Includes packaged plugin timeout behavior in wheel/sdist artifacts.

Verification

  • uv run python -m pytest -q → 553 passed
  • uv run ruff check tests/shell/test_opencode_plugin_contract.py → passed
  • invar_guard changed=true → passed
  • invar_guard changed=false → ok=true, errors=0
  • uv build --out-dir ... + artifact inspection → built sdist and wheel with timeout behavior