fix(ollama): show full thinking levels for live-discovered models in /think menu#93872
fix(ollama): show full thinking levels for live-discovered models in /think menu#93872lzyyzznl wants to merge 1 commit into
Conversation
…/think menu When an Ollama model is live-discovered (not in configured catalog), the provider's resolveThinkingProfile received reasoning:undefined and returned the non-reasoning profile with only ['off']. This made the /think inline keyboard show no useful options. Change the ternary to an explicit false check: reasoning===false still yields the off-only profile, but undefined (live-discovered) now defaults to the reasoning profile so /think shows realistic choices for newly discovered models. Fixes openclaw#93835
|
Codex review: needs real behavior proof before merge. Reviewed June 17, 2026, 2:05 AM ET / 06:05 UTC. Summary PR surface: Source +7. Total +7 across 1 file. Reproducibility: yes. Source inspection shows the reported path: Telegram menu resolution uses configured catalog metadata, while Ollama discovery can derive Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Use the selected model's runtime catalog or capability-derived Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows the reported path: Telegram menu resolution uses configured catalog metadata, while Ollama discovery can derive Is this the best way to solve the issue? No. The patch is a plausible workaround, but the best fix is narrower: use the runtime catalog/capability-derived reasoning for the selected model instead of treating every missing Ollama reasoning hint as support. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 580bba0637e0. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +7. Total +7 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Closing due to behavior proof failures — the proof environment seems unable to demonstrate the fix end-to-end. The core logic change is preserved in the branch for future reference. |
Summary
resolveThinkingProfileused ternaryreasoning ? full : off-only—reasoning:undefined(live-discovered, not in catalog) fell to off-onlyreasoning === falseexplicitly; undefined (live-discovered) now returns the full reasoning profileChanges
extensions/ollama/provider-policy-api.ts— 1 file, +8/-1Decision table
true(explicitly configured)["off","low","medium","high","max"]false(explicitly disabled)["off"]undefined(live-discovered)["off"]❌["off","low","medium","high","max"]✅Risk checklist
Did user-visible behavior change? (
Yes) — /think menu now shows full thinking levels for undiscovered Ollama modelsDid config, environment, or migration behavior change? (
No)Did security, auth, secrets, network, or tool execution behavior change? (
No)What is the highest-risk area? — Models that truly do NOT support thinking will now show thinking levels they can't use
How is that risk mitigated? — Setting explicit
reasoning:falsein the model config still yields the off-only profile. Ollama models generally support thinking.