Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
MUL-7358 fix(agent): require OpenCode >= 1.1.54 so pre-fix builds cannot fill the host disk (#8510)
Bohan Jiang2e728fc6dead
diff --git a/apps/docs/content/docs/install-agent-runtime.ja.mdx b/apps/docs/content/docs/install-agent-runtime.ja.mdxindex ac487d4032..f28eb1b47c 100644--- a/apps/docs/content/docs/install-agent-runtime.ja.mdx+++ b/apps/docs/content/docs/install-agent-runtime.ja.mdx@@ -60,7 +60,7 @@ DeepSeek Harness を使う場合は、Node.js 20+ をインストールして `nログイン情報はツールがローカル環境に保存します。Multica が Claude、Codex、Cursor などの CLI のログイントークンを受け取ることはありません。<Callout type="info">-Antigravity は 1.1.10 以降、Claude Code は 2.0.0 以降、Codex は 0.100.0 以降、Copilot は 1.0.0 以降、Grok は 0.2.89 以降、Qwen Code は 0.20.0 以降、MiniMax Code は 0.1.2 以降が必要です。最低バージョンを満たしていない場合、デーモンはそのランタイムを登録しません。+Antigravity は 1.1.10 以降、Claude Code は 2.0.0 以降、Codex は 0.100.0 以降、Copilot は 1.0.0 以降、Grok は 0.2.89 以降、Qwen Code は 0.20.0 以降、MiniMax Code は 0.1.2 以降、OpenCode は 1.1.54 以降が必要です。最低バージョンを満たしていない場合、デーモンはそのランタイムを登録しません。</Callout>## 3. デーモンからコマンドを見つけられることを確認するdiff --git a/apps/docs/content/docs/install-agent-runtime.ko.mdx b/apps/docs/content/docs/install-agent-runtime.ko.mdxindex 2956a138ff..2583564ead 100644--- a/apps/docs/content/docs/install-agent-runtime.ko.mdx+++ b/apps/docs/content/docs/install-agent-runtime.ko.mdx@@ -60,7 +60,7 @@ DeepSeek Harness를 사용하려면 Node.js 20+를 설치하고 `npm install -g로그인 자격 증명은 도구가 로컬에 저장합니다. Multica는 Claude, Codex, Cursor 또는 다른 CLI의 로그인 token을 받지 않습니다.<Callout type="info">-Antigravity는 1.1.10 이상, Claude Code는 2.0.0 이상, Codex는 0.100.0 이상, Copilot은 1.0.0 이상, Grok은 0.2.89 이상, Qwen Code는 0.20.0 이상, MiniMax Code는 0.1.2 이상이 필요합니다. 최소 버전보다 낮으면 데몬이 해당 런타임을 등록하지 않습니다.+Antigravity는 1.1.10 이상, Claude Code는 2.0.0 이상, Codex는 0.100.0 이상, Copilot은 1.0.0 이상, Grok은 0.2.89 이상, Qwen Code는 0.20.0 이상, MiniMax Code는 0.1.2 이상, OpenCode는 1.1.54 이상이 필요합니다. 최소 버전보다 낮으면 데몬이 해당 런타임을 등록하지 않습니다.</Callout>## 3. 데몬이 명령을 찾을 수 있는지 확인diff --git a/apps/docs/content/docs/install-agent-runtime.mdx b/apps/docs/content/docs/install-agent-runtime.mdxindex c94077ceea..d3f7f060a6 100644--- a/apps/docs/content/docs/install-agent-runtime.mdx+++ b/apps/docs/content/docs/install-agent-runtime.mdx@@ -60,7 +60,7 @@ For DeepSeek Harness, install Node.js 20+ and run `npm install -g @deepseek-ai/dThose login credentials are stored locally by the tool itself. Multica never receives login tokens from Claude, Codex, Cursor, or any other CLI.<Callout type="info">-Antigravity requires 1.1.10 or later, Claude Code requires 2.0.0 or later, Codex 0.100.0 or later, Copilot 1.0.0 or later, Grok 0.2.89 or later, Qwen Code 0.20.0 or later, and MiniMax Code 0.1.2 or later. Below the minimum version, the daemon does not register the corresponding runtime.+Antigravity requires 1.1.10 or later, Claude Code requires 2.0.0 or later, Codex 0.100.0 or later, Copilot 1.0.0 or later, Grok 0.2.89 or later, Qwen Code 0.20.0 or later, MiniMax Code 0.1.2 or later, and OpenCode 1.1.54 or later. Below the minimum version, the daemon does not register the corresponding runtime.</Callout>## 3. Confirm the daemon can find the commanddiff --git a/apps/docs/content/docs/install-agent-runtime.zh.mdx b/apps/docs/content/docs/install-agent-runtime.zh.mdxindex c4941ec6b8..fe4a2afdb3 100644--- a/apps/docs/content/docs/install-agent-runtime.zh.mdx+++ b/apps/docs/content/docs/install-agent-runtime.zh.mdx@@ -60,7 +60,7 @@ Multica 当前会检测以下命令:这些登录凭据由工具保存在本机。Multica 不会接收 Claude、Codex、Cursor 或其他 CLI 的登录 token。<Callout type="info">-Antigravity 需要 1.1.10 或更高版本,Claude Code 需要 2.0.0 或更高版本,Codex 需要 0.100.0 或更高版本,Copilot 需要 1.0.0 或更高版本,Grok 需要 0.2.89 或更高版本,Qwen Code 需要 0.20.0 或更高版本,MiniMax Code 需要 0.1.2 或更高版本。低于最低版本时,守护进程不会注册对应运行时。+Antigravity 需要 1.1.10 或更高版本,Claude Code 需要 2.0.0 或更高版本,Codex 需要 0.100.0 或更高版本,Copilot 需要 1.0.0 或更高版本,Grok 需要 0.2.89 或更高版本,Qwen Code 需要 0.20.0 或更高版本,MiniMax Code 需要 0.1.2 或更高版本,OpenCode 需要 1.1.54 或更高版本。低于最低版本时,守护进程不会注册对应运行时。</Callout>## 3. 确认守护进程能够找到命令diff --git a/server/pkg/agent/version.go b/server/pkg/agent/version.goindex ca85e5ee79..601e7d0f69 100644--- a/server/pkg/agent/version.go+++ b/server/pkg/agent/version.go@@ -10,6 +10,11 @@ import (// MinVersions defines the minimum required CLI version for each agent type.// Versions below these will be rejected during daemon registration.+//+// Most entries below name a protocol or capability the backend speaks through,+// so an older CLI simply cannot serve a task. The opencode entry is the one+// exception and is explained at its line: that CLI works fine, it damages the+// host it runs on.var MinVersions = map[string]string{"antigravity": "1.1.10", // stream-json usage plus reliable headless --model selection"claude": "2.0.0",@@ -20,6 +25,14 @@ var MinVersions = map[string]string{"dim": "0.3.10", // cross-run session/load: per-process lock releases on graceful exit"mcode": "0.1.2", // ACP v1 session/new, prompt, MCP capability forwarding"zeroclaw": "0.8.0", // persistent ACP sessions and session/resume were added in 0.8.0+ // opencode: honors TMPDIR/TMP/TEMP from 1.1.54. Earlier builds ignore all+ // three when their embedded Bun runtime extracts a native module, writing+ // into the shared system temp dir whatever the daemon exports — one 4-8 MB+ // module per successful run, under a fresh non-content-addressed name, never+ // removed. The per-task temp dir cannot contain that, and deleting by+ // filename in a shared /tmp is not safe, so refusing the CLI is the only+ // place we can stop it. See #8392: ~2,960 files, 11.16 GiB, root at 99%.+ "opencode": "1.1.54",}// MinQuickCreateCLIVersion gates the agent-create (quick-create) flow againstdiff --git a/server/pkg/agent/version_test.go b/server/pkg/agent/version_test.goindex d9ade9c6ef..aca6288b0e 100644--- a/server/pkg/agent/version_test.go+++ b/server/pkg/agent/version_test.go@@ -215,6 +215,16 @@ func TestCheckMinVersion(t *testing.T) {{"zeroclaw", "invalid", true},{"dim", "0.2.99", true},{"dim", "invalid", true},+ // opencode: 1.1.54 is the first build that honors TMPDIR/TMP/TEMP for+ // Bun native-module extraction. 1.1.53 and 1.1.49 are the versions+ // actually measured leaking into the shared temp dir (#8392); the CLI+ // prints a bare semver, so there is no prefix to strip.+ {"opencode", "1.1.54", false},+ {"opencode", "1.1.55", false},+ {"opencode", "1.18.30", false},+ {"opencode", "1.1.53", true},+ {"opencode", "1.1.49", true},+ {"opencode", "0.15.0", true},{"unknown", "1.0.0", false},}for _, tt := range tests {