Skip to content

[Bug]: Ollama Cloud live-discovered model loses capability metadata in gateway catalog #90315

Description

@civiltox

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

When ollama/minimax-m3:cloud is only added via agents.defaults.models, OpenClaw’s running gateway can select and run the model but does not expose its Ollama-reported thinking capability unless explicit models.providers.ollama.models[] metadata is added.

Steps to reproduce

Shortest observed repro:

# 1. Allow/select the live-discovered model, but do not add a models.providers.ollama.models[] row for it
openclaw config set agents.defaults.models '{"ollama/minimax-m3:cloud":{}}' --strict-json --merge
openclaw gateway restart

# 2. Ollama itself reports thinking support
curl -s http://127.0.0.1:11434/api/show \
  -H 'Content-Type: application/json' \
  -d '{"name":"minimax-m3:cloud"}'

# 3. Local OpenClaw path accepts thinking
openclaw infer model run --local \
  --model ollama/minimax-m3:cloud \
  --thinking low \
  --prompt "Reply with exactly: pong" \
  --json

# 4. Gateway path rejects the same model/thinking level
openclaw infer model run --gateway \
  --model ollama/minimax-m3:cloud \
  --thinking low \
  --prompt "Reply with exactly: pong" \
  --json

Observed failure: step 4 returns Thinking level "low" is not supported for ollama/minimax-m3:cloud. Use one of: off.

Expected behavior

Expected result, based on observed local behavior: because Ollama /api/show reports thinking for minimax-m3:cloud and openclaw infer model run --local --model ollama/minimax-m3:cloud --thinking low succeeds, the gateway path should also accept --thinking low for the same ollama/minimax-m3:cloud model without requiring a manual models.providers.ollama.models[] metadata entry.

Actual behavior

Observed result: curl /api/show for minimax-m3:cloud reports capabilities including thinking, and openclaw infer model run --local --model ollama/minimax-m3:cloud --thinking low returns ok: true, but the equivalent gateway command fails with GatewayClientRequestError: Error: Thinking level "low" is not supported for ollama/minimax-m3:cloud. Use one of: off.; after adding an explicit models.providers.ollama.models[] row with reasoning: true and restarting the gateway, the same gateway command returns ok: true.

OpenClaw version

2026.6.1

Operating system

Debian 13

Install method

npm global

Model

minimax-m3:cloud (Ollama Cloud via local 127.0.0.1:11434 in docker)

Provider / routing chain

openclaw -> local ollama docker instance -> ollama cloud -> minimax-m3

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingbug:behaviorIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions