fix(cli): the Windows npx launch rewrite does nothing for opencode
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Read install-config-use-case.ts and trace how applyTransforms orders the tool transform and win32Transform; then inspect mcp-launch-command.ts and OpenCode's build.ts to compare the expected config shapes. Start with the red first install-config test described in the issue, using the OpenCode profile and a Windows platform. Done means the test confirms OpenCode's npx server launches through cmd /c, or pins the intended behavior.
索引モデルが issue の本文から書いたものです。
説明
Description
On Windows, the npx launch rewrite (cmd /c npx ...) is a silent no-op for OpenCode. The tool's own MCP transform runs first and changes the shape the Windows rewrite looks for, so nothing is rewritten and nothing is reported.
Affected file(s)
next:cli/src/contexts/framework/application/install/install-config-use-case.ts(applyTransforms: tool transform, thenwin32Transform),cli/src/contexts/tools/domain/mcp-launch-command.ts(transformMcpForWin32readsconfig.mcpServersand a stringcommand),cli/src/contexts/tools/domain/profiles/opencode/build.ts(transformMcpToOpencodeemits{ mcp: { ... } }).refactor/cli-target:cli/src/contexts/installation/application/install/install-config.ts(applyTransforms),cli/src/contexts/tools/domain/sections/mcp-section.ts(launchTransformFor).
Expected behaviour
An OpenCode install on Windows launches npx servers through cmd /c, as other tools do, or the intended behaviour is stated and pinned.
Observed behaviour
After transformMcpToOpencode the content has no mcpServers key, so transformMcpForWin32 returns early (if (!config.mcpServers) return ...). The written opencode.json keeps a bare npx launch with no cmd /c.
AI tool
OpenCode
aidd-cli version
unreleased, next
OS
Windows
Additional context
Red-first test: install-config with the OpenCode profile, a win32Platform and an MCP source with an npx server; assert the written server launches through cmd with /c. A characterization case on the current order should be written first to pin today's output, then flipped. Note OpenCode's command is an array, so the rewrite has to handle that shape, or run before the tool transform.
- 主要言語
- TypeScript
- スター
- 481
- フォーク
- 45
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 91
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ai-driven-dev/framework のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ai-driven-dev/framework#1311 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
ai-driven-dev/framework#1244 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ai-driven-dev/framework#1197 ·
メンテナーはふだん 1 日以内に返信
-
refactor(aidd-context): apply the new skill template to learn対応中かも @blafourcade が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ai-driven-dev/framework#1186 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ai-driven-dev/framework#1163 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ai-driven-dev/framework の issue をすべて見る
似ている issue
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keys対応中かも @pcbeingused333 が今日担当しました。 オープンBug db: d1-sqlite Payload OSS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
payloadcms/payload#19766 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
device-management-toolkit/sample-web-ui#3711 ·
メンテナーはふだん 1 日以内に返信
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elastic/kibana#306401 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
agentes-chat/agentes-chat#927 ·
メンテナーはふだん 1 日以内に返信
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tab対応中かも @seenimohamed が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ardia-browser/ardia#2769 ·
メンテナーはふだん 1 日以内に返信