mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1374
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Jun 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2734
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Regression introduced by #2730 — release-blocker. As part of fixing #2718 (local sidecar embeddings),
buildLlamaArgsnow appends--embeddings --pooling meanto every llama-server launch. But that single server is the only sidecar server, and it also serves chat. With--embeddings+ a non-nonepooling type, llama.cpp'sllama-serverruns in embedding mode and rejects/v1/chat/completionsand/completions. The net effect is that all local-model generation is broken on the default desktop (llama.cpp) backend in v2.0.0: local trackers, game scene/asset analysis, and the in-app Local AI Model → Test Message all fail on the first real request.This is the same shared server, so adding the embedding flags to fix the embed path broke the much larger chat path. The fix for #2718 needs to not co-locate embeddings and chat on one pooled server.
How it degrades the UX
A user running the bundled local model (no API key — the entire reason the sidecar exists) downloads the curated GGUF, the server boots and reports ready (the readiness probe only hits
/health), and then every message / tracker / scene-analysis request fails. The headline "run a model locally" feature is non-functional out of the box.Steps to replicate
unsloth/gemma-4-E2B-itGGUF — a generative model, not an embedding model).Code trace (staging)
packages/server/src/services/sidecar/sidecar-launch-plan.ts:40—args.push("--embeddings", "--pooling", "mean");is unconditional (added by #2730, commitbe161eea). Verified: it runs on everybuildLlamaArgscall.packages/server/src/services/sidecar/sidecar-process.service.ts:643spawns exactly one llama-server;baseUrlis reused for everything.packages/server/src/services/sidecar/sidecar-inference.service.ts:234POSTs${baseUrl}/v1/chat/completions(consumed byrunTrackerPrompt,analyzeScene,runTestMessage);LocalSidecarProviderchat delegates to the same base URL./health(sidecar-process.service.tswaitForReady), so the server boots "ready" and the failure surfaces only on the first completion request.llama-serverREADME,--embeddingsrestricts the server to embedding use; with mean/cls/last pooling the server uses non-causal attention and completion requests are rejected.Suggested fix
Do not serve embeddings and chat from the same pooled server. Any of:
--embeddingson its own port, used only by the embed path; keep the chat server free of the flag. (Cleanest; matches the intent of #2718.)--pooling none— a single server launched with--embeddings --pooling nonekeeps causal attention and recentllama-serverstill answers/v1/embeddings, so chat keeps working. (Smallest change; verify the bundled runtime build serves embeddings withnone.)Also harden
waitForReadyto do a minimal completion probe (not just/health) so a chat-disabled server is caught at startup rather than on first use.Template checklist
pnpm checkpasses (TypeScript + ESLint)/v1/embeddingsstill returns vectors on the llama.cpp backend (the #2718 fix still holds)Found by a post-merge verification sweep of #2730 against the merged
stagingtree; regression confirmed by direct read at the cited file:line. Box left unchecked for human verification.@SpicyMarinara commented on GitHub (Jun 21, 2026):
Addressed in PR #2747.