Skip to content

fix(ollama): models advertise tools when /api/show fails - #109971

Merged
vincentkoc merged 13 commits into
openclaw:mainfrom
zw-xysk:fix/ollama-show-fail-no-tools
Jul 31, 2026
Merged

vincentkoc merged 13 commits into
openclaw:mainfrom
zw-xysk:fix/ollama-show-fail-no-tools

Conversation

@zw-xysk

@zw-xysk zw-xysk commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users discovering local Ollama models would still see tool support advertised when /api/show failed (HTTP error or network throw), so a broken or uninspectable model looked tool-capable in catalog/setup paths.

Why This Change Was Made

buildOllamaModelDefinition treats missing capabilities as optimistic supportsTools: true. Failed /api/show previously returned {}, which left capabilities undefined. This change marks failed inspection with showInspectionFailed, keeping three states:

  1. capabilities omitted (uninspected / successful show without field) → optimistic tools + name heuristics
  2. capabilities: string[] (including []) → authoritative show result
  3. showInspectionFailed → tools conservative, reasoning name heuristics preserved

The failure marker is propagated through provider discovery, interactive setup config building, and the dynamic /models add resolve path (there is no src/auto-reply/reply/models-add.ts on current main; that sibling lives in extensions/ollama/index.ts).

User Impact

Local Ollama models whose /api/show fails no longer advertise tools across discovery, setup, and dynamic model resolve, while reasoning-named models still keep the established name heuristic during transient inspection failures. A successful show that reports an empty capabilities list remains authoritatively non-tool and non-reasoning.

Evidence

Layer Proof Result
L1 three-state unit matrix + HTTP 404/throw paths pass
L2 buildOllamaProvider, setup config build, dynamic resolve pass
L3 Real 127.0.0.1 HTTP (/api/tags 200, /api/show 500) + undici fetch pass

| Rank-up P1 fail-closed dynamic resolve | resolveRequestedDynamicOllamaModel returns undefined on showInspectionFailed (typo/404/throw stay rejected); tag/setup keep tools-off marker | tip 9d8f849ad9be |
| Gate | pnpm exec oxfmt --check + oxlint + vitest run on index/setup/provider-models tests → 126 passed | local |

Scrapable L3 line:

[ollama show-fail live proof] base=http://127.0.0.1:56531 model=deepseek-r1:14b showHits=1 supportsTools=false reasoning=true

Local gates:

pnpm exec oxfmt --check extensions/ollama/src/provider-models.ts extensions/ollama/src/provider-models.test.ts extensions/ollama/src/setup.ts extensions/ollama/src/setup.test.ts extensions/ollama/index.ts extensions/ollama/index.test.ts
pnpm exec oxlint <same files>
pnpm exec vitest run extensions/ollama/src/provider-models.test.ts extensions/ollama/src/setup.test.ts extensions/ollama/index.test.ts
→ 125 passed

Head: 9d8f849ad9bea52f0ff7f433fa4d50afc638d4da

zw-xysk added 2 commits July 17, 2026 20:19
Failed show responses left capabilities undefined, which
buildOllamaModelDefinition treats as optimistic supportsTools.
Match setup inspect: return empty capabilities instead.
Unit paths for HTTP error/throw plus real 127.0.0.1 server proving
buildOllamaProvider keeps supportsTools false when /api/show 500s.
@zw-xysk

zw-xysk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 17, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 5:17 AM ET / 09:17 UTC.

ClawSweeper review

What this changes

The branch distinguishes failed Ollama /api/show inspection from omitted or authoritative-empty capability metadata so failed inspection disables advertised tools without losing reasoning-name heuristics or accepting unknown dynamic models.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This remains a bounded, necessary Ollama provider fix. The latest head removes the prior release-owned changelog blocker, retains the three-state inspection behavior across discovery, setup, and dynamic resolution, and has credible real HTTP proof; final maintainer review should wait for the current CI run rather than closing or replacing the PR.

Priority: P2
Reviewed head: 59f94855167f4e72c5bf532370a7d4e62cad1061

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with strong direct failure-path proof and prior blockers addressed; remaining work is normal merge-result validation and maintainer acceptance of the conservative fallback.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body includes an after-fix loopback HTTP proof that forces /api/show failure and records the changed runtime result, supplemented by focused regression coverage; no sensitive values are exposed in the supplied output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body includes an after-fix loopback HTTP proof that forces /api/show failure and records the changed runtime result, supplemented by focused regression coverage; no sensitive values are exposed in the supplied output.
Evidence reviewed 5 items Latest-head scope: The supplied six-file diff carries showInspectionFailed from failed /api/show requests through model enrichment, setup selection, provider discovery, and dynamic model resolution; the final head only removes the release-owned changelog entry that the prior review requested.
Failure-path contract: The branch preserves three distinct states: omitted capabilities remain optimistic, an authoritative empty capability list remains non-tool/non-reasoning, and a failed inspection is tools-off while retaining the established reasoning-name heuristic.
Dynamic resolver remains fail-closed: The dynamic-resolution regression changes the unresolved-model probe to reject failed inspection rather than treating the failure marker as proof that an arbitrary requested model exists.
Findings None None.
Security None None.

How this fits together

The Ollama extension reads local model tags, enriches each model through /api/show, and turns that metadata into provider catalog entries, setup selections, and requested dynamic model definitions. This PR changes the failure classification at the inspection boundary so downstream consumers receive a conservative tool capability without confusing a transport failure with a successful empty response.

flowchart LR
  A[Ollama /api/tags] --> B[Discovered local models]
  B --> C[/api/show inspection]
  C --> D{Inspection outcome}
  D -->|Metadata available| E[Authoritative capabilities]
  D -->|Request failed| F[Failed-inspection marker]
  E --> G[Catalog and setup definitions]
  F --> G
  G --> H[Dynamic model resolution]
Loading

Before merge

  • Resolve merge risk (P1) - A transient or unavailable /api/show response now deliberately suppresses tool advertising for a previously usable local model; this conservative provider-behavior change is appropriate for the reported failure but should remain an intentional compatibility decision at merge.
  • Resolve merge risk (P1) - The PR is cleanly mergeable but behind main; its in-progress CI must validate the exact current merge result before landing.
  • Complete next step (P2) - No mechanical repair remains: the prior review finding was addressed, and the remaining actions are normal CI completion and maintainer merge judgment.
Agent review details

Security

None.

PR surface

Source +11, Tests +70. Total +81 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 2 20 9 +11
Tests 4 81 11 +70
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 101 20 +81

Review metrics

None.

Stored data model

Persistent data-model change detected: vector/embedding metadata: extensions/ollama/index.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Accept the conservative inspection contract (recommended)
    Merge after the current checks pass, accepting that transient failed inspection suppresses advertised tools rather than preserving the old optimistic claim.
  2. Pause for a different fallback policy
    Pause only if maintainers want failed inspection to retain prior tool advertising, since that would require a deliberate alternative safety contract and matching tests.

Technical review

Best possible solution:

Land the three-state inspection contract after the current merge-result checks pass: preserve optimistic behavior only for genuinely uninspected models, retain authoritative empty capability handling, and keep failed inspection conservative and fail-closed for unknown dynamic model requests.

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

Yes from the supplied focused path: a local Ollama-compatible HTTP server returns tags successfully and makes /api/show fail, then discovery/setup/dynamic resolution consume the resulting definition. The PR also supplies direct real-loopback output for the corrected tools-off and reasoning-preserved outcome.

Is this the best way to solve the issue?

Yes. A dedicated failed-inspection marker is narrower and safer than treating failure as either omitted metadata or authoritative empty capabilities, and the branch propagates that distinction through each known consumer while keeping unknown dynamic models fail-closed.

AGENTS.md: unclear because the file could not be read completely.

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

Labels

Label justifications:

  • P2: The change corrects bounded provider metadata behavior that can make local-model tool availability misleading, without evidence of an urgent outage.
  • merge-risk: 🚨 compatibility: A failed /api/show call now produces a conservative tools-off definition for existing local models, changing behavior that downstream provider and setup consumers may observe.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes an after-fix loopback HTTP proof that forces /api/show failure and records the changed runtime result, supplemented by focused regression coverage; no sensitive values are exposed in the supplied output.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes an after-fix loopback HTTP proof that forces /api/show failure and records the changed runtime result, supplemented by focused regression coverage; no sensitive values are exposed in the supplied output.

Evidence

What I checked:

  • Latest-head scope: The supplied six-file diff carries showInspectionFailed from failed /api/show requests through model enrichment, setup selection, provider discovery, and dynamic model resolution; the final head only removes the release-owned changelog entry that the prior review requested. (extensions/ollama/src/provider-models.ts:82, 59f94855167f)
  • Failure-path contract: The branch preserves three distinct states: omitted capabilities remain optimistic, an authoritative empty capability list remains non-tool/non-reasoning, and a failed inspection is tools-off while retaining the established reasoning-name heuristic. (extensions/ollama/src/provider-models.test.ts:474, 9d8f849ad9be)
  • Dynamic resolver remains fail-closed: The dynamic-resolution regression changes the unresolved-model probe to reject failed inspection rather than treating the failure marker as proof that an arbitrary requested model exists. (extensions/ollama/index.test.ts:1904, 9d8f849ad9be)
  • Real behavior proof: The PR body reports a real loopback HTTP run with /api/tags returning 200 and /api/show returning 500, observing supportsTools=false while a reasoning-named model remains reasoning-capable. The latest maintainer comment reports the prepared exact head has 146 focused tests and fresh autoreview clean. (extensions/ollama/src/provider-models.test.ts:662, 59f94855167f)
  • Related refactor boundary: Merged Ollama onboarding refactor refactor(ollama): unify local model onboarding #115543 explicitly states that it preserves failed-inspection distinguishability but does not alter the unrelated provider-inspection contract proposed here, so it does not supersede this PR. (extensions/ollama/src/setup-model-selection.ts:78, 1e82025a54bb)

Likely related people:

  • vincentkoc: Prepared the current exact head through the main merges, removed the release-owned changelog entry, and is assigned to this PR. (role: recent area integrator and assigned reviewer; confidence: high; commits: 914771a435a2, 8aa74e18c26e, 59f94855167f; files: extensions/ollama/src/provider-models.ts, extensions/ollama/src/setup-model-selection.ts, extensions/ollama/index.ts)
  • steipete: Authored and merged the nearby onboarding consolidation, which retains the same failed-inspection distinction on the setup side while explicitly leaving this provider contract separate. (role: adjacent Ollama onboarding refactor author; confidence: high; commits: 1e82025a54bb; files: extensions/ollama/src/setup-model-selection.ts)

Rank-up moves

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

  • Let the in-progress CI finish against the current merge result.
  • Confirm the intentional compatibility tradeoff that a failed inspection disables advertised tools.

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 (7 earlier review cycles)
  • reviewed 2026-07-17T12:30:02.209Z sha b6928f4 :: needs changes before merge. :: [P1] Preserve reasoning fallback when /api/show fails
  • reviewed 2026-07-17T12:50:13.210Z sha b4ee2b8 :: needs changes before merge. :: [P1] Propagate inspection failures to every model builder caller
  • reviewed 2026-07-17T13:18:39.192Z sha 804503e :: needs changes before merge. :: [P1] Keep failed /api/show from validating unknown models
  • reviewed 2026-07-17T13:29:54.932Z sha 9d8f849 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T14:11:54.691Z sha 9d8f849 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T05:58:40.731Z sha 9d8f849 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T09:09:42.904Z sha 8aa74e1 :: found issues before merge. :: [P2] Remove the release-owned changelog entry

zw-xysk added 2 commits July 17, 2026 20:45
Distinguish failed inspection from authoritative empty capabilities
so tools stay conservative without suppressing model-name reasoning.
Failed show keeps reasoning heuristics; authoritative [] disables both.
@zw-xysk

zw-xysk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Addressed ClawSweeper P1/P2:

  • Failed /api/show now returns { showInspectionFailed: true } instead of { capabilities: [] }
  • Tools stay conservative on inspection failure; reasoning name heuristics preserved
  • Authoritative capabilities: [] still disables tools and reasoning
  • Added three-state unit coverage + live HTTP proof: supportsTools=false reasoning=true for deepseek-r1:14b

Head: b4ee2b824ec5efa8aef56f406bca12504220ab81

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 17, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

zw-xysk added 4 commits July 17, 2026 21:12
Setup inspection failures now use the three-state marker instead of
authoritative empty capabilities, keeping tools off and reasoning heuristics.
Cover interactive setup when /api/show returns 500 for deepseek-r1.
…olve

/models add dynamic path now builds failed-show definitions with tools
off while preserving reasoning name heuristics.
…avior

Mock builder matches production tools/reasoning contract for inspection failure.
@zw-xysk

zw-xysk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Addressed latest ClawSweeper P1/P2 on tip 804503e15e2f2aa1d592bcc021c2f27791000736:

  • setup.ts: inspection failures use showInspectionFailed (not capabilities: []); buildOllamaModelsConfig forwards the flag
  • extensions/ollama/index.ts: dynamic resolve (/models add sibling; src/auto-reply/reply/models-add.ts does not exist on main) builds failed-show definitions with tools off + reasoning heuristics
  • Regressions in setup.test.ts + index.test.ts

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 17, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

… failure

Failed /api/show is an existence probe for unresolved models; return undefined so typos/404s stay rejected. Tag-discovered and setup paths keep showInspectionFailed tools-off behavior.
@zw-xysk

zw-xysk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rank-up P1 addressed on tip 9d8f849ad9bea52f0ff7f433fa4d50afc638d4da:

  • resolveRequestedDynamicOllamaModel returns undefined on showInspectionFailed (catalog-missing existence probe stays fail-closed)
  • Regressions: catalog-missing unresolved on show fail + throw outcome
  • Tag-discovered / setup still use showInspectionFailed → tools off + reasoning heuristics
  • Gate: oxfmt + oxlint + vitest on ollama index/setup/provider-models → 126 passed

@clawsweeper

clawsweeper Bot commented Jul 17, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed 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. labels Jul 17, 2026
@clawsweeper clawsweeper Bot added the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Jul 17, 2026
@vincentkoc vincentkoc self-assigned this Jul 31, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 31, 2026
vincentkoc and others added 3 commits July 31, 2026 10:49
Merge latest main into PR openclaw#109971 while retaining the audited Ollama repair and release note.

Co-authored-by: zw-xysk <[email protected]>
* preserve/pr-109971-ollama-show-inspection-20260731: (4302 commits)
  fix(agents): resume interrupted turns past progress commentary (openclaw#116725)
  fix(gateway): sign device proofs with challenge time (openclaw#116679)
  fix(testing): load relay smoke through UI Vite config
  test(testing): guard realtime relay smoke module path
  fix(testing): repair realtime relay live smoke import
  test: type session request parameters (openclaw#116713)
  fix: retain event invalidation for pagination
  docs: note queued session refresh fix
  fix: preserve queued session refresh options
  fix(exec): require approval for abbreviated inline eval flags [AI] (openclaw#116529)
  fix: keep owner-only tools out of non-owner skill commands [AI] (openclaw#116532)
  fix(ui): bound Talk relay microphone uplink
  fix(tui): require a fresh agent roster (openclaw#116715)
  fix(memory-wiki): preserve user edits when rolling back ChatGPT imports (openclaw#116517)
  fix(agents): cron failures preserve timeout and cancellation reasons (openclaw#116566)
  fix(release): unblock beta validation workflows (openclaw#116708)
  fix(ci): discover frozen target startup benchmark cases (openclaw#116711)
  fix(session): preserve reset message payloads (openclaw#116195)
  fix(qa): tolerate loaded-runner bus delivery stalls (openclaw#116448)
  improve(ci): rebalance embedded agent test configs (openclaw#116436)
  ...
* origin/main:
  fix(edit): restore UTF-16 difference offsets
  fix(openai): share GPT-Live browser broker ownership
  fix(voice-call): cancel consults on bridge replacement
  fix(voice-call): recheck consult owner after await
  fix(voice-call): cancel pending replacement consults
  fix(voice-call): isolate replacement consult handoff
  test(voice-call): cover late forced consult teardown
  fix(voice-call): cancel forced consults on teardown
  fix(edit): prefer-for-of loop in firstDifferenceIndex
  fix(openai): return undefined from cleanup on non-disable reasons
  fix(openai): restrict GPT-Live broker cleanup to plugin disable only
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 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 repository_dispatch).
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 status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 31, 2026
@vincentkoc

Copy link
Copy Markdown
Member

The release-owned CHANGELOG edit has been removed. The prepared exact head retains the reviewed six-file Ollama fix; 146 focused tests, real /api/show failure proof, targeted checks, and fresh autoreview are clean.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 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 repository_dispatch).
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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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. labels Jul 31, 2026
@vincentkoc
vincentkoc merged commit d2b869e into openclaw:main Jul 31, 2026
115 of 121 checks passed
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

vincentkoc added a commit to Leon-SK668/openclaw that referenced this pull request Jul 31, 2026
* origin/main: (1976 commits)
  fix(ollama): models advertise tools when /api/show fails (openclaw#109971)
  fix(ollama): use CJK-aware char estimate for usage fallback (openclaw#110073)
  fix(ollama): release failed setup response bodies before returning (openclaw#111802)
  feat(plugins): externalize Synthetic provider (openclaw#116720)
  fix(agents): unblock channel turns after restart recovery (openclaw#116728)
  fix(telegram): keep typing alive during active steered tasks (openclaw#116721)
  fix(gateway): admit standalone MCP app work (openclaw#116727)
  fix(googlechat): record canonical receipt thread (openclaw#116717)
  test(ui): cover the Talk relay start-stop race
  fix(ui): close superseded Talk allocations
  fix(agents): resume interrupted turns past progress commentary (openclaw#116725)
  fix(gateway): sign device proofs with challenge time (openclaw#116679)
  fix(testing): load relay smoke through UI Vite config
  test(testing): guard realtime relay smoke module path
  fix(testing): repair realtime relay live smoke import
  test: type session request parameters (openclaw#116713)
  fix: retain event invalidation for pagination
  docs: note queued session refresh fix
  fix: preserve queued session refresh options
  fix(exec): require approval for abbreviated inline eval flags [AI] (openclaw#116529)
  ...
vincentkoc added a commit that referenced this pull request Jul 31, 2026
* commit 'refs/frozen/talk-pcm-output-main': (21 commits)
  fix(agents): compact session status change text (#116742)
  fix(llama-cpp): recover plaintext tool calls (#116736)
  fix(telegram): validate native queue arguments before fallback (#116726)
  chore(skills): add autonomous issue sweep workflow
  docs(auto-qa): require clean root-cause refactors
  fix(ollama): models advertise tools when /api/show fails (#109971)
  fix(ollama): use CJK-aware char estimate for usage fallback (#110073)
  fix(ollama): release failed setup response bodies before returning (#111802)
  feat(plugins): externalize Synthetic provider (#116720)
  fix(agents): unblock channel turns after restart recovery (#116728)
  fix(telegram): keep typing alive during active steered tasks (#116721)
  fix(gateway): admit standalone MCP app work (#116727)
  test(ui): cover the Talk relay start-stop race
  fix(ui): close superseded Talk allocations
  test(google): cover expired CLI OAuth compatibility
  docs(google): document supported auth paths
  fix(ui): clarify blocked inference setup
  fix(google): guide broken CLI profiles to supported auth
  fix(onboarding): hide unsupported Google CLI setup routes
  fix(google): retire Gemini CLI OAuth setup
  ...
vincentkoc added a commit that referenced this pull request Jul 31, 2026
* origin/main: (38 commits)
  fix(agents): compact session status change text (#116742)
  fix(llama-cpp): recover plaintext tool calls (#116736)
  fix(telegram): validate native queue arguments before fallback (#116726)
  chore(skills): add autonomous issue sweep workflow
  docs(auto-qa): require clean root-cause refactors
  fix(ollama): models advertise tools when /api/show fails (#109971)
  fix(ollama): use CJK-aware char estimate for usage fallback (#110073)
  fix(ollama): release failed setup response bodies before returning (#111802)
  feat(plugins): externalize Synthetic provider (#116720)
  fix(agents): unblock channel turns after restart recovery (#116728)
  fix(telegram): keep typing alive during active steered tasks (#116721)
  fix(gateway): admit standalone MCP app work (#116727)
  fix(googlechat): record canonical receipt thread (#116717)
  test(ui): cover the Talk relay start-stop race
  fix(ui): close superseded Talk allocations
  fix(agents): resume interrupted turns past progress commentary (#116725)
  fix(gateway): sign device proofs with challenge time (#116679)
  test(google): cover expired CLI OAuth compatibility
  fix(testing): load relay smoke through UI Vite config
  test(testing): guard realtime relay smoke module path
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
…9971)

* fix(ollama): do not advertise tools when /api/show fails

Failed show responses left capabilities undefined, which
buildOllamaModelDefinition treats as optimistic supportsTools.
Match setup inspect: return empty capabilities instead.

* test(ollama): cover show-fail tools gate including L3 live HTTP

Unit paths for HTTP error/throw plus real 127.0.0.1 server proving
buildOllamaProvider keeps supportsTools false when /api/show 500s.

* fix(ollama): keep reasoning heuristics when /api/show fails

Distinguish failed inspection from authoritative empty capabilities
so tools stay conservative without suppressing model-name reasoning.

* test(ollama): cover three capability states for tools and reasoning

Failed show keeps reasoning heuristics; authoritative [] disables both.

* fix(ollama): propagate showInspectionFailed through setup configs

Setup inspection failures now use the three-state marker instead of
authoritative empty capabilities, keeping tools off and reasoning heuristics.

* test(ollama): setup show-fail keeps tools off and reasoning heuristics

Cover interactive setup when /api/show returns 500 for deepseek-r1.

* fix(ollama): propagate showInspectionFailed through dynamic model resolve

/models add dynamic path now builds failed-show definitions with tools
off while preserving reasoning name heuristics.

* test(ollama): dynamic resolve covers failed /api/show three-state behavior

Mock builder matches production tools/reasoning contract for inspection failure.

* fix(ollama): keep catalog-missing dynamic resolve fail-closed on show failure

Failed /api/show is an existence probe for unresolved models; return undefined so typos/404s stay rejected. Tag-discovered and setup paths keep showInspectionFailed tools-off behavior.

* chore(changelog): remove release-owned entry

---------

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit 'refs/frozen/talk-pcm-output-main': (21 commits)
  fix(agents): compact session status change text (openclaw#116742)
  fix(llama-cpp): recover plaintext tool calls (openclaw#116736)
  fix(telegram): validate native queue arguments before fallback (openclaw#116726)
  chore(skills): add autonomous issue sweep workflow
  docs(auto-qa): require clean root-cause refactors
  fix(ollama): models advertise tools when /api/show fails (openclaw#109971)
  fix(ollama): use CJK-aware char estimate for usage fallback (openclaw#110073)
  fix(ollama): release failed setup response bodies before returning (openclaw#111802)
  feat(plugins): externalize Synthetic provider (openclaw#116720)
  fix(agents): unblock channel turns after restart recovery (openclaw#116728)
  fix(telegram): keep typing alive during active steered tasks (openclaw#116721)
  fix(gateway): admit standalone MCP app work (openclaw#116727)
  test(ui): cover the Talk relay start-stop race
  fix(ui): close superseded Talk allocations
  test(google): cover expired CLI OAuth compatibility
  docs(google): document supported auth paths
  fix(ui): clarify blocked inference setup
  fix(google): guide broken CLI profiles to supported auth
  fix(onboarding): hide unsupported Google CLI setup routes
  fix(google): retire Gemini CLI OAuth setup
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (38 commits)
  fix(agents): compact session status change text (openclaw#116742)
  fix(llama-cpp): recover plaintext tool calls (openclaw#116736)
  fix(telegram): validate native queue arguments before fallback (openclaw#116726)
  chore(skills): add autonomous issue sweep workflow
  docs(auto-qa): require clean root-cause refactors
  fix(ollama): models advertise tools when /api/show fails (openclaw#109971)
  fix(ollama): use CJK-aware char estimate for usage fallback (openclaw#110073)
  fix(ollama): release failed setup response bodies before returning (openclaw#111802)
  feat(plugins): externalize Synthetic provider (openclaw#116720)
  fix(agents): unblock channel turns after restart recovery (openclaw#116728)
  fix(telegram): keep typing alive during active steered tasks (openclaw#116721)
  fix(gateway): admit standalone MCP app work (openclaw#116727)
  fix(googlechat): record canonical receipt thread (openclaw#116717)
  test(ui): cover the Talk relay start-stop race
  fix(ui): close superseded Talk allocations
  fix(agents): resume interrupted turns past progress commentary (openclaw#116725)
  fix(gateway): sign device proofs with challenge time (openclaw#116679)
  test(google): cover expired CLI OAuth compatibility
  fix(testing): load relay smoke through UI Vite config
  test(testing): guard realtime relay smoke module path
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: ollama merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants