Skip to content

fix(ollama): use CJK-aware char estimate for usage fallback - #110073

Merged
vincentkoc merged 3 commits into
openclaw:mainfrom
hugenshen:fix/ollama-cjk-usage-fallback
Jul 31, 2026
Merged

vincentkoc merged 3 commits into
openclaw:mainfrom
hugenshen:fix/ollama-cjk-usage-fallback

Conversation

@hugenshen

@hugenshen hugenshen commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Ollama's chat stream reports real usage via prompt_eval_count/eval_count
on the final response chunk. When those fields are missing or invalid (e.g. a
native stream that ends early), extensions/ollama/src/stream.ts falls back
to estimating tokens as chars / 4 using plain UTF-16 .length on the
message content, tool-call JSON, and tool names.

That heuristic assumes ~4 chars/token, which holds for Latin/English text but
badly undercounts CJK (Chinese/Japanese/Korean) text, which tokenizes at
roughly 1 char/token. For CJK-heavy conversations that hit this fallback path,
usage is undercounted by 2-4x.

This fallback usage feeds assistantMessage.usage, which is used both for
usage/context telemetry (/context, treemap, totals) and for
calculateContextTokens → shouldCompact proactive context-window
compaction decisions. Undercounting on CJK sessions means the agent believes
it has more context headroom than it actually does, delaying proactive
compaction until the provider itself errors on overflow.

Why This Change Was Made

The core already has the correct weighting formula in src/utils/cjk-chars.ts
(estimateStringChars). Ollama's extension cannot import core internals, and
exposing that helper through the public plugin SDK would create a new stable
API commitment for a single consumer. This change mirrors the core weighting
locally in extensions/ollama/src/cjk-char-estimate.ts and applies it on the
production stream fallback path only.

This change:

  • Weights message content, tool names, serialized tool fields, and completion
    text with the CJK-aware char estimate before the existing chars / 4
    rounding.
  • Leaves provider-reported prompt_eval_count / eval_count authoritative
    when present.
  • Proves both (1) the production caller path over real loopback HTTP and
    (2) live generation against a real Ollama daemon, including a strip-proxy
    run that forces the missing-count fallback.

User Impact

No change for ASCII/Latin content (the fallback estimate is unchanged for
that case). For CJK-heavy Ollama conversations that hit the native-usage
fallback path, usage/context accounting and proactive compaction triggering
are now accurate instead of undercounting by 2-4x. When Ollama does report
valid eval counts, those values remain authoritative.

Evidence

  • Changed: extensions/ollama/src/stream.ts,
    extensions/ollama/src/cjk-char-estimate.ts,
    extensions/ollama/src/stream.test.ts,
    extensions/ollama/src/stream.usage-fallback.http.proof.test.ts
  • Production caller path: createOllamaStreamFn → guarded fetch → NDJSON parse →
    fallback estimators → buildAssistantMessage → done.message.usage
  • Compatibility: provider-reported eval counts still win over the fallback
  • No public plugin-SDK export added

Real behavior proof

Behavior or issue addressed

When an Ollama NDJSON stream's final chunk omits prompt_eval_count /
eval_count, the production stream path writes CJK-aware fallback usage onto
done.message.usage (roughly 1 token per CJK char) instead of the old raw
UTF-16 length / 4 undercount. Valid provider-reported eval counts still
override the fallback.

Canonical reachability path

createOllamaStreamFn → fetchWithSsrFGuard → /api/chat NDJSON final chunk
without eval counts → estimateOllamaPromptTokens /
estimateOllamaCompletionTokens → buildAssistantMessage →
done.message.usage

Shared helper / provider constraint check

Local estimateStringChars mirrors src/utils/cjk-chars.ts so the extension
stays inside the plugin boundary without growing the public SDK surface.
Provider-reported eval counts remain authoritative via resolveUsageCount.

Real environment tested

  • Real Ollama daemon: ollama 0.9.6 on macOS arm64, model qwen2.5:0.5b,
    listening on http://127.0.0.1:11434, Node v22.23.1
  • Case A (provider wins): production createOllamaStreamFn against the
    real daemon through a same-request pass-through recording proxy.
    done.message.usage matched the daemon final-chunk
    prompt_eval_count / eval_count exactly.
  • Case B (CJK fallback): same production path through a transparent
    strip-proxy in front of the real daemon. The proxy deletes
    prompt_eval_count / eval_count only on the final NDJSON chunk after the
    daemon has already generated the CJK completion — forcing the production
    fallback. Observed usage matched estimateStringChars(...)/4 and was
    ~3.8× the naive length/4 undercount.
  • Harness: loopback node:http Ollama-shaped NDJSON + focused stream
    unit tests (real fetchWithSsrFGuard, no fetch mock).

Healthy Ollama almost always emits eval counts, so Case B uses a strip-proxy
in front of the real daemon rather than a fake generator. Generation still
comes from the real model; only the final-chunk usage fields are removed to
enter the production fallback path that this PR fixes.

Exact steps or command run after this patch

# Real daemon (Case A + Case B)
ollama serve
ollama pull qwen2.5:0.5b
# Drive createOllamaStreamFn against :11434 (pass-through + strip-proxy)
# — local proof driver used for the logs below

# Focused harness
node scripts/run-vitest.mjs \
  extensions/ollama/src/stream.test.ts \
  extensions/ollama/src/stream.usage-fallback.http.proof.test.ts \
  --reporter=verbose

Evidence after fix

Case A — real daemon, provider counts authoritative (same HTTP response)

upstream: http://127.0.0.1:11434
model: qwen2.5:0.5b
prompt: 用一句话介绍你自己。请只用中文回答。
node: v22.23.1
ollama: 0.9.6

daemon final-chunk counts (same HTTP response):
  { prompt_eval_count: 40, eval_count: 17, stripped: false }

createOllamaStreamFn done.message.usage:
  { input: 40, output: 17, totalTokens: 57, ... }

completion preview: 我是来自阿里云的大规模语言模型,我叫通义千问。
PASS Case A: usage matches same-response prompt_eval_count/eval_count

Case B — real daemon + strip-proxy, CJK-aware fallback

daemon had counts before strip:
  { prompt_eval_count: 40, eval_count: 33, stripped: true }

createOllamaStreamFn done.message.usage:
  { input: 19, output: 60, totalTokens: 79, ... }

completion preview: 我是Qwen,由阿里云自主研发的超大规模语言模型,具有理解、生成文本的能力,并且在人工智能领域有着丰富的经验和深厚的技术积累。

comparison:
  naiveIn: 5          # old length/4 on prompt + "[]"
  naiveOut: 16        # old length/4 on completion
  expectedIn: 19      # estimateStringChars(prompt+"[]")/4
  expectedOut: 60     # estimateStringChars(completion)/4
  observed: { input: 19, output: 60 }
  inflationVsNaiveIn: 3.80x
  inflationVsNaiveOut: 3.75x

PASS Case B: CJK-aware fallback matches estimateStringChars/4 (>> naive length/4)

Focused harness (production path, loopback NDJSON)

 ✓ stream.test.ts > falls back to CJK-aware usage when the final chunk omits eval counts
 ✓ stream.test.ts > keeps provider-reported eval counts authoritative over the CJK fallback
 ✓ stream.test.ts > matches the plain chars/4 heuristic for ASCII-only fallback usage
 ✓ stream.usage-fallback.http.proof.test.ts > estimates CJK-aware usage when a real Ollama-shaped stream omits eval counts
 ✓ stream.usage-fallback.http.proof.test.ts > keeps provider-reported eval counts authoritative over the HTTP fallback

Observed result after fix

Against a real Ollama 0.9.6 daemon (qwen2.5:0.5b):

  1. When eval counts are present, done.message.usage equals those daemon
    counts (input: 40, output: 17 on the recorded Case A request).
  2. When final-chunk eval counts are stripped after real CJK generation,
    fallback usage is CJK-aware (input: 19, output: 60) — about 3.8× the
    old naive length/4 undercount, and identical to
    estimateStringChars(...)/4.

What was not tested

  • Full gateway /context treemap UI and end-to-end shouldCompact compaction
    trigger against a long CJK session
  • Ollama Cloud / remote multi-host endpoints
  • Non-qwen model families (fallback math is model-agnostic; only the missing
    eval-count trigger matters)

Fix classification

bugfix — usage accounting / CJK undercount

AI Assistance

AI-assisted. Author reviewed the local CJK mirror (no public SDK export),
real-daemon Case A/B proof, loopback HTTP caller-path proof, and CI
unused-export cleanup.

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. 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

This PR makes Ollama’s missing-usage fallback estimate CJK-heavy prompt and completion text with CJK-aware character weighting before deriving token counts.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

The previous SDK-surface and release-note concerns are resolved: the estimator is now private to the Ollama extension, provider-reported usage remains authoritative, and the PR includes focused regression coverage plus real-daemon after-fix evidence. This remains a useful, bounded bug fix rather than a cleanup-close candidate.

Priority: P2
Reviewed head: 7463c0541e6d4d9b56c7730824bafcc20f1b9874

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused provider-boundary fix with strong real-behavior evidence and no remaining actionable correctness finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The PR body provides redacted after-fix output from a real Ollama daemon for both provider-count precedence and a strip-proxy-forced missing-count CJK fallback, supplemented by focused regression tests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The PR body provides redacted after-fix output from a real Ollama daemon for both provider-count precedence and a strip-proxy-forced missing-count CJK fallback, supplemented by focused regression tests.
Evidence reviewed 5 items Private extension boundary: The branch adds the estimator under the Ollama extension and imports it only from the extension stream implementation; it does not add a Plugin SDK export or a core-internal import.
Fallback remains secondary: The changed stream path applies CJK-aware weighting only to local prompt/completion fallback inputs; the existing provider counts remain the authoritative route when present.
Regression coverage: The branch adds focused stream assertions for missing-count CJK fallback, provider-count precedence, and ASCII compatibility.
Findings None None.
Security None None.

How this fits together

The Ollama provider extension converts native /api/chat NDJSON responses into OpenClaw assistant-message events. Its final usage data feeds context telemetry and proactive compaction, using provider counts when available and a local estimate only when they are absent.

flowchart LR
  A[Agent chat request] --> B[Ollama provider extension]
  B --> C[Native NDJSON response]
  C --> D{Usage counts present?}
  D -->|Yes| E[Provider-reported usage]
  D -->|No| F[CJK-aware character estimate]
  E --> G[Assistant message usage]
  F --> G
  G --> H[Context telemetry and compaction]
Loading

Before merge

  • Complete next step (P2) - No mechanical repair remains; this PR needs ordinary merge-result checks and maintainer landing review, not a ClawSweeper fix job.
Agent review details

Security

None.

PR surface

Source +51, Tests +103. Total +154 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 58 7 +51
Tests 1 103 0 +103
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 161 7 +154

Review metrics

None.

Stored data model

Persistent data-model change detected: persistent cache schema: extensions/ollama/src/stream.test.ts, serialized state: extensions/ollama/src/stream.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Land the extension-private fallback change after the required checks finish on the current merge result, preserving provider-reported counts as the first-choice usage source.

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

Yes. A final Ollama NDJSON response without valid prompt/output evaluation counts enters the local estimation path; the PR supplies focused coverage and real-daemon strip-proxy evidence for that condition.

Is this the best way to solve the issue?

Yes. Keeping the CJK weighting private to the Ollama extension fixes its provider-specific fallback without creating a public Plugin SDK contract, while retaining provider-reported counts when they exist.

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: This fixes context accounting only when the optional Ollama provider lacks final usage counts, with bounded user impact and no configuration change.
  • 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 (logs): The PR body provides redacted after-fix output from a real Ollama daemon for both provider-count precedence and a strip-proxy-forced missing-count CJK fallback, supplemented by focused regression tests.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides redacted after-fix output from a real Ollama daemon for both provider-count precedence and a strip-proxy-forced missing-count CJK fallback, supplemented by focused regression tests.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Authored the branch commit that moved the estimator into the plugin-private boundary and merged adjacent Ollama usage-telemetry work on current main. (role: recent area contributor; confidence: high; commits: 7463c0541e6d, 0822e8d39e58; files: extensions/ollama/src/stream.ts, extensions/ollama/src/cjk-char-estimate.ts)

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 (8 earlier review cycles)
  • reviewed 2026-07-17T16:04:14.880Z sha e69e49211454c276525f708d5a4a501dee7543af :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T03:55:06.125Z sha 7ff839f6f626997a665fc1100a071506659407e8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T04:07:20.941Z sha a7b2363 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T04:48:58.652Z sha a7b2363 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T13:48:17.032Z sha a7b2363 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-18T14:30:12.350Z sha a7b2363 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T08:03:19.947Z sha a7b2363 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T08:48:24.559Z sha 4401e61 :: needs changes before merge. :: [P1] Keep the CJK estimator private to the Ollama extension | [P3] Remove the release-owned changelog entry

@hugenshen
hugenshen force-pushed the fix/ollama-cjk-usage-fallback branch from e69e492 to 7ff839f Compare July 18, 2026 03:51
@hugenshen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Updated with production-path proof:

  • createOllamaStreamFn NDJSON final chunk omitting prompt_eval_count/eval_count now asserts CJK-aware done.message.usage
  • provider-reported eval counts remain authoritative
  • dropped test-only exports that broke knip (estimateOllamaPromptTokens / estimateOllamaCompletionTokens)
  • narrowed SDK growth to a single estimateStringChars export + matching surface-budget pins
  • rebased on current main

@clawsweeper

clawsweeper Bot commented Jul 18, 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 the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 18, 2026
@hugenshen
hugenshen force-pushed the fix/ollama-cjk-usage-fallback branch from 7ff839f to a7b2363 Compare July 18, 2026 04:04
@hugenshen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Narrowed further after the last review:

  • No public plugin-SDK export — local extensions/ollama/src/cjk-char-estimate.ts mirrors the core weighting formula (avoids a new stable SDK contract / compatibility risk).
  • Real HTTP proof — stream.usage-fallback.http.proof.test.ts drives production createOllamaStreamFn through real fetchWithSsrFGuard against a loopback node:http Ollama NDJSON server that omits eval counts; sibling case proves provider counts stay authoritative.
  • Rebased; knip unused-export issue remains fixed (estimators stay private).

@clawsweeper

clawsweeper Bot commented Jul 18, 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 removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 18, 2026
@hugenshen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Added real Ollama daemon proof (not loopback-only):

Case A — ollama 0.9.6 / qwen2.5:0.5b / Node v22.23.1: same-request pass-through recording proxy shows done.message.usage matches daemon prompt_eval_count=40 / eval_count=17.

Case B — transparent strip-proxy in front of the real daemon deletes final-chunk eval counts after real CJK generation; production createOllamaStreamFn fallback yields usage.input=19 / usage.output=60 (= estimateStringChars/4, ~3.8× naive length/4).

PR body ## Real behavior proof updated with redacted logs. Harness loopback tests remain as regression coverage.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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: 🦪 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 Jul 18, 2026
@hugenshen

Copy link
Copy Markdown
Contributor Author

@clawsweeper automerge

@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 vincentkoc self-assigned this Jul 31, 2026
@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 removed the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Jul 31, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 31, 2026
@vincentkoc

Copy link
Copy Markdown
Member

The CJK fallback estimator is now plugin-private rather than expanding the public Plugin SDK, and the release-owned CHANGELOG edit is gone. Focused stream tests, the SDK surface gate, 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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 31, 2026
@vincentkoc
vincentkoc merged commit 89bfd21 into openclaw:main Jul 31, 2026
135 of 144 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
…#110073)

* fix(ollama): use CJK-aware char estimate for usage fallback

* fix(ollama): keep CJK estimator plugin-private

---------

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 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