Skip to content

fix(ollama): support adaptive thinking level for Ollama models - #128757

Closed
MasterSwords1 wants to merge 1 commit into
openclaw:mainfrom
MasterSwords1:fix/acp-thinking-adaptive-ollama
Closed

MasterSwords1 wants to merge 1 commit into
openclaw:mainfrom
MasterSwords1:fix/acp-thinking-adaptive-ollama

Conversation

@MasterSwords1

@MasterSwords1 MasterSwords1 commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Ollama reasoning-capable models expose native effort tiers, but OpenClaw did not
advertise the adaptive thinking tier for Ollama, and ACP session presentation
forced the current thinking mode to "adaptive" even when the operator had
configured a different thinkingDefault. This PR adds the adaptive tier
(mapped to Ollama's native think: "high") and makes ACP honor the configured
thinkingDefault when no explicit thinkingLevel is set.

Why This Change Was Made

This revision replaces the earlier /acp spawn changes on this branch, which
did not compile (referenced an undeclared loop variable in shared.ts and a
non-existent AcpConfig.defaultModel field in lifecycle.ts) and overlapped the
already-merged bridge thinkingDefault handling in #128169. Per steipete's
CHANGES_REQUESTED and ClawSweeper needs proof, the scope is narrowed to one
coherent defect:

  • Advertise the OpenClaw-only adaptive thinking level in Ollama's reasoning
    profile (maps to native think: "high" via normalizeOllamaThinkValue).
  • ACP session presentation falls back to the configured thinkingDefault when
    no explicit thinkingLevel is present, instead of forcing "adaptive".
  • The unsupported Fixes #128145 claim is dropped: fix(acp): preserve configured thinking across session reuse #128169 already fixed the
    bridge thinkingDefault wiring, so this PR no longer duplicates it.

User Impact

  • /think adaptive (and the ACP thinking control) is now available for Ollama
    reasoning models; it forwards think: "high" to Ollama.
  • ACP clients show the operator-configured thinking default as the current mode
    when a session has no explicit thinking level, rather than always "adaptive".

Evidence

Unit tests (P1) — green locally

  • extensions/ollama/index.test.ts: reasoning-capable Ollama profile exposes
    adaptive in its levels.
  • extensions/ollama/provider-policy-api.test.ts: native effort tiers include
    adaptive (duplicated fixture consolidated into one const).
  • src/acp/translator.session-setup.test.ts (new): "honors configured
    thinkingDefault when gateway session has no explicit thinkingLevel" and
    "prefers explicit thinkingLevel over thinkingDefault" both pass.
  • Full affected suites: 122 ollama tests + 8 acp translator tests pass; core
    prod tsgo passes; oxlint clean on changed files.

Live proof (P2) — green

  • resolveOllamaThinkParamValue({ think: "adaptive" }, true) === "high" (real
    extension function).
  • Real Ollama Cloud call: POST https://ollama.com/api/chat for gpt-oss:20b
    with think: "high" returned HTTP 200 and the model echoed the prompt.
    (Local pnpm test:live could not stage live auth profiles because the
    operator agent DB is at a stale schema version 17 and migrating requires
    stopping the gateway; the committed extensions/ollama/stream-compat.live.test.ts
    runs this proof in CI where the DB is current.)

Verification

  • pnpm test extensions/ollama/provider-policy-api.test.ts extensions/ollama/index.test.ts src/acp/translator.session-setup.test.ts — all pass.
  • extensions/ollama/stream-compat.live.test.ts — committed live proof (gated on
    OPENCLAW_LIVE_TEST), runs in CI.

Related

@MasterSwords1
MasterSwords1 requested a review from a team as a code owner August 24, 2026 14:26
@clawsweeper

clawsweeper Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: ollama size: XS labels Aug 24, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 24, 2026
@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: f987551b673d44a2a180e90966689264695d2d01

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 24, 2026
@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 10:08 PM ET / August 29, 2026, 02:08 UTC.

ClawSweeper review

What this changes

The branch advertises an Ollama adaptive thinking choice, documents it as mapping to native high effort, and makes ACP session controls show the configured thinking default when no explicit session override exists.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 7 items remain

Keep open: the ACP presentation fix matches Gateway’s stored-override-then-default semantics, but the new Ollama adaptive selector duplicates the already-supported high behavior and needs removal or a distinct vendor contract.

Priority: P2
Reviewed head: f987551b673d44a2a180e90966689264695d2d01

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The ACP portion is source-backed, but the Ollama selector duplicates an existing control and the claimed real behavior proof does not cover the changed paths.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The changed owners are the Ollama provider profile and ACP presentation translator, but the supplied test invokes an unchanged mapper and a direct Ollama request rather than either owner; no redacted current-head ACP or profile-to-request trace is available. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The changed owners are the Ollama provider profile and ACP presentation translator, but the supplied test invokes an unchanged mapper and a direct Ollama request rather than either owner; no redacted current-head ACP or profile-to-request trace is available. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 7 items Adaptive duplicates an existing request value: Before this PR, the Ollama stream adapter already normalized both adaptive and xhigh to native high; the introduced provider-profile entry makes that pre-existing alias a second visible choice beside high.
Introduced duplicate selector: The introduced hunk adds adaptive to a profile that already includes high; the branch documentation explicitly says adaptive maps to think: "high".
ACP fallback follows the authoritative Gateway projection: Gateway publishes an explicit session override plus a model- and agent-resolved thinking default, and defines its effective level as override-or-default; the ACP change carries that existing default into its presentation row.
Findings 2 actionable findings [P1] Remove the duplicate adaptive selector
[P2] Exercise the changed policy in the live proof
Security None None.

How this fits together

Ollama’s plugin publishes model-specific thinking choices that Gateway uses for /think controls and request preparation. ACP reads Gateway session metadata and sends the resulting control state to compatible ACP clients.

flowchart LR
  A[Ollama model capability] --> B[Ollama provider policy]
  B --> C[Gateway thinking choices]
  C --> D[Native Ollama request]
  E[Gateway session metadata] --> F[ACP session translator]
  F --> G[ACP client controls]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The changed owners are the Ollama provider profile and ACP presentation translator, but the supplied test invokes an unchanged mapper and a direct Ollama request rather than either owner; no redacted current-head ACP or profile-to-request trace is available. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Remove the duplicate adaptive selector (P1) - /think high was already advertised and the pre-PR Ollama adapter already maps adaptive to the same native "high" payload. Publishing both values adds a second control with no distinct behavior and conflicts with the repository’s one-canonical-flow rule; keep the ACP repair and remove this profile entry, docs claim, and supporting test unless a distinct Ollama contract is established.
  • Exercise the changed policy in the live proof (P2) - The new test passes adaptive directly to a mapper that already handled it before this branch, then sends think: "high" directly to Ollama. It does not read the introduced provider profile or run an ACP session, so it would pass without the claimed changes. Replace it with redacted, current-head output that reaches the profile-to-request path and an ACP configured-default snapshot.
  • Resolve merge risk (P1) - Merging as written gives Ollama users two visible controls that produce the same native high-effort request, creating conflicting selection semantics.
  • Resolve merge risk (P1) - No audit-ready current-head trace demonstrates either the provider-profile-to-request path or an ACP client loading the configured-default state.
  • Resolve merge risk (P1) - The bug-fix diff is production net +15 lines; its only defensible retained growth is the ACP state projection after the duplicate Ollama selector is removed.
  • Complete next step (P2) - A focused mechanical repair can preserve the unique ACP correction while removing the duplicate Ollama selector and its non-proving live test.

Findings

  • [P1] Remove the duplicate adaptive selector — extensions/ollama/provider-policy-api.ts:21
  • [P2] Exercise the changed policy in the live proof — extensions/ollama/stream-compat.live.test.ts:14-31
Agent review details

Security

None.

PR surface

Source +15, Tests +135, Docs +2. Total +152 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 3 17 2 +15
Tests 4 142 7 +135
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 162 10 +152

Review metrics

Metric Value Why it matters
Production vs test delta production +15 net; tests +135 net; docs +2 net The ACP projection is bounded owner-boundary growth, while the provider-profile addition is duplicate user-facing behavior rather than new capability.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the ACP default-presentation repair, but remove the Ollama adaptive profile/docs/live-test changes unless maintainers establish a distinct Ollama behavior that differs from /think high.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the ACP default-presentation repair, but remove the Ollama adaptive profile/docs/live-test changes unless maintainers establish a distinct Ollama behavior that differs from /think high.

Do we have a high-confidence way to reproduce the issue?

Yes, source-reproducible: the merge-base adapter already maps adaptive to the same native high value as /think high; no live current-head trace was supplied.

Is this the best way to solve the issue?

No: exposing an alias that maps identically to the existing high control is not the best fix; the ACP override/default presentation change is independently sound and should remain.

Full review comments:

  • [P1] Remove the duplicate adaptive selector — extensions/ollama/provider-policy-api.ts:21
    /think high was already advertised and the pre-PR Ollama adapter already maps adaptive to the same native "high" payload. Publishing both values adds a second control with no distinct behavior and conflicts with the repository’s one-canonical-flow rule; keep the ACP repair and remove this profile entry, docs claim, and supporting test unless a distinct Ollama contract is established.
    Confidence: 0.98
  • [P2] Exercise the changed policy in the live proof — extensions/ollama/stream-compat.live.test.ts:14-31
    The new test passes adaptive directly to a mapper that already handled it before this branch, then sends think: "high" directly to Ollama. It does not read the introduced provider profile or run an ACP session, so it would pass without the claimed changes. Replace it with redacted, current-head output that reaches the profile-to-request path and an ACP configured-default snapshot.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4b8a2a7d932f.

Labels

Label changes:

  • add P2: The branch affects optional provider thinking controls and ACP session presentation, with a bounded but user-visible correctness issue.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • remove P1: Current review triage priority is P2, so this older priority label is no longer current.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.
  • remove merge-risk: 🚨 availability: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: The branch affects optional provider thinking controls and ACP session presentation, with a bounded but user-visible correctness issue.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The changed owners are the Ollama provider profile and ACP presentation translator, but the supplied test invokes an unchanged mapper and a direct Ollama request rather than either owner; no redacted current-head ACP or profile-to-request trace is available. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Acceptance criteria:

  • [P1] pnpm test extensions/ollama/provider-policy-api.test.ts extensions/ollama/index.test.ts src/acp/translator.session-setup.test.ts.
  • [P1] git diff --check.

What I checked:

  • Adaptive duplicates an existing request value: Before this PR, the Ollama stream adapter already normalized both adaptive and xhigh to native high; the introduced provider-profile entry makes that pre-existing alias a second visible choice beside high. (extensions/ollama/src/stream-compat.ts:139, ea1a547437ce)
  • Introduced duplicate selector: The introduced hunk adds adaptive to a profile that already includes high; the branch documentation explicitly says adaptive maps to think: "high". (extensions/ollama/provider-policy-api.ts:21, f987551b673d)
  • ACP fallback follows the authoritative Gateway projection: Gateway publishes an explicit session override plus a model- and agent-resolved thinking default, and defines its effective level as override-or-default; the ACP change carries that existing default into its presentation row. (src/gateway/session-utils-model.ts:291, f987551b673d)
  • ACP entry point and coverage: ACP loadSession obtains the Gateway snapshot and returns its modes and config options; the introduced tests cover an absent override with default off and explicit-level precedence. (src/acp/translator.session-lifecycle.ts:138, f987551b673d)
  • Current main still lacks both branch changes: The fetched current-main sources retain the five-level Ollama profile and force ACP presentation to adaptive when no session override exists, so the ACP correction is not superseded. (src/acp/translator.presentation.ts:144, 4b8a2a7d932f)
  • ACP history routing: The ACP session-state owner appears to date to Peter Steinberger’s translator split; the related merged ACP thinking work is adjacent, not a replacement for this presentation change. (src/acp/translator.session-state.ts:237, 7cf4f9aa6a3d)

Likely related people:

  • Peter Steinberger: Authored the historical ACP translator/session-state split that owns the Gateway-to-ACP projection boundary. (role: ACP session-state refactor contributor; confidence: medium; commits: 7cf4f9aa6a3d; files: src/acp/translator.session-state.ts)
  • chelsealong: Authored the merged configured-thinking repair whose scope is adjacent to, but does not replace, this ACP presentation change. (role: recent adjacent ACP thinking contributor; confidence: medium; commits: 8d8736dd0ad0; files: src/acp/persistent-bindings.lifecycle.ts, src/agents/subagents/spawn/acp-spawn-runtime.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the adaptive profile/docs/live-test change or establish a distinct vendor-backed adaptive contract.
  • Post redacted current-head output showing the selected provider profile reaches the native request and an ACP client receives the configured default; update the PR body for automatic re-review.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-25T04:36:21.657Z sha e449e55 :: needs real behavior proof before merge. :: [P1] Route default thinking to ACPX initialization
  • reviewed 2026-08-25T14:07:33.437Z sha 8d8921d :: needs real behavior proof before merge. :: [P1] Parse the newly documented spawn options
  • reviewed 2026-08-25T14:50:48.332Z sha 8d8921d :: needs real behavior proof before merge. :: [P1] Parse the documented spawn options | [P1] Forward the selected model to ACPX
  • reviewed 2026-08-27T14:48:18.876Z sha b06ed82 :: needs real behavior proof before merge. :: [P1] Use a supported ACP model source | [P1] Keep positional parsing in scope and terminating | [P1] Forward the selected model with its thinking value
  • reviewed 2026-08-27T15:48:38.076Z sha b06ed82 :: needs real behavior proof before merge. :: [P1] Consume positional spawn arguments inside the loop | [P1] Forward the selected model to ACP session initialization
  • reviewed 2026-08-27T20:27:55.691Z sha b06ed82 :: needs real behavior proof before merge. :: [P1] Terminate positional spawn parsing | [P1] Use a supported ACP model source | [P1] Forward the selected model to ACP initialization
  • reviewed 2026-08-27T21:12:04.111Z sha b06ed82 :: needs real behavior proof before merge. :: [P1] Consume positional spawn tokens before continuing | [P1] Remove the nonexistent ACP default-model lookup | [P1] Pass the chosen model through ACP initialization | [P1] Gate adaptive thinking on the selected Ollama transport
  • reviewed 2026-08-27T23:23:50.317Z sha b06ed82 :: needs real behavior proof before merge. :: [P1] Consume positional spawn arguments before the next loop iteration | [P1] Remove the nonexistent ACP default-model lookup | [P1] Forward the selected model with the thinking value

@MasterSwords1
MasterSwords1 force-pushed the fix/acp-thinking-adaptive-ollama branch from 209a536 to 45a09b3 Compare August 24, 2026 15:23
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Aug 24, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 24, 2026
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 24, 2026
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 25, 2026
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete steipete left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch combines an Ollama thinking-capability expansion with ACP presentation and spawn changes. The submitted spawn flow is incomplete, and it does not repair the configured-binding path reported in #128145.

Production LOC: +48/-4 (net +44). Tests: +155/-3 (net +152). Docs: +3/-1 (net +2). Total: +198, not net-neutral.

  1. [P1] Advertised spawn options are not parsed. rawModel and rawThinking are declared but never assigned. The parser rejects --model and --thinking as unknown options, and rejects the additional positional arguments covered by the new test. These commands cannot reach initialization successfully. See the declarations and parsing loop and rejection branches.

  2. [P1] The selected model is dropped at initialization. The new code resolves model and modelExplicit, but the initialize call forwards only thinking. Even after parsing is repaired, the advertised model override would not reach the runtime. Keep model/thinking resolution and forwarding together rather than introducing a partial copy of the existing spawn flow.

  3. The linked configured-default bug is not fixed by this branch. The configured-binding producer and lifecycle are unchanged: the producer resolves the model, while initialization forwards model-only runtime options. Open PR #128169 already owns that repair. Advertising adaptive as an alias for high effort is separate from honoring a configured off default, and a presentation correction alone does not establish that the runtime failure is repaired.

Please narrow this to one independently verified defect and remove the incomplete spawn additions and the unsupported Fixes #128145 claim. The bridge's dropped thinkingDefault is a plausible focused repair to investigate separately from expanding Ollama's advertised capabilities. Its owner has a redundant row-copy projection and duplicate label formatters that can be simplified; consolidate the repeated test fixtures while preserving coverage to meet the net-neutral size target.

Reviewed head: 8d8921d6827bde1f5947272699b38939f02c5980. This review is based on source, caller/sibling, dependency-contract, and history inspection. I did not execute fork tests or a live ACP/Ollama run, and am not treating the supplied direct-Ollama capture as proof of ACP initialization.

@openclaw-barnacle openclaw-barnacle Bot added triage: blank-template Candidate: PR template appears mostly untouched. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 27, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 27, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 27, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 27, 2026
… thinkingDefault over ACP

- Add the OpenClaw-only `adaptive` thinking tier to Ollama's reasoning
  profile (maps to native `think: "high"` via normalizeOllamaThinkValue).
- ACP session presentation now falls back to the configured
  `thinkingDefault` when no explicit `thinkingLevel` is set, instead of
  forcing "adaptive".
- Add ACP presentation tests (honors thinkingDefault; explicit level wins)
  and an Ollama Cloud live proof (gpt-oss:20b accepts think:"high").

Scope narrowed from the previous revision: the earlier /acp spawn additions
were incomplete (did not compile) and overlap the already-merged bridge
thinkingDefault handling in openclaw#128169, so they are dropped here.
@MasterSwords1
MasterSwords1 force-pushed the fix/acp-thinking-adaptive-ollama branch from b06ed82 to f987551 Compare August 29, 2026 01:59
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 29, 2026
@MasterSwords1
MasterSwords1 deleted the fix/acp-thinking-adaptive-ollama branch August 29, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: ollama P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: blank-template Candidate: PR template appears mostly untouched.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

acpx: thinkingLevel 'adaptive' default breaks ACP runs with ollama-cloud models

2 participants