Skip to content

fix(minimax): route M3 image calls through MiniMax VL - #118303

Closed
clawsweeper[bot] wants to merge 15 commits into
mainfrom
clawsweeper/issue-openclaw-openclaw-116601
Closed

clawsweeper[bot] wants to merge 15 commits into
mainfrom
clawsweeper/issue-openclaw-openclaw-116601

Conversation

@clawsweeper

@clawsweeper clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #116601.

Summary

  • mark minimax/MiniMax-M3 text-only in the bundled Anthropic-compatible MiniMax catalog
  • let the existing image-tool selection fall back to plugin-owned minimax/MiniMax-VL-01
  • add regressions for M3 catalog metadata and automatic image-tool selection

Why

MiniMax-M3 was advertised as accepting image input even though this bundled route uses MiniMax's Anthropic-compatible API. That caused direct native-image delivery rather than the established MiniMax-VL-01 media-understanding path. This keeps routing policy in the owning MiniMax plugin; it adds no core special case, configuration, or runtime compatibility shim.

Validation

  • node scripts/run-vitest.mjs extensions/minimax/model-definitions.test.ts
  • node scripts/run-vitest.mjs src/agents/tools/image-tool.test.ts
  • git diff --check
  • pnpm check:changed

Release-note context: user-visible provider-routing bug fix; do not edit CHANGELOG.md because OpenClaw release automation generates it.

Credit: Thanks @SweetSophia for the source report in #116601. #64244 remains related historical context for the prior MiniMax-VL fallback regression.

@clawsweeper clawsweeper Bot added clawsweeper Tracked by ClawSweeper automation clawsweeper:autogenerated PR created automatically by ClawSweeper clawsweeper:autofix Maintainer opted this PR into bounded ClawSweeper-reviewed autofix without merge labels Aug 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling extensions: minimax labels Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex review: blocked before merge.

What this changes

The branch marks MiniMax M3 as text-only, redirects image analysis toward MiniMax VL, and adds Doctor rules that remove saved M3 image capabilities across four provider identities.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful regression context remains, but the patch rests on a contradicted route premise and incorrectly rewrites supported saved configuration.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor-proof gate is exempt for this bot-authored PR. The linked report’s historical M3-to-VL workaround is useful runtime evidence, but does not prove this branch against the current API contract; independent saved-config compatibility is insufficient because model-level overrides are rewritten.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 9 items remain

Keep open: both prior blocking findings remain on the unchanged head. The historical VL workaround is useful, but current MiniMax documentation contradicts the blanket text-only premise, and no verified merged replacement resolves the linked report.

Priority: P2
Reviewed head: 3f2b38a5bdd3905bd7567502120f0cac8a324b6c
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Does a current M3 request trace establish an endpoint-specific image limitation that warrants any capability migration?
  • Recommendation: Investigate the current delivery boundary: Preserve native vision while a current request and response trace identifies any remaining owned defect.
  • Why: The historical workaround and current vendor contract disagree; selecting a replacement repair requires evidence of the actual failing boundary.

Before merge

  • Preserve MiniMax M3's supported native image capability (P1) - The prior blocker remains unresolved. Changing M3 to text-only disables native prompt-image hydration and sends image-tool analysis through another model. MiniMax’s current Anthropic API documentation explicitly supports M3 image blocks, and current main plus v2026.9.7 retain image capability. Preserve that supported path unless a current failing request establishes a narrower endpoint limitation; the historical VL workaround does not justify disabling it for all users.
  • Honor model-level API overrides in Doctor (P1) - The prior blocker remains unresolved. With provider.api set to anthropic-messages and an M3 entry whose own api is openai-completions, this mapping still strips image from the saved model. Runtime construction explicitly gives model.api precedence over the provider default, so Doctor corrupts a supported override and changes subsequent vision routing. Use the effective model transport in both detection and migration, or remove this migration if its premise cannot be established.
  • Resolve merge risk - No current failing M3 image request establishes a route limitation that warrants disabling shipped native vision.
  • Resolve merge risk - Existing-state compatibility remains unresolved: Doctor rewrites saved image capabilities, including model-level API overrides, without coverage for those configurations.
  • Complete next step - Establish the current M3 failure boundary, resolve both repeated findings, and refresh the conflicting branch with fresh-install and saved-config compatibility evidence.
  • Improve patch quality - Provide a current redacted M3 image request and response trace that identifies the failing owner boundary.
  • Improve patch quality - Preserve model-level transport overrides and verify fresh and existing configurations before retaining any capability migration.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P1] Preserve MiniMax M3's supported native image capability — extensions/minimax/provider-models.ts:17-18
  • [P1] Honor model-level API overrides in Doctor — extensions/minimax/doctor-contract-api.ts:49-52
Agent review details

How this fits together

MiniMax’s plugin supplies model capabilities used to choose native image delivery or separate vision analysis. Doctor also consumes plugin contracts to detect and rewrite saved provider configuration.

flowchart TD
  A[Image request] --> B[Configured model capabilities]
  C[MiniMax model catalog] --> B
  B --> D{Native vision supported}
  D -->|Yes| E[M3 image delivery]
  D -->|No| F[MiniMax VL analysis]
  G[Doctor configuration repair] --> B
Loading

Technical review

Best possible solution:

Preserve supported M3 native vision and repair a demonstrated image-delivery defect at its owning boundary, retaining VL analysis for text-only models and respecting saved transport overrides.

Do we have a high-confidence way to reproduce the issue?

Yes for the introduced Doctor defect: an M3 model with image input and model.api set to openai-completions under an Anthropic-default provider is rewritten to text-only. No current live reproduction of the original M3 image-loss report was established.

Is this the best way to solve the issue?

No. Blanket capability removal contradicts the current MiniMax API contract; a request trace should locate any remaining delivery failure before an endpoint-specific repair is chosen.

Full review comments:

  • [P1] Preserve MiniMax M3's supported native image capability — extensions/minimax/provider-models.ts:17-18
    The prior blocker remains unresolved. Changing M3 to text-only disables native prompt-image hydration and sends image-tool analysis through another model. MiniMax’s current Anthropic API documentation explicitly supports M3 image blocks, and current main plus v2026.9.7 retain image capability. Preserve that supported path unless a current failing request establishes a narrower endpoint limitation; the historical VL workaround does not justify disabling it for all users.
    Confidence: 0.97
  • [P1] Honor model-level API overrides in Doctor — extensions/minimax/doctor-contract-api.ts:49-52
    The prior blocker remains unresolved. With provider.api set to anthropic-messages and an M3 entry whose own api is openai-completions, this mapping still strips image from the saved model. Runtime construction explicitly gives model.api precedence over the provider default, so Doctor corrupts a supported override and changes subsequent vision routing. Use the effective model transport in both detection and migration, or remove this migration if its premise cannot be established.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a94fa6c9f7dd.

Merge-risk options

Maintainer options:

  1. Rework around a demonstrated route failure (recommended)
    Preserve supported native M3 capability and narrow any Doctor repair to proven affected routes with model-level override coverage.
  2. Pause the blanket migration
    Hold this implementation while current MiniMax request evidence determines whether a different repair is needed.

Security

None.

Evidence

What I checked:

PR surface

Source +107, Tests +221, Docs 0. Total +328 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 3 109 2 +107
Tests 6 227 6 +221
Docs 1 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 338 10 +328

Review metrics

Metric Value Why it matters
Capability and migration surface 1 model capability changed; 4 provider identities migrated; 0 new settings The change affects both fresh catalogs and saved provider configuration.
Production versus test growth production +109/-2, net +107; tests +227/-6, net +221 Production growth primarily adds a plugin-owned upgrade repair whose necessity depends on confirming the route limitation.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #116601
Summary: This PR is the explicit unmerged repair candidate for the M3 report; the historical M2.7 fallback report concerns a distinct model capability.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • remove status: ⏳ waiting on author: Current PR status no longer selects a status label.

Label justifications:

  • P2: This is a bounded provider-routing repair proposal; a current urgent user regression has not been established.
  • merge-risk: 🚨 compatibility: The introduced Doctor rules remove saved image capabilities without preserving supported model-level API overrides.
  • merge-risk: 🚨 auth-provider: The catalog change disables shipped native M3 image routing despite current vendor support for that route.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (25 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-19T14:44:42.331Z sha 3f2b38a :: found issues before merge. :: [P1] Honor per-model API overrides in the Doctor migration | [P1] Reconcile the text-only M3 change with current main
  • reviewed 2026-08-25T16:24:46.033Z sha 3f2b38a :: found issues before merge. :: [P1] Honor per-model API overrides in the Doctor migration | [P1] Reconcile the M3 route contract before removing vision
  • reviewed 2026-08-25T17:39:06.324Z sha 3f2b38a :: found issues before merge. :: [P1] Honor per-model API overrides in the Doctor migration | [P1] Reconcile the M3 vision contract before removing it
  • reviewed 2026-08-25T18:22:26.431Z sha 3f2b38a :: found issues before merge. :: [P1] Honor per-model API overrides in the Doctor migration | [P1] Reconcile the M3 vision contract before removing it
  • reviewed 2026-09-02T11:53:03.162Z sha 3f2b38a :: blocked before merge. :: [P1] Honor per-model API overrides in the Doctor migration | [P1] Confirm the M3 route contract before demoting vision
  • reviewed September 22, 2026, 1:30 AM ET / 05:30 UTC (Revision 23) sha unknown :: blocked before merge. :: [P1] [P1] Preserve MiniMax M3's supported native image capability | [P1] [P1] Honor model-level API overrides in Doctor
  • reviewed 2026-09-22T05:30:55.476Z sha 3f2b38a :: blocked before merge. :: [P1] [P1] Preserve MiniMax M3's supported native image capability | [P1] [P1] Honor model-level API overrides in Doctor
  • reviewed 2026-09-27T08:06:23.789Z sha 3f2b38a :: blocked before merge. :: [P1] Preserve MiniMax M3's supported native image capability | [P1] Honor model-level API overrides in Doctor

Reviewed October 2, 2026, 11:32 AM ET / 15:32 UTC (Revision 26).

@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🦞🔧
ClawSweeper picked up the repair feedback.

Source: clawsweeper[bot]
Feedback: structured ClawSweeper needs-human verdict with repairable P-severity findings (sha=3f2b38a5bdd3905bd7567502120f0cac8a324b6c)
Action: repair worker queued. Run: https://github.com/openclaw/clawsweeper/actions/runs/37827609321

I will update this PR branch, or open a safe credited replacement, if the repair worker finds a narrow fix.

Automerge progress:

  • 2026-10-08 18:31:35 UTC review requested repair 3f2b38a5bdd3 (structured ClawSweeper needs-human verdict with repairable P-severity finding...)

@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

🦞🔧
ClawSweeper autofix is enabled.

This is fix-only; I will not merge this PR.

@clawsweeper
clawsweeper Bot force-pushed the clawsweeper/issue-openclaw-openclaw-116601 branch from 8f02839 to 35665ae Compare August 3, 2026 00:31
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S and removed size: XS labels Aug 3, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 3, 2026
@clawsweeper
clawsweeper Bot force-pushed the clawsweeper/issue-openclaw-openclaw-116601 branch from 35665ae to d9a6fa0 Compare August 3, 2026 00:56
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed docs Improvements or additions to documentation agents Agent runtime and tooling size: S labels Aug 3, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 3, 2026
@clawsweeper clawsweeper Bot added the status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. label Aug 3, 2026
@clawsweeper
clawsweeper Bot force-pushed the clawsweeper/issue-openclaw-openclaw-116601 branch from 94d7775 to 99e9da6 Compare August 3, 2026 11:32
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 4, 2026
@SweetSophia

Copy link
Copy Markdown

I do not think this will be solved anytime soon. Should a human take over?

@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

ClawSweeper conflict self-heal is queued.

Detected state: mergeStateStatus is DIRTY.
Target head: 3f2b38a5bdd3.
Repair run: https://github.com/openclaw/clawsweeper/actions/runs/37638095973.
Status: dispatching.

This lane will only try to rebase or repair the ClawSweeper-owned branch for #118303. It will not merge the PR or add automerge/merge-ready labels.

Automerge progress:

@clawsweeper

clawsweeper Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - [ ] Preserve MiniMax M3's supported native image capability (P1) - The prior blocker remains unresolved. Changing M3 to text-only disables native prompt-image hydration and sends image-tool analysis through anothe...; Review finding: [P1] Preserve MiniMax M3's supported native image capability — extensions/minimax/provider-models.ts:17-18 - [P1] Honor model-level API overrides in Doctor — exten... (sha=3f2b38a5bdd3905bd7567502120f0cac8a324b6c)

Why human review is needed:
ClawSweeper found a blocker that should be resolved or accepted by a maintainer before the repair or automerge loop continues.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If more work is needed, resolve the blocker first, then comment @clawsweeper automerge to re-review and continue. If automation should stay paused, leave clawsweeper:human-review in place or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@vincentkoc

Copy link
Copy Markdown
Member

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

@SweetSophia

Copy link
Copy Markdown

So, the bot asks for maintainer look, nothing happens, maintainer closes because of inactivity. This is hilarious and sad.

Closing due to inactivity. If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer. That channel is the escape hatch for high-quality PRs that get auto-closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:autofix Maintainer opted this PR into bounded ClawSweeper-reviewed autofix without merge clawsweeper:autogenerated PR created automatically by ClawSweeper clawsweeper:human-review Needs maintainer review before ClawSweeper can continue clawsweeper Tracked by ClawSweeper automation docs Improvements or additions to documentation extensions: minimax merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M stale Marked as stale due to inactivity status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MiniMax-M3 image capability on Anthropic route bypasses MiniMax-VL-01 and silently loses vision

2 participants