[M3 Bug] Non-convergent tool loop: 115/116 turns end in tool_calls, 0 final answers, latency 2s→131s (Anthropic-compatible route)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- ai-infra-agents
- 領域
- ai
調査の方向性
Start by reviewing the reported 71-call sequence and the Anthropic-compatible route behavior described in the issue, especially how thinking settings are handled when the request omits a budget. Compare the observations with the related MiniMax reports linked in the issue. Done means establishing whether this is expected behavior or a reproducible bug and documenting the supported way to control thinking on that route; the issue does not name repository files or tests.
索引モデルが issue の本文から書いたものです。
説明
Summary
When MiniMax-M3 drives a tool-calling agent loop, it never converges: over a 50-minute window in one session, every assistant turn ended with finish_reason: "tool_calls" and not a single turn produced a final answer, while it kept re-reading the same files. Per-call latency grew from 2 s to 131 s and cumulative input reached 6.45M tokens for that one task.
Reporting it here because the behaviour is model-side as far as we can measure, and because we could not find a supported way to bound thinking on the route we use.
Environment
- Model:
MiniMax-M3 - Route: Anthropic-compatible —
POST https://api.minimax.io/anthropic(api_mode=anthropic_messages), provider profileminimax - Client: Hermes Agent v0.22.3 (2026.9.24), Linux
- Thinking: enabled (no explicit budget). Note Hermes only sends
reasoning_split/thinking: {type: adaptive|disabled}to the OpenAI-compatiblehttps://api.minimax.io/v1route (hermes-agent PR #46648); on the/anthropicroute it sends neither, and it does not sendreasoning_effortat all for M3. - Tools exposed: terminal, read_file, patch, execute_code, web_extract, skill_view
Observed
Single continuous task, one session, window of ~50 min:
| metric | value |
|---|---|
| assistant turns | 116 |
turns ending tool_calls |
115 |
turns ending stop (final answer) |
0 |
turns ending None |
1 |
| terminal tool calls | 224 |
| distinct terminal commands | 131 |
| commands repeated ≥ 2× | 92 |
| terminal commands touching one 600-line source file | 55 |
| messages generated in window | 401 |
Sequential API calls in the same window: 71. Sampled rows (input tokens / output tokens / latency):
| call # | input | output | latency |
|---|---|---|---|
| 1 | 73,632 | 649 | 7.0 s |
| 24 | 114,899 | 1,859 | 15.6 s |
| 33 | 95,384 | 4,545 | 44.0 s |
| 53 | 116,146 | 5,750 | 56.0 s |
| 58 | 95,646 | 11,386 | 113.2 s |
| 66 | 98,593 | 7,422 | 131.1 s |
Total input across the 71 calls: 6,452,034 tokens, output 182,653. Client-side context compaction fired 5 times, each time dropping input from ~116k back to ~68–75k, after which M3 resumed the same exploration.
Behaviourally the failure looks like this: rather than concluding, M3 keeps opening new reads of the same two files — sed -n '<range>p' and grep -n with slightly different line ranges — issuing 55 terminal commands against a single 600-line module before the window ends.
What we ruled out
- Not markup leakage. Zero occurrences of
</think>,<mm:think>, or]<]minimax[>[in any assistant message. Thinking arrived correctly in a separate reasoning field on 105 of 116 turns. - Not degenerate/empty streams. No turn returned empty content followed by
stop; every turn carried a well-formed tool call with valid arguments. - Not an error being retried. Only 3 tool errors in the whole window, and the repeated commands were reads of existing files that succeeded.
Possible client-side contribution: our client compacted context 5 times inside this window, so we cannot fully exclude that a shortened history caused the model to restart its exploration. We are reporting the pattern anyway because the two independent symptoms — non-convergence with finish_reason: tool_calls every turn, and latency scaling ~2 s → ~131 s as context filled — match what we experience on other clients with M3 on long tool-heavy tasks.
Related reports we found while investigating: MiniMax-AI/minimax-code#7 (closed: "stuck in long thinking / repeated agent loops"), MiniMax-AI/MiniMax-M3#28 (</think> truncation), #30 ("M3 stops doing its job suddenly"), #31 (raw tool-call tokens in content).
Ask
- Is non-convergence with every turn ending in
tool_callsa known M3 behaviour when thinking is enabled and the client sends no thinking budget and noreasoning_effort? - On the Anthropic-compatible route, is there a supported way to bound thinking (max thinking tokens) or disable it per request — e.g. is
thinking: {"type": "disabled"}honoured there, as it is on/v1/chat/completions? - For long tool-calling sessions, do you recommend
adaptiveordisabledthinking, and is there an intended cap on sequential tool turns? - Happy to share a full redacted transcript of this session, or the exact 71-call sequence, on request.
- 主要言語
- 言語のデータがありません
- スター
- 505
- フォーク
- 59
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MiniMax-AI/MiniMax-M3 のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
MiniMax-AI/MiniMax-M3#34 · リアクション 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
MiniMax-AI/MiniMax-M3#41 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
MiniMax-AI/MiniMax-M3#40 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
MiniMax-AI/MiniMax-M3#37 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
MiniMax-AI/MiniMax-M3#36 · リアクション 2 件 ·
MiniMax-AI/MiniMax-M3 の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
SAP/ai-skills-library#137 ·
-
status:needs-review
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Gentleman-Programming/engram#2515 ·
メンテナーはふだん 1 日以内に返信
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
future-agi/future-agi#5273 ·
メンテナーはふだん 1 日以内に返信
-
ConcatAgenticMessages loses the approval request ID of a streamed MCP tool call対応中かも @ningsiyuan1024 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melodic-software/claude-code-plugins#20502 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信