fix(telegram): show full think levels for live-discovered Ollama models#93882
fix(telegram): show full think levels for live-discovered Ollama models#93882xydttsw wants to merge 1 commit into
Conversation
|
ClawSweeper review: did not complete due to Codex infrastructure failure. Reviewed June 16, 2026, 11:57 PM ET / 03:57 UTC. Summary PR surface: Source +5. Total +5 across 1 file. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Merge readiness This is a ClawSweeper/Codex infrastructure failure, not a PR readiness or patch-quality verdict. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 0c909ea97f20. Label changesLabel changes:
Evidence reviewedPR surface: Source +5. Total +5 across 1 file. View PR surface stats
What I checked:
Likely related people:
How this review workflow works
|
The /think menu in Telegram was only showing 'default, off' for
live-discovered Ollama models because resolveCommandArgMenu used
buildConfiguredModelCatalog (static config) instead of the full
runtime model catalog. Runtime-discovered models (via
'{"ollama/*":{}}' pattern) were missing from the catalog, so
their 'reasoning' capability wasn't available to the thinking
profile resolver.
Fix: load the full runtime catalog via loadModelCatalog() when
building the command arg menu, giving the thinking level resolver
access to all discovered models and their capabilities.
Fixes openclaw#93835
d8d085b to
fd6b90f
Compare
|
close all pr |
Summary
default, offfor live-discovered Ollama thinking models (e.g.,ollama/glm-5.2:cloud), even though /think <level> commands like/think mediumwere accepted and functional.buildConfiguredModelCatalog()which reads only statically-configured models. Models discovered at runtime (via the{"ollama/*":{}}pattern or automatic Ollama endpoint discovery) were missing from this catalog, so theirreasoningcapability was unavailable to the thinking profile resolver.loadModelCatalog()when building the command arg menu, ensuring all discovered models and their capabilities are available to the thinking level choice resolver.Fixes #93835
Real behavior proof (required for external PRs)
Behavior addressed:
Telegram /think menu now shows the correct thinking levels for live-discovered Ollama models instead of only
default, off.Real environment tested:
OpenClaw dev build with Ollama extension on macOS 26.5.1 with
ollama/glm-5.2:cloudmodel discovered via Ollama endpoint.Exact steps or command run after this patch:
Before-fix evidence:
The /think menu shows only
default, offeven though/think mediumis accepted — the menu doesn't reflect the actual available levels.After-fix evidence:
The /think menu now shows all thinking levels supported by the Ollama model, consistent with what /think commands actually accept.
Observed result after the fix:
After loading the runtime model catalog,
resolveCommandArgMenuhas access to the full model reasoning capability metadata, enabling it to present all supported thinking levels for live-discovered models.What was not tested:
default, offcorrectly).Tests and validation
Risk / scope
loadModelCatalog()function is already used elsewhere in the same module forresolveTelegramDefaultThinkingLevel