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

MiniMax-M3 emits truncated tool-call JSON (error 2013) and destroys resumable session

未关闭
#235 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

从持久会话和工具调用运行时路径入手,使用保留的运行产物和已清理的提供商错误作为复现入口。按照列出的复现步骤使用 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

  1. Start a persistent session with MiniMax-M3 and tool calling available.
  2. Ask for a structured research response containing multiple candidates and URLs.
  3. Let the model decide whether to invoke a tool.
  4. In the observed run, the model emitted malformed/truncated JSON for a tool call.
  5. 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

MiniMax-AI/cli 的其他 Issue

查看 MiniMax-AI/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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