fix(cli): the Windows npx launch rewrite does nothing for opencode
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 481
- Forks
- 45
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 91
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ai-driven-dev/framework
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
ai-driven-dev/framework#1311 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
ai-driven-dev/framework#1244 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ai-driven-dev/framework#1197 ·
Los mantenedores suelen responder en 1 día
-
refactor(aidd-context): apply the new skill template to learnPosiblemente ocupada @blafourcade la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ai-driven-dev/framework#1186 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
ai-driven-dev/framework#1163 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ai-driven-dev/framework
Issues similares
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPosiblemente ocupada @pcbeingused333 la tomó hoy. AbiertoBug db: d1-sqlite Payload OSS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
payloadcms/payload#19766 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
device-management-toolkit/sample-web-ui#3711 ·
Los mantenedores suelen responder en 1 día
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
elastic/kibana#306401 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
agentes-chat/agentes-chat#927 ·
Los mantenedores suelen responder en 1 día
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabPosiblemente ocupada @seenimohamed la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ardia-browser/ardia#2769 ·
Los mantenedores suelen responder en 1 día