Skip to content

[Bug]: Using Opencode as an agent executor fails #957

Open

Description

@vrlorad

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

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

Activity

  1. cocofhu00 commented on Nov 16, 2026

    @cocofhu00
    Contributor

    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.

  2. vrlorad commented on Nov 16, 2026

    @vrlorad
    Author

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

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions