t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Failed to execute OpenCode CLI health check

Open aladicf opened this issue 7 months ago • 5 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Downloaded the newest OpenCode on my Windows machine.
  2. Subscribed to OpenCode Go plan.
  3. Connected the CLI to my API Key and tested if it works, it did.
  4. Opened newest nightly version of T3Code(i also tried latest stable) and saw an error message under OpenCode Section in T3Code Settings.

Expected behavior

Expected it to give the same message/notice as it does under Codex section. Authenticated - Plan name

Actual behavior

Got this message instead.

OpenCode v1.14.24 Unavailable - Failed to execute OpenCode CLI health check: Timed out waiting for OpenCode server start after 5000ms.

Impact

Blocks work completely

Version or commit

No response

Environment

Windows 10 / Newest Nightly and Stable T3Code / Node 25.9.0 / Bun 1.3.13 / OpenCode 1.14.24

Logs or stack traces


Screenshots, recordings, or supporting files

Screenshot_1.png Screenshot_2.png

Workaround

No response

aladicf avatar Apr 24 '26 19:04 aladicf

Image Image

The settings could figure out the Opencode Version, But complains "Not found - OpenCode CLI (opencode) is not installed or not on PATH."

ssswagatss avatar Apr 27 '26 12:04 ssswagatss

Did you install opencode with npm i -g opencode-ai? If you did, then this is a duplicate of #2163 with a proposed fix in #2183.

Try running the following and check if you see opencode.cmd to confirm:

where.exe opencode
# C:\Program Files\nodejs\opencode
# C:\Program Files\nodejs\opencode.cmd

adammansfield avatar Apr 27 '26 12:04 adammansfield

Did you install opencode with npm i -g opencode-ai? If you did, then this is a duplicate of #2163 with a proposed fix in #2183.

Try running the following and check if you see opencode.cmd to confirm:

where.exe opencode
# C:\Program Files\nodejs\opencode
# C:\Program Files\nodejs\opencode.cmd

that doesnt have anything to do with my issue.. he commented a different issue on mine..

aladicf avatar Apr 27 '26 13:04 aladicf

More info concerning this:

In my experience, if you spin up the Opencode server (opencode web) yourself and configure T3Code settings to hook up with the server manually, the issue does not persist and the Opencode provider works well on T3Code in that situation.

This has been my workaround for many weeks now.

AJ-505 avatar Jun 21 '26 18:06 AJ-505

Closing as fixed for the reported five-second OpenCode startup failure by merged PR #4132, which raises the health-check deadline to 30 seconds. Please file a fresh report with current logs if bundled local launch still fails for another cause.

juliusmarminge avatar Jul 20 '26 14:07 juliusmarminge