mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6982] [Issue]: Reinstalling or updating the local model runtime deletes the installed decision model #3907
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#3907
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 (Oct 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6982
Originally assigned to: @kolacheee on GitHub.
Summary
Reinstalling or updating the local model's llama.cpp runtime deletes the installed decision model.
cleanupBundledArtifactsinpackages/server/src/services/sidecar/sidecar-runtime.service.tsremoves every folder in<data>/sidecar-runtime/exceptmlxand the runtime it keeps. The Decision sidecar (#6556) keeps its whole runtime and model in<data>/sidecar-runtime/decision/, which that list does not cover.Expected behavior
Only old llama.cpp runtime folders are removed. The decision model and its runtime stay installed.
Actual behavior
sidecar-runtime/decision/is deleted with them: about 10 GB for Open-Jev 2B and 25 GB for Open-Jev 9B, which then have to be downloaded again. Every path into the cleanup does it:reinstallRuntime→resetRuntime()→ cleanup with nothing kept).installLatest→ cleanup keeping only the new runtime folder). This runs the first time the local model's runtime is installed, and on every Marinara update that changes the pinned llama.cpp build.cleanupInactiveRuntimeBackends("mlx")→resetRuntime()); Open-Jev does not run on macOS, so this one matters less.Steps to reproduce
Reproduced in a throwaway data folder on staging
c29513958:sidecar-runtime/decision/(with a model file),sidecar-runtime/mlx/andsidecar-runtime/b10188-linux-x64-vulkan/under an emptyDATA_DIR.sidecarRuntimeService.resetRuntime(), which Reinstall runtime calls.b10188-linux-x64-vulkan decision mlx. After:mlx. The decision model is gone.Environment
c29513958Logs, screenshots, or video
None; the deletion is silent.
Additional context
b10188) has not changed since v2.4.6. So the next release is affected through Reinstall runtime and through installing the local model's runtime after the decision model; the first llama.cpp update after it deletes every installed decision model.decisioncannot be caught again. A regression should pin thatdecisionsurvives bothresetRuntime()and an install.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: