fix: expose ollama thinking profile before activation#77617
fix: expose ollama thinking profile before activation#77617obviyus merged 2 commits intoopenclaw:mainfrom
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. by source inspection. Current main's fallback path can ask the provider-policy artifact before runtime activation, but Ollama's artifact currently lacks the profile while the runtime hook exposes Next step before merge Security Review detailsBest possible solution: Land this PR after normal CI or changed-gate validation, keeping the lightweight policy artifact aligned with the full Ollama runtime hook. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection. Current main's fallback path can ask the provider-policy artifact before runtime activation, but Ollama's artifact currently lacks the profile while the runtime hook exposes Is this the best way to solve the issue? Yes. Adding the Ollama-owned static profile to What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 58c4f9e190bc. |
This comment was marked as low quality.
This comment was marked as low quality.
|
Rebased this branch onto current Validation after rebase:
Note: the first typecheck attempt exposed missing local deps ( |
obviyus
left a comment
There was a problem hiding this comment.
Verified the Ollama startup-lazy thinking regression: the lightweight Ollama provider-policy artifact now exposes the reasoning-capable profile, so ollama/deepseek-v4-pro:cloud advertises max before the full plugin runtime activates.
Maintainer follow-up rebased onto current main, reused the lightweight resolver from the full Ollama runtime registration, moved the changelog entry to the active Fixes block, and refreshed the PR body's real-behavior proof.
Validation: pnpm test extensions/ollama/provider-policy-api.test.ts extensions/ollama/index.test.ts, targeted oxfmt, Testbox pnpm check:changed, and GitHub Real behavior proof passed. No open review threads remained.
…ainer-hardening * origin/main: (843 commits) docs(changelog): relocate openclaw#77046 and openclaw#77280 entries from 2026.5.3 to Unreleased (openclaw#77728) docs: reorder unreleased changelog fix: expose ollama thinking profile before activation (openclaw#77617) (thanks @yfge) fix: expose ollama thinking profile before activation test(gateway): preserve dispatch timers in waiter test(gateway): keep startup context timer live docs: document cache-friendly activity helper ci: install ffmpeg for Mantis media previews fix: avoid impossible device token rotation advice (openclaw#77688) (thanks @Conan-Scott) docs(changelog): note doctor device pairing advice fix fix(doctor): avoid impossible device token rotation advice ci: use Crabbox media previews for Mantis docs: filter maintainer-owned triage noise test: cover GitHub activity helper fix(session-file-repair): drop null-role message entries instead of preserving them (openclaw#77288) fix: prune orphan session artifacts perf: reduce GitHub activity cache misses fix: cache session list model resolution (openclaw#77650) (thanks @ragesaq) ci: embed Mantis desktop previews fix(replay-history): drop trailing stream-error placeholder before provider send (openclaw#77287) ... # Conflicts: # CHANGELOG.md
Summary
/think maxavailable for reasoning-capable Ollama models before the full Ollama plugin runtime activatesChanges
resolveThinkingProfile()toextensions/ollama/provider-policy-api.tsoff/low/medium/high/maxfor reasoning-capable Ollama models andoffotherwiseCHANGELOG.mdReal behavior proof
ollama/deepseek-v4-pro:cloudrejected/think maxbefore the Ollama plugin runtime activated.openclaw 2026.5.4, headecde0494faae975180bcda243f80472b810a0f18) with built runtime artifacts generated bypnpm openclaw models --help.maxfor reasoning-capable Ollama Cloud models before full plugin activation, so the/think maxvalidation path no longer falls back to the baseoff|minimal|low|medium|highprofile.Testing
pnpm exec oxfmt --check --threads=1 CHANGELOG.md extensions/ollama/index.ts extensions/ollama/provider-policy-api.ts extensions/ollama/provider-policy-api.test.tspnpm test extensions/ollama/provider-policy-api.test.ts extensions/ollama/index.test.tspnpm check:changedFixes #77612