Repository navigation
fix(llama-cpp): detect llama-server on its new default port 9931 - #196594
Conversation
llama.cpp moved llama-server's default port from 8080 to 9931 in b11521 (ggml-org/llama.cpp#30159), so guided detection, runtime discovery, and the setup placeholder missed servers started with defaults. Saved configs always carry an explicit baseUrl, so only unconfigured detection changes; a pre-b11521 server on 8080 now needs its URL entered in setup, which the docs say.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesChanges unconfigured external llama-server discovery from port 8080 to 9931 and updates setup examples and Docker guidance. Example: A native llama-server listens on port 9931 and the user onboards without entering a URL.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: current main still uses port 8080, and this PR provides a focused correction for the verified upstream default change with no actionable code findings. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe llama.cpp plugin resolves explicit or default endpoints for onboarding and model discovery, then supplies connection settings and discovered models to the normal inference transport. flowchart LR
A[Onboarding] --> C[Endpoint resolver]
B[Runtime catalog] --> C
D[Saved URL or default] --> C
C --> E[llama-server discovery]
E --> F[Models and connection settings]
Technical reviewBest possible solution: Land the shared-default correction with its saved-endpoint preservation and explicit older-server and Docker guidance once existing CI gates pass. Do we have a high-confidence way to reproduce the issue? Current main defaults to 8080, whereas native llama.cpp b11521 defaults to 9931, so discovery without an explicit URL targets the wrong port; no target code was executed during this review. Is this the best way to solve the issue? Updating the existing shared constant is the smallest complete correction: setup and runtime discovery already consume it, explicit endpoints remain authoritative, and every introduced hunk serves the port change. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 57526886eb64. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests 0, Docs +7. Total +9 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 24, 2026, 9:37 PM ET / November 25, 2026, 02:37 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…nclaw#196594) * fix(llama-cpp): detect llama-server on its new default port 9931 llama.cpp moved llama-server's default port from 8080 to 9931 in b11521 (ggml-org/llama.cpp#30159), so guided detection, runtime discovery, and the setup placeholder missed servers started with defaults. Saved configs always carry an explicit baseUrl, so only unconfigured detection changes; a pre-b11521 server on 8080 now needs its URL entered in setup, which the docs say. * docs(llama-cpp): explain Docker port mapping for discovery --------- Co-authored-by: Vincent Koc <[email protected]>
…6594) * fix(llama-cpp): detect llama-server on its new default port 9931 llama.cpp moved llama-server's default port from 8080 to 9931 in b11521 (ggml-org/llama.cpp#30159), so guided detection, runtime discovery, and the setup placeholder missed servers started with defaults. Saved configs always carry an explicit baseUrl, so only unconfigured detection changes; a pre-b11521 server on 8080 now needs its URL entered in setup, which the docs say. * docs(llama-cpp): explain Docker port mapping for discovery --------- Co-authored-by: Vincent Koc <[email protected]> (cherry picked from commit 10fb351) Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
…6594) * fix(llama-cpp): detect llama-server on its new default port 9931 llama.cpp moved llama-server's default port from 8080 to 9931 in b11521 (ggml-org/llama.cpp#30159), so guided detection, runtime discovery, and the setup placeholder missed servers started with defaults. Saved configs always carry an explicit baseUrl, so only unconfigured detection changes; a pre-b11521 server on 8080 now needs its URL entered in setup, which the docs say. * docs(llama-cpp): explain Docker port mapping for discovery --------- Co-authored-by: Vincent Koc <[email protected]> (cherry picked from commit 10fb351) Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Fixes:
openclaw onboardand runtime discovery don't find a llama-server started with default settings, because llama.cpp changed its default port.User Impact
User impact: a llama-server on llama.cpp's current default port is detected with no URL to type. A llama-server from before llama.cpp
b11521still listens on 8080 by default; its URL now needs to be entered during setup, as the docs say. Saved configs are unaffected, since they always store an explicitbaseUrl. For the official Docker image, publish host port 9931 to container port 8080 for automatic detection, or enter the existing published host port.Why This Change Was Made
llama.cpp moved llama-server's default port from 8080 to 9931 in
b11521(ggml-org/llama.cpp#30159), and the plugin's external-server default still assumed 8080.Evidence
vitest run extensions/llama-cpp: 25 files, 312 tests passopenclaw onboard --non-interactive --auth-choice llama-cpp-existing-serverwith no--custom-base-urldiscovered the server's 5 router models and set a default;openclaw agent --localcompleted a chat turnMaintainer verification used the PR plugin source on OpenClaw 2026.11.7 with isolated profiles and two real llama.cpp b10210 routers explicitly bound to ports 9931 and 8080. The native default in llama.cpp b11521 and the Docker image's internal port were checked separately.
--auth-choice llama-cpp-existing-serverand no URLhttp://127.0.0.1:9931/v1, selectedllama-cpp/proof-gemma, and refreshed it as available.status=ok,provider=llama-cpp,model=proof-gemma. The response reached the configured 64-token limit.http://127.0.0.1:8080/v1andllama-cpp/proof-legacy. A separate same-core plugin upgrade also refreshed the saved 8080 model as available.The endpoint resolver returned default/saved ports
8080/8080at base46589542ffb6and9931/8080with the fix. Focused CI exercised setup, explicit endpoints, and saved auth.Independent committed-range autoreview covered
46589542ffb6..7eb55b5fd5c4through P2 and reported no actionable findings. The maintainer correction adds only the Docker port-mapping instructions. The affected plugin code and tests are identical to the original tested revision.