[Bug]: CLI hard-fails on startup when ALL_PROXY=socks5://…
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
- 领域
- cli, networking
调研方向
从 packages/tui/src/cli/network-proxy.ts 开始,尤其检查 validateProxyValue() 和 resolveTuiProxyConfiguration(),然后设置 ALL_PROXY 为 SOCKS5 URL 以重现问题。当 mcode 在启动期间不再退出,并且针对不支持的代理所选择的行为有适当的检查覆盖时,工作就完成了。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 2k
- 派生
- 250
- 平均合并
- 7 小时 37 分钟
- 30 天内合并 PR
- 147
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MiniMax-AI/minimax-code 的其他 Issue
-
bug cli documentation needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
MiniMax-AI/minimax-code#299 · 3 条评论 ·
维护者通常 1 天内回复
-
bug cli needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
MiniMax-AI/minimax-code#128 · 2 条评论 ·
维护者通常 1 天内回复
-
bug desktop
难度 2/5 1-3 小时 新手友好度 82/100
MiniMax-AI/minimax-code#87 · 2 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
bug desktop needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
MiniMax-AI/minimax-code#80 ·
维护者通常 1 天内回复
-
bug desktop needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
MiniMax-AI/minimax-code#66 ·
维护者通常 1 天内回复
查看 MiniMax-AI/minimax-code 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
难度 2/5 1-3 小时 新手友好度 72/100
openclaw/openclaw#168089 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
✨ enhancement needs-discussion
难度 1/5 1 小时以内 新手友好度 85/100
-
[Bug]: [MCP/CLI] Bare loopback IP addresses (127.0.0.1:port) and hosts with ports fail to navigate due to erroneous scheme inference可能已有人在做 @alok-108 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/playwright#43263 ·
维护者通常 1 天内回复
-
area:studio type:security
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复