mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8930] [MERGED] Let a stale built-in decision model be reinstalled #8886
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#8886
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8930
Author: @kolacheee
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-xkx89o📝 Commits (2)
040e41cLet a stale built-in decision model be reinstalledd47464bRepair every reason the built-in decision model cannot start📊 Changes
10 files changed (+142 additions, -20 deletions)
View changed files
📝
docs/connections/decision-models.md(+1 -0)📝
packages/client/src/components/connections/ConnectionDefaults.tsx(+23 -7)📝
packages/client/src/components/modals/DecisionModelModal.tsx(+64 -6)📝
packages/client/src/components/modals/create-connection/CreateConnectionModalContent.tsx(+1 -1)📝
packages/client/src/hooks/use-decision-sidecar.ts(+2 -0)📝
packages/client/src/lib/add-connection.ts(+10 -2)📝
packages/client/src/localization/locales/en.json(+6 -0)📝
packages/server/src/routes/decision.routes.ts(+6 -0)📝
packages/server/src/services/sidecar/decision-preflight.ts(+12 -4)📝
scripts/regressions/decision-sidecar-runtime.regression.ts(+17 -0)📄 Description
Linked issue
Closes #8929
Why this change
When an update pins a different decision runtime (here uv 0.12.0 to 0.13.5), the installed Open-Jev model can no longer start. The Built-in model (decisions) window still marked it Installed and disabled the install button, so the only way out in the UI was Remove files, which re-downloads 4.6 GB of weights. The Decision row only said "Unavailable" and offered no fix.
What changed
DecisionModelModal: when the installed model cannot start (stale runtime or missing weights), the catalog row reads Needs reinstall, and a warning box with a Reinstall button appears. This also covers a pasted model. A catalog model goes through/sidecar/installwith its id. A pasted model goes back through the repository route at the commit it was installed from. Files that are already whole are kept.decision-preflight: weights and runtime are judged separately. When the weights are kept, a reinstall needs only the runtime's share of the disk (diskBytes - downloadSizeBytes), and an unreadable compute capability no longer refuses it. Before, the preflight counted the kept weights as still to download.GET /decision/sidecaraddsinstalledModelDownloaded, for the installed (catalog or pasted) model.ConnectionDefaults: when the Decision job uses the built-in decision model and it is off or not installed, the row says so, shows Not set up, and its Set up fix opens that window. The primary-slot case is unchanged.add-connection/CreateConnectionModalContent: the Add window can open straight on the built-in decision model (decision-builtin→decision_builtin) without treating it as an API provider.docs/connections/decision-models.md: one bullet on Reinstall. Translations: #8931.en.json: 6 new keys.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
decision-sidecar-runtimeregression adds a stale-stamp case with kept weights. It fails on the old preflight (kept weights are not counted as still to download) and passes with this change.tsc --noEmit, client eslint on the changed files,check-locales.mjs, and the static JSX localization check pass. CI runs the fullpnpm check.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
None yet.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.