openclaw - 💡(How to fix) Fix [Bug] MiniMax Token Plan (Max) broken in sub-agents after v5.22 bootstrap change

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

After upgrading to OpenClaw v5.22, sub-agents can no longer use MiniMax Token Plan features (image generation, video, music, PPT, Word, Excel, PDF) because the sub-agent bootstrap was changed to only load AGENTS.md + TOOLS.md, causing all Token Plan SKILL.md files to be unloaded.

Fix Action

Fix / Workaround

Symptom 2: Sub-agent image_generate returns immediately without waiting

  • Sub-agent calls image_generate tool → background task started → sub-agent exits immediately → image generation fails silently
  • Workaround: Use exec: mmx image in sub-agent instead, which works correctly

Workarounds applied

  1. P0: Fix image_generate endpoint to route Token Plan Key users to api.minimax.chat/image_generation
  2. P1: Restore SKILL.md loading in sub-agent bootstrap for Token Plan users
  3. P2: Document the mmx CLI workaround
RAW_BUFFERClick to expand / collapse

Problem

After upgrading to OpenClaw v5.22, sub-agents can no longer use MiniMax Token Plan features (image generation, video, music, PPT, Word, Excel, PDF) because the sub-agent bootstrap was changed to only load AGENTS.md + TOOLS.md, causing all Token Plan SKILL.md files to be unloaded.

Environment

  • OpenClaw v5.22 (e510042)
  • MiniMax Token Plan (Max version) — includes image-01 (120/day), Hailuo 2.3 video, Music 2.6, Office generation
  • User configured with MiniMax API Key in auth-profiles.json

Symptoms

Symptom 1: image_generate tool ETIMEDOUT from WSL

  • mmx image command → api.minimax.chat → works with Token Plan Key ✅
  • image_generate tool → MiniMax image station IPs (199.96.58.15 etc.) → ETIMEDOUT
  • image_generate tool returns 2049 invalid api key even with valid Token Plan Key in auth-profiles.json

Symptom 2: Sub-agent image_generate returns immediately without waiting

  • Sub-agent calls image_generate tool → background task started → sub-agent exits immediately → image generation fails silently
  • Workaround: Use exec: mmx image in sub-agent instead, which works correctly

Symptom 3: Sub-agent bootstrap missing Token Plan SKILL.md

  • After v5.22, sub-agents only bootstrap with AGENTS.md + TOOLS.md
  • MiniMax Token Plan skill files (minimax-ppt-slides, minimax-docx, minimax-xlsx, minimax-pdf, etc.) are not loaded in sub-agents

Workarounds applied

In AGENTS.md, we added the following rule for all MiniMax Token Plan features:

FeatureMain sessionSub-agent
Imageexec: mmx imageexec: mmx image
Videoexec: mmx videoexec: mmx video
Musicexec: mmx musicexec: mmx music
PPTexec: mmx pptexec: mmx ppt
Wordexec: mmx docxexec: mmx docx
Excelexec: mmx xlsxexec: mmx xlsx
PDFexec: mmx pdfexec: mmx pdf

This works but is fragile and not discoverable.

Suggested fixes

  1. P0: Fix image_generate endpoint to route Token Plan Key users to api.minimax.chat/image_generation
  2. P1: Restore SKILL.md loading in sub-agent bootstrap for Token Plan users
  3. P2: Document the mmx CLI workaround

Impact

All users relying on MiniMax Token Plan for office document generation cannot use these features in automated sub-agent workflows.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug] MiniMax Token Plan (Max) broken in sub-agents after v5.22 bootstrap change