Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: CLI hard-fails on startup when ALL_PROXY=socks5://…

Chiusa Adatta ai principianti
#393 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
cli, networking

Direzione di ricerca

Inizia da packages/tui/src/cli/network-proxy.ts, in particolare da validateProxyValue() e resolveTuiProxyConfiguration(), quindi riproduci il problema con ALL_PROXY impostato su un URL SOCKS5. Il lavoro è completato quando mcode non termina più durante l'avvio e il comportamento scelto per i proxy non supportati è coperto da un controllo appropriato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug needs-triage tui
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
  1. Set ALL_PROXY to a SOCKS5 URL in your shell:
    export ALL_PROXY=socks5://127.0.0.1:1080

  2. Run the CLI:
    mcode

  3. 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.
Lingua principale
TypeScript
Stelle
2k
Fork
254
Merge medio
7h 40m
PR unite (30g)
148

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MiniMax-AI/minimax-code

Tutte le issue di MiniMax-AI/minimax-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.