Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

已关闭 适合新手
#393 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
cli, networking

调研方向

从 packages/tui/src/cli/network-proxy.ts 开始,尤其检查 validateProxyValue() 和 resolveTuiProxyConfiguration(),然后设置 ALL_PROXY 为 SOCKS5 URL 以重现问题。当 mcode 在启动期间不再退出,并且针对不支持的代理所选择的行为有适当的检查覆盖时,工作就完成了。

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
TypeScript
星标
2k
派生
250
平均合并
7 小时 37 分钟
30 天内合并 PR
147

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MiniMax-AI/minimax-code 的其他 Issue

查看 MiniMax-AI/minimax-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。