Skip to content

chore: bump cogito for tool-selection %!w(<nil>) fix#50

Merged
mudler merged 1 commit into
masterfrom
bump/cogito-toolselect-fix
Jul 7, 2026
Merged

chore: bump cogito for tool-selection %!w(<nil>) fix#50
mudler merged 1 commit into
masterfrom
bump/cogito-toolselect-fix

Conversation

@localai-bot

Copy link
Copy Markdown
Collaborator

Bumps github.com/mudler/cogito to v0.11.1-0.20260707230916-588db3bcbae5, picking up mudler/cogito#65.

Why

Sending an image in chat failed with:

failed to select tool: … failed to make a streaming decision after 3 attempts: %!w(<nil>)

A reasoning model (e.g. gemma-4-e2b) on an image turn can spend its whole output-token budget on reasoning and finish finish_reason=length with no visible content and no tool call. cogito's streaming tool-selection retried that empty response without recording an error, then wrapped a nil error → %!w(<nil>).

cogito#65 captures finish_reason and fails fast on length with an actionable error, and otherwise always records a real error — so nib surfaces a meaningful message instead of the nil wrap.

Build + vet clean against the new version.

🤖 Generated with Claude Code

Pulls github.com/mudler/cogito#65 (v0.11.1-0.20260707230916-588db3bcbae5):
streaming tool-selection no longer masks an empty/truncated decision as
"%!w(<nil>)". Fixes image turns where a reasoning model's reasoning exhausts
the output budget (finish_reason=length) before producing content — nib now
surfaces an actionable error instead of the meaningless nil wrap.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mudler mudler merged commit 99f5c17 into master Jul 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants