Skip to content

[Bug]: weird intermittent exit with minimax 2.7 #2641

@robtaylor

Description

@robtaylor

Bug Description

I've just been testing minimax 2.7 on the token plan, and i'm getting the agent exiting instead of getting the results of a tool call.

Steps to Reproduce

I'm not sure how to trigger it for reproduction.. It might just happen with minimax?

Expected Behavior

Tool output is returned to agent, and it continues

Actual Behavior

Occasionally I'm seeing:

**Search:** `!asyncOp.isExternal|internal call`


---

Proceed with implementation based on this context.
⏺ [15:13:50] Finished adbca2bd-bc41-465e-a20b-46fcdbce025c

once this happens, it's likely to happen again, e.g.:

$ : continue
⏺ [15:23:12] Continue adbca2bd-bc41-465e-a20b-46fcdbce025c
The user wants me to continue. Let me check what the internal call path does in ScheduleAllocation.
Search: internal.*call|dispatch.*internal|isExternal

────────────────────────────────────────────────────────────────────────────────

Proceed with implementation based on this context.
⏺ [15:23:22] Finished adbca2bd-bc41-465e-a20b-46fcdbce025c

The issue (at least once hit) also seems to affect other tools as well:

➜  iree git:(streamable-metal-solve) : continue   󱙺 FORGE 134.0k  MiniMax-M2.7
⏺ [15:23:29] Continue adbca2bd-bc41-465e-a20b-46fcdbce025c
Let me check what happens when isExternal() is false for AsyncCallOp. The code at line 856 returns success() for internal calls. But what does that mean for the resource allocation?
Read: compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp

────────────────────────────────────────────────────────────────────────────────

Proceed with implementation based on this context.
⏺ [15:23:37] Finished adbca2bd-bc41-465e-a20b-46fcdbce025c

then, randomly (again), it'll start working again:

➜  iree git:(streamable-metal-solve) : try again                                                                                                                          󱙺 FORGE 134.1k  MiniMax-M2.7
⏺ [15:33:28] Continue adbca2bd-bc41-465e-a20b-46fcdbce025c
Let me try reading the file with specific line ranges to find the internal call handling.
⏺ [15:33:38] Search for 'isExternal|internal' at compiler/src/iree/compiler/Dialect/Stream/Transforms/ScheduleAllocation.cpp

Error Logs

Requests log for the `Read` error above.
How do I get more debug from zsh integration?

[requests.json](https://github.com/user-attachments/files/26186618/requests.json)

Forge Version

2.1.0

Operating System

macOS

OS Version

macOS 26.3.1

AI Provider

Other

Model

Minimax 2.7

Installation Method

Other

Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions