LoopForge icon indicating copy to clipboard operation
LoopForge copied to clipboard

[Bug]: Using Opencode as an agent executor fails

Open vrlorad opened this issue 2 weeks ago • 3 comments

Component / host

Platform — web / API

Edition

Platform

LoopForge version

0.3.8

What happened?

I have configured Opencode as the only executor for my new project with the working Opencode API key and baseURL and successfully connected (I can see available models from Opencode), but when I submitted the prompt to the chat with Opencode as selected executor/agent I got the following error in logs:

platform-1  | 2026/11/16 09:46:19 agent-tool assistant-chat mode=confirm raw=confirm sid=chat-db2d3938e1bf1f3c29e1ede04940382b
platform-1  | 2026/11/16 09:46:19 assistant CLI resolve failed: 服务器未安装 OpenCode CLI(opencode),请联系管理员安装后再使用 OpenCode 模型

so I cannot continue.

Looks like an issue with "Automatic Installation For First Use" as Opencode CLI should be added to the Loopforge container in this way.

Reproduction

  1. Create a new project
  2. Configure Opencode as an executor
  3. Submit the prompt to the chat window with Opencode as selected agent

Sanitized diagnostics


Safety checks

  • [x] I removed credentials, private endpoints, internal identifiers, and personal data.
  • [x] I searched existing issues for duplicates.

vrlorad avatar Nov 16 '26 10:11 vrlorad

Thanks for the report! As I understand it, on 0.3.8 you configured OpenCode as the only executor (the API key and base URL work, and models are listed), but sending a chat message with OpenCode selected fails with assistant CLI resolve failed, saying the OpenCode CLI is not installed on the server.

We've seen this and will look into it through the regular issue queue. The version, reproduction steps and log output you provided are very helpful.

cocofhu00 avatar Nov 16 '26 10:11 cocofhu00

Looks like the #892 opened for Claude Code as an executor.

vrlorad avatar Nov 16 '26 10:11 vrlorad

This looks like the missing-CLI path addressed by #183, which is included in v0.4.3. In a platform-hosted conversation, a missing OpenCode CLI now offers an Install action. Once the install finishes, resend the prompt.

If this still happens on v0.4.3, could you share whether the conversation runs on the platform or a connected runner, whether the Install action appeared, and any sanitized install error? Connected runners manage their own CLI installations. I verified the release includes the change, but I have not reproduced your deployment.

yang0228 avatar Nov 29 '26 18:11 yang0228