MiniMax-M3 emits truncated tool-call JSON (error 2013) and destroys resumable session
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- ai, backend-api-design
调研方向
从持久会话和工具调用运行时路径入手,使用保留的运行产物和已清理的提供商错误作为复现入口。按照列出的复现步骤使用 MiniMax-M3,并将其行为与明确禁止工具使用时的行为进行比较。当格式错误的工具调用 JSON 得到处理,且不会永久使会话无法恢复,同时覆盖提供商错误路径时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Summary
While using MiniMax-M3 through a persistent Codex/fast-subagent session, the model attempted an unrequested tool call whose arguments were truncated. The provider returned error 2013 (invalid_prompt), and the persistent session became structurally non-resumable.
Environment
- Date: 2026-08-09
- OS: Windows
- Model:
MiniMax-M3 - Reasoning effort:
high - Runtime transport: Codex session wrapped by a local MCP supervisor
- MiniMax CLI was not used for the failing run
Sanitized failure
ERROR codex_core::tools::router: failed to parse function arguments:
EOF while parsing a string at line 1 column 260
provider response:
invalid params, invalid function arguments json string
code: invalid_prompt
numeric code: 2013
The last textual output before failure said the agent was going to write a research document, even though the requested outcome was a textual research list and no file write was requested.
A subsequent attempt to add a message to the same persistent session returned:
SESSION_NOT_RESUMABLE
Session cannot resume after structural failure in the previous run
Steps to reproduce
- Start a persistent session with
MiniMax-M3and tool calling available. - Ask for a structured research response containing multiple candidates and URLs.
- Let the model decide whether to invoke a tool.
- In the observed run, the model emitted malformed/truncated JSON for a tool call.
- Attempt to continue the same session.
I could not reproduce the malformed call in a clean second session after explicitly forbidding all tool use; that session completed normally. The original failure and non-resumable state are persisted and reproducible from its run artifact.
Expected behavior
- Tool-call arguments should always be valid complete JSON.
- If generation of a tool call fails, the provider/runtime should ideally return a recoverable turn error or allow the persistent session to continue.
- A malformed assistant tool call should not permanently destroy otherwise valid conversation state.
Actual behavior
- The turn exits with code 1 / provider error 2013.
- No token usage is returned for the failed run.
- The persistent session becomes structurally non-resumable.
No credentials, prompts containing personal data, or private file contents are included in this report.
- 主要语言
- TypeScript
- 星标
- 2.2k
- 派生
- 181
- 平均合并
- 9 小时 4 分钟
- 30 天内合并 PR
- 13
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MiniMax-AI/cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
MiniMax-AI/cli#259 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
MiniMax-AI/cli#258 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
MiniMax-AI/cli#265 ·
-
难度 5/5 一周以上 新手友好度 25/100
MiniMax-AI/cli#260 ·
-
难度 3/5 1-2 天 新手友好度 76/100
MiniMax-AI/cli#257 · 1 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 90/100
TanStack/tanstack.com#1293 ·