Before submitting
Area
Not sure (CLI health check path)
Steps to reproduce
- Configure the OpenCode provider with a binary that is a thin internal wrapper around the OpenCode CLI. The wrapper runs some startup checks before handing off, which can take a few seconds on a cold cache.
- Let that cache go cold (e.g. after it expires) so the next launch hits the slow path.
- T3 runs the health check (
<binary> --version) with its 4s timeout.
- Cold-path startup pushes
--version past 4s.
Expected behavior
The provider tolerates realistic CLI cold-start, or the probe timeout is configurable per provider instance. A single slow probe should not flip an otherwise-working, already-versioned provider to Unavailable.
Actual behavior
Probe fails with OpenCode CLI version probe timed out after 4 seconds and the provider flips to Unavailable until the next (warm) probe. OPENCODE_VERSION_PROBE_TIMEOUT = "4 seconds" is a hardcoded literal with no env var or settings override.
Impact
Minor bug or occasional failure (recurs whenever the wrapper's cache goes cold).
Version or commit
0.0.41-nightly.20260909.1439
Environment
macOS (Darwin 25.6.0); OpenCode CLI 1.18.19 invoked via a thin internal wrapper that runs startup checks.
Logs or stack traces
# warm cache
<wrapper> --version -> ~1-2s
# cold cache (wrapper does startup work first)
<wrapper> --version -> ~4.7s # exceeds the 4s probe -> provider marked Unavailable
Workaround
Wrap the binary so --version short-circuits to the raw OpenCode CLI, bypassing the wrapper's startup work.
Suggested fix
Make the version-probe timeout configurable per provider instance (or raise the default, or decouple the version probe from full CLI initialization so a cold start doesn't fail the health check).
Before submitting
Area
Not sure (CLI health check path)
Steps to reproduce
<binary> --version) with its 4s timeout.--versionpast 4s.Expected behavior
The provider tolerates realistic CLI cold-start, or the probe timeout is configurable per provider instance. A single slow probe should not flip an otherwise-working, already-versioned provider to Unavailable.
Actual behavior
Probe fails with
OpenCode CLI version probe timed out after 4 secondsand the provider flips to Unavailable until the next (warm) probe.OPENCODE_VERSION_PROBE_TIMEOUT = "4 seconds"is a hardcoded literal with no env var or settings override.Impact
Minor bug or occasional failure (recurs whenever the wrapper's cache goes cold).
Version or commit
0.0.41-nightly.20260909.1439
Environment
macOS (Darwin 25.6.0); OpenCode CLI 1.18.19 invoked via a thin internal wrapper that runs startup checks.
Logs or stack traces
Workaround
Wrap the binary so
--versionshort-circuits to the raw OpenCode CLI, bypassing the wrapper's startup work.Suggested fix
Make the version-probe timeout configurable per provider instance (or raise the default, or decouple the version probe from full CLI initialization so a cold start doesn't fail the health check).