Repository navigation
refactor(llama-cpp): adopt canonical runtime owners - #126371
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 19, 2026 17:04
Contributor
Author
|
Land-ready verification complete for
Proof gap: ClawSweeper has not published a review comment, so there are no rank-up moves or technical P1 findings available to address. The publisher is non-blocking under the repository landing policy. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #125781
What Problem This Solves
The external llama-server feature landed with several plugin-local implementations of behavior that already has canonical OpenClaw owners: live catalog caching, bounded concurrency, insertion-order map pruning, auth-profile removal, and record coercion. Keeping those copies would let the plugin drift from the shared runtime policies over time.
This is a post-land canonicalization requested by the maintainer audit, not a criticism of the feature work. Thanks to @osolmaz for building and proving the external llama-server integration in #125781.
Why This Change Was Made
The llama-server plugin now delegates each shared invariant to its existing owner while retaining the same endpoint, credential, cache, scheduling, and cleanup behavior.
getCachedLiveCatalogValuepruneMapToMaxSizeremoveAuthProfilesWithLockvia the existing provider removal seamllama-server:defaultdeletion from profiles, usage, order, and last-good state; unrelated profiles remainrunTasksWithConcurrencyasOptionalRecord/isRecordThe provider removal seam gained an optional exact-profile narrowing and delegates that path to the selected-profile owner. This avoids adding another public Plugin SDK callable or increasing the shrink-only SDK surface budget.
User Impact
No user-visible behavior changes. Existing external llama-server discovery, setup, authentication, dynamic models, and router metadata should behave identically, with shared owners now enforcing the policies.
Production LOC: +87/-139 (net -52). Tests: +299/-12 (net +287).
Evidence
node scripts/run-vitest.mjs extensions/llama-cpp/src/external-server src/agents/auth-profiles/profiles.test.ts src/plugin-sdk/provider-catalog-shared.test.ts src/utils/run-with-concurrency.test.ts— 11 files, 126 tests passed.node scripts/check-changed.mjs— passed core + core tests + extension + extension tests, including formatting, typechecks, lint, coercion, boundaries, dead exports, and import cycles..agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output— clean; no accepted/actionable findings.