[Bug] 未登录时 mmx help 被认证检查拦截,无法查看公开文档链接
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- authentication, cli
Research direction
Start with src/main.ts, src/commands/help.ts, and src/auth/setup.ts, tracing the command checks before ensureAuth(). Reproduce with an isolated MMX_CONFIG_DIR and CI=1, then add the requested entry regression coverage and confirm that mmx help --non-interactive prints its documentation links without credentials.
Written by the indexing model from the issue text.
Description
问题
mmx help 的功能是显示公开 API 文档链接,但当前入口会先要求认证。新用户尚未配置凭据时,在非交互环境中无法直接查看这些链接;交互环境则会进入登录选择。
当前代码证据
核验官方 main:bfbb4cb75ec343149eaccfd668c5011aa27bcf2b。
- help 命令 只根据 region 输出静态文档链接。
- 入口的 NO_AUTH_SETUP 未包含
help,因此在执行命令前调用ensureAuth()。 - ensureAuth 在无凭据且非交互时抛出
No credentials found.。
最小复现方式
在新开的 PowerShell 窗口中执行以下命令,用临时空配置模拟未登录,不更改已有登录配置:
$env:MMX_CONFIG_DIR = Join-Path $env:TEMP ("mmx-help-repro-" + [guid]::NewGuid())
Remove-Item Env:MINIMAX_API_KEY -ErrorAction SilentlyContinue
$env:CI = "1"
mmx help --non-interactive
根据上述当前源码路径,结果为认证错误 No credentials found.,无法显示文档链接。对照 mmx --help,该参数会在认证检查前直接显示帮助。
验证说明:本报告基于当前官方源码分析。已确认有凭据时 mmx help 正常输出文档链接;尚未完成上述无凭据场景的实际 CLI 运行验证,不将源码推导表述为已执行的测试结果。
预期行为
查看公开文档链接应无需登录:mmx help 在没有 OAuth 或 API key 时也能输出文档链接并成功退出。
贡献申请
已检查所有状态的相关 issue/PR,未发现等价修复;现有开放 PR 未修改上述入口和 help 命令文件。
我愿意提交一个聚焦的修复:仅将 help 正确归类为无需认证的命令,并补充无凭据场景的入口回归覆盖。验证可使用隔离配置和 CI 环境完成,无需真实密钥、付费 API 或外部账号;CI 环境也会跳过更新检查。
请问维护者是否允许我提交这个范围的外部 PR?获得明确许可前,我会等待,不开始实现。
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 181
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 13
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MiniMax-AI/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
MiniMax-AI/cli#258 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
MiniMax-AI/cli#260 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
MiniMax-AI/cli#257 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
MiniMax-AI/cli#249 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
MiniMax-AI/cli#248 · 1 comment · 1 reaction ·
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·