Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
Attempting to use ollama/deepseek-v4-pro:cloud with /think max results in the following response:
Thinking level "max" is not supported for ollama/deepseek-v4-pro:cloud. Use one of: off, minimal, low, medium, high.
I see from #71584 that this was fixed, so I am calling this a regression. I have no evidence that the fix actually worked since I skipped a large chunk of updates.
After quite a bit of debugging, my agent and I have determined that the ollama plugin is never "activated" and never registers its profile, resulting in resolveActiveThinkingProvider() unable to find the ollama profile.
Workaround
set activation.startup = true in extensions/ollama/openclaw.plugin.json
This allows /think max to work as expected.
Steps to reproduce
- Start a local
ollamainstance. - Authenticate the local
olllamainstance. ollama pull deepseek-v4-pro- Start OpenClaw v2026.5.3-1 with an OLLAMA_API_KEY
- With the main agent,
/think max
Expected behavior
Gateway responds with Thinking level set to max.
Actual behavior
Gateway response with Thinking level "max" is not supported for ollama/deepseek-v4-pro:cloud...
OpenClaw version
v2026.5.3-1
Operating system
Fedora 43
Install method
built from source with pnpm -- installed via pnpm link -g .
Model
deepseek-v4-pro
Provider / routing chain
openclaw->local_ollama->ollama_cloud
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Added debugging output during the resolution chain:
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] resolveThinkingProfile called provider=ollama model=deepseek-v4-pro:cloud normalizedProvider=ollama catalogReasoning=undefined
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] looking for provider: ollama registry has 0 providers: []
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] found entry: false undefined has resolveThinkingProfile: false
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] pluginProfile=false levels=undefined
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] looking for provider: ollama registry has 0 providers: []
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] found entry: false undefined has resolveThinkingProfile: false
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] looking for provider: ollama registry has 0 providers: []
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] found entry: false undefined has resolveThinkingProfile: false
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] binaryDecision=undefined => BASE profile
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] result levels=[ 'off', 'minimal', 'low', 'medium', 'high' ]
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] looking for provider: ollama registry has 0 providers: []
May 04 17:18:37 emerald node[89709]: [THINKING-DEBUG] found entry: false undefined has resolveThinkingProfile: false
And with `activation.startup = true` in `extensions/ollama/openclaw.plugin.json`:
May 04 17:23:50 emerald node[90413]: [THINKING-DEBUG] resolveThinkingProfile called provider=ollama model=deepseek-v4-pro:cloud normalizedProvider=ollama catalogReasoning=true
May 04 17:23:50 emerald node[90413]: [THINKING-DEBUG] looking for provider: ollama registry has 3 providers: [ 'minimax', 'minimax-portal', 'ollama' ]
May 04 17:23:50 emerald node[90413]: [THINKING-DEBUG] found entry: true ollama has resolveThinkingProfile: true
May 04 17:23:50 emerald node[90413]: [THINKING-DEBUG] pluginProfile=true levels=[ 'off', 'low', 'medium', 'high', 'max' ]
May 04 17:23:50 emerald node[90413]: [THINKING-DEBUG] normalized levels=[ 'off', 'low', 'medium', 'high', 'max' ] count=5Impact and severity
Affected: all ollama/deepseek-v4-pro users.
Severity: Medium - unable to set important model parameter
Frequency: Always
Consequence: full model performance is unavailable under OpenClaw
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 5, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Summary
Keep open: the regression is source-reproducible on current main because Ollama is startup-lazy and its lightweight provider-policy artifact does not expose the thinking profile that includes
max, so validation can still fall back to base levels.Reproducibility: yes. source-reproducible: current main can fall through to the base thinking levels when Ollama is not active because the lightweight Ollama policy artifact lacks
resolveThinkingProfile. I did not run a live Ollama/Fedora session.Next step
This is a narrow provider-policy regression with clear affected files and validation, and it does not require a product decision or new config option.
Review details
Best possible solution:
Keep Ollama startup-lazy and add a startup-safe Ollama
resolveThinkingProfilepolicy artifact, with regression coverage provingmaxis accepted when the full plugin registry is not active.Do we have a high-confidence way to reproduce the issue?
Yes, source-reproducible: current main can fall through to the base thinking levels when Ollama is not active because the lightweight Ollama policy artifact lacks
resolveThinkingProfile. I did not run a live Ollama/Fedora session.Is this the best way to solve the issue?
Yes, the narrow maintainable fix is to expose the existing Ollama thinking profile through the lightweight provider-policy artifact; changing
activation.onStartupto true would mask the issue and weaken the startup-lazy boundary.Acceptance criteria:
What I checked:
activation.startup = truemakesmaxappear, which points to a startup-lazy policy-surface gap rather than an Ollama transport failure.activation.onStartup: false, so its full provider registration is not guaranteed to be active when session thinking validation runs. (extensions/ollama/openclaw.plugin.json:3, 25db482cc651)off, low, medium, high, maxwhen the catalog marks the model as reasoning-capable, matching the earlier /think max rejected for ollama/deepseek-v4-flash:cloud despite provider support #71584 behavior. (extensions/ollama/index.ts:252, 25db482cc651)normalizeConfig; it does not exportresolveThinkingProfile, unlike OpenAI and DeepSeek provider-policy artifacts. (extensions/ollama/provider-policy-api.ts:1, 25db482cc651)max. (src/auto-reply/thinking.ts:118, 25db482cc651)/think low,/think medium,/think high, and/think max, withmaxmapped to Ollama's highest native effort. Public docs:docs/providers/ollama.md. (docs/providers/ollama.md:867, 25db482cc651)Likely related people:
extensions/ollama/openclaw.plugin.json,extensions/ollama/index.ts,extensions/ollama/provider-policy-api.ts)Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 25db482cc651.
Re-review progress:
slyersray commentedon May 5, 2026
@vincentkoc 这是一个回归问题,影响了 ollama/deepseek-v4-pro:cloud 模型的 功能。根本原因是插件未在启动时激活。
rriggs commentedon May 5, 2026
The following patch fixes the problem. Created by DeepSeek V4 Pro Max. Reviewed by me.
fix: expose ollama thinking profile before activation
fix: expose ollama thinking profile before activation
fix: expose ollama thinking profile before activation
fix: expose ollama thinking profile before activation
fix: expose ollama thinking profile before activation
fix: expose ollama thinking profile before activation
fix: expose ollama thinking profile before activation
fix: expose ollama thinking profile before activation