fix(cli): the Windows npx launch rewrite does nothing for opencode
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 481
- Forks
- 45
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 91
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ai-driven-dev/framework
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
ai-driven-dev/framework#1311 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
ai-driven-dev/framework#1244 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ai-driven-dev/framework#1197 ·
Maintainer antworten meist innerhalb von 1 Tag
-
refactor(aidd-context): apply the new skill template to learnEvtl. vergeben @blafourcade hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ai-driven-dev/framework#1186 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
ai-driven-dev/framework#1163 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in ai-driven-dev/framework
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 87/100
Maintainer antworten meist innerhalb von 1 Tag
-
🛠️ dette technique
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 61/100
betagouv/mon-entreprise#4752 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 5 Tagen
-
type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
franciscoBSalgueiro/en-croissant#1111 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
area/providers type/feature version/v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
anomalyco/opencode#64845 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag