[Bug]: CLI hard-fails on startup when ALL_PROXY=socks5://…
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
- Área
- cli, networking
Línea de trabajo
Empieza en packages/tui/src/cli/network-proxy.ts, especialmente en validateProxyValue() y resolveTuiProxyConfiguration(), y luego reproduce el problema con ALL_PROXY establecido en una URL SOCKS5. El trabajo está terminado cuando mcode ya no se cierra durante el inicio y el comportamiento elegido para los proxies no compatibles está cubierto por una comprobación adecuada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Product or interface
CLI - interactive TUI
Version
Node.js v24.x, pnpm 9.12.0 (not required to reproduce the preflight alone).
Platform
Windows
OS version and architecture
Windows 11 x64 (build 26200)
Issue area
Startup / install / update
Desktop log upload ID (optional)
No response
Steps to reproduce
-
Set ALL_PROXY to a SOCKS5 URL in your shell:
export ALL_PROXY=socks5://127.0.0.1:1080 -
Run the CLI:
mcode -
Observe: process throws immediately before the TUI loads.
No credentials, keys, or project files required — any invocation reproduces it.
Expected and actual behavior
Expected:
CLI starts normally. If SOCKS5 tunneling is unsupported, it should either
warn and fall back to direct mode, or document the limitation — but not crash.
Actual:
Process exits before start with:
Error: ALL_PROXY must be an http:// or https:// URL.
Root cause: packages/tui/src/cli/network-proxy.ts → validateProxyValue()
(line 88) hard-throws for any scheme other than http: or https:.
Users with a system-wide SOCKS5 proxy set via ALL_PROXY cannot launch
mcode at all.
Related: #82 (different layer — that is Electron/undici UnsupportedProxyProtocol
mid-request; this bug is CLI bootstrap validation, triggered before any
network call is made).
Redacted error summary
Error: ALL_PROXY must be an http:// or https:// URL.
at validateProxyValue (packages/tui/src/cli/network-proxy.ts:89)
at resolveTuiProxyConfiguration (packages/tui/src/cli/network-proxy.ts:40)
Screenshots
No response
Before submitting
- I have searched existing issues.
- I have included my version and removed sensitive information.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.9k
- Forks
- 226
- Merge medio
- 5 h 42 min
- PR fusionados (30 d)
- 126
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 MiniMax-AI/minimax-code
-
bug cli documentation needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
MiniMax-AI/minimax-code#299 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug cli needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MiniMax-AI/minimax-code#128 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug desktop
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MiniMax-AI/minimax-code#87 · 2 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug desktop needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MiniMax-AI/minimax-code#80 ·
Los mantenedores suelen responder en 1 día
-
bug desktop needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MiniMax-AI/minimax-code#66 ·
Los mantenedores suelen responder en 1 día
Todos los issues de MiniMax-AI/minimax-code
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
siyuan-note/siyuan#20040 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RunestoneInteractive/rs#1574 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
remotion-dev/remotion#11901 ·
Los mantenedores suelen responder en 1 día
-
Poll constructor throws for an uncached channel while resolving a message context-menu interactionAbiertobug need repro packages:discord.js
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
discordjs/discord.js#11645 ·
Los mantenedores suelen responder en 3 días
-
🐞 bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Sitecore/content-sdk#641 ·
Los mantenedores suelen responder en 2 días