MiniMax-M3 emits truncated tool-call JSON (error 2013) and destroys resumable session
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- ai, backend-api-design
Hướng nghiên cứu
Bắt đầu với các đường dẫn runtime của phiên liên tục và việc gọi công cụ, sử dụng artifact chạy được giữ lại và lỗi provider đã được làm sạch làm điểm bắt đầu tái hiện. Thực hiện các bước tái hiện được liệt kê với MiniMax-M3 và so sánh hành vi khi việc sử dụng công cụ bị cấm rõ ràng. Được xem là hoàn tất khi JSON gọi công cụ không hợp lệ được xử lý mà không khiến phiên vĩnh viễn không thể tiếp tục, đồng thời có coverage cho đường dẫn lỗi của provider.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.2k
- Fork
- 181
- Merge trung bình
- 9 giờ 4 phút
- Pull request đã merge (30 ngày)
- 13
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MiniMax-AI/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
MiniMax-AI/cli#259 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
MiniMax-AI/cli#258 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
MiniMax-AI/cli#265 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
MiniMax-AI/cli#260 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
MiniMax-AI/cli#257 · 1 bình luận ·
Tất cả issue của MiniMax-AI/cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
TanStack/tanstack.com#1293 ·