ACP: slash commands execute but never stream their output
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- cli
調査の方向性
まず packages/cli/src/acp/turn.ts を読み、特に submit と Fiber.join(events) 周辺のコマンドプロンプトの経路を確認してください。ターンごとのイベントサブスクリプションがどのように解放されるかを追い、通常のプロンプト経路と比較してください。ACP のスラッシュコマンドで再現してください。ターンが終了する前に、その出力と権限の更新があればそれらが session/update を通じて送信されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
User-visible symptoms
Running as an ACP agent (in JetBrains Rider 2026.2): slash commands (built-in like /init or custom) execute, but their output is not visible in the chat.
Plain prompts in the same session work normally.
Another ACP agent in the same IDE does show its slash-command output, so the client's rendering path is fine.
At the protocol level
session/prompt replies end_turn immediately; no session/update follows for that turn.
Example
Rider's ACP log (llm.agent.extended.logging=true):
20:44:23,425 → session/prompt id=5 {"prompt":[{"type":"text","text":"/my-test"}]}
20:44:23,457 ← {"stopReason":"end_turn","_meta":{}} ← 32 ms
… no ACP traffic for 4 m 16 s …
20:48:39,687 → session/set_config_option id=6
The command did run (it produced its effect).
OpenCode's session_message table shows that the turn ran to completion after it was closed on wire:
seq 20 user 20:44:23.531 <command body> ← AFTER end_turn
seq 21 assistant 20:44:24.281 → completed 20:44:32.895 <agent reply>
...
seq 28 idle 20:44:32.901 outcome=succeeded
my-test was advertised in available_commands_update so this is the recognized-command path (not the unknown-/ fallthrough).
OpenCode version
2.0.26
Steps to reproduce
- Install OpenCode as an ACP agent in Rider.
I used a custom agent path.
1.1. Install OpenCode independently from Rider.
1.2. Add OpenCode as a custom agent:
"default_mcp_settings": {},
"agent_servers": {
"OpenCode": {
"command": "full/path/to/opencode.exe",
"args": ["acp"]
}
}
}
- Run any slash command.
Operating System
Windows 10
Suspected cause
packages/cli/src/acp/turn.ts:
yield* submit(attached, prompt)
if (prompt.command) return "succeeded" as const // ←
return yield* Fiber.join(events)
For command prompts the turn returns succeeded before Fiber.join(events), and then the release step closes the per-turn event subscription, so no session/update (and no permission.asked) can be emitted.
Possible fix
PR #49208 (open; probably needs rebase onto current v2).
- 主要言語
- TypeScript
- スター
- 213k
- フォーク
- 28.4k
- 平均マージ
- 8時間 51分
- マージ済み PR(30日)
- 289
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
reproduced
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#55369 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
reproduced
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
anomalyco/opencode#55351 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#55285 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
opencode on clean macos zsh .export path not working because it append and it fails because no ~/.zshrc file対応中かも @fihaaade が 1 日前に担当しました。 オープンreproduced
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anomalyco/opencode#55068 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#54919 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vercel/streamdown#673 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
docs(stream-protocol): document messageMetatadata on start/finish and the message-metadata chunkオープンfactory-active task-identify-harness-labels-done task-identify-issue-type-done
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
agilepathway/label-checker#721 ·
メンテナーはふだん 1 日以内に返信
-
CLI Empathy needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
chromaui/chromatic-cli#1524 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信