Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng Phù hợp với người mới
#393 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
cli, networking

Hướng nghiên cứu

Bắt đầu trong packages/tui/src/cli/network-proxy.ts, đặc biệt là validateProxyValue() và resolveTuiProxyConfiguration(), sau đó tái hiện bằng cách đặt ALL_PROXY thành một URL SOCKS5. Công việc hoàn tất khi mcode không còn thoát trong quá trình khởi động và hành vi đã chọn đối với proxy không được hỗ trợ được bao phủ bởi một kiểm tra phù hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
2k
Fork
254
Merge trung bình
8 giờ 35 phút
Pull request đã merge (30 ngày)
152

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MiniMax-AI/minimax-code

Tất cả issue của MiniMax-AI/minimax-code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.