Skip to content

fix(llama-cpp): restore tools for fallback-capable chat templates - #129684

Merged
steipete merged 1 commit into
mainfrom
codex/fix-llama-fallback-tool-support
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-llama-fallback-tool-support

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users connecting an existing llama-server would lose access to agent tools when their chat template supports tool calls but relies on llama.cpp's fallback for describing the available tools.

Why This Change Was Made

llama.cpp treats tool-call parsing and native tool-description rendering as independent capabilities. Its upstream implementation explicitly supports the fallback combination and gates tool parsing only on supports_tool_calls; OpenClaw now follows that same provider-owned contract when discovering existing servers.

User Impact

Existing llama-server models that can call tools through llama.cpp's supported fallback now keep their OpenClaw agent tools. Models with absent, disabled, or malformed tool-call capability remain conservatively tool-disabled.

Evidence

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 25, 2026 23:49
@steipete
steipete merged commit 2d85e9c into main Aug 26, 2026
163 checks passed
@steipete
steipete deleted the codex/fix-llama-fallback-tool-support branch August 26, 2026 00:09
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant