mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #315] Sidecar child process loses system PATH on Windows due to env key casing #130
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#130
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 @Lochalan on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/315
Originally assigned to: @LukaTheHero on GitHub.
On Windows,
buildLlamaProcessEnvspreadsprocess.envinto a plain object, then writes toenv.PATH.Windows natively stores the key as
"Path"(title-case). Whileprocess.envis a case-insensitive Proxy, the spread result is a regular case-sensitive object. Writing toenv.PATHcreates a duplicate key, causing the child process to inherit only the runtime directory instead of the full system PATH.This strips NVIDIA driver paths and
C:\Windows\System32, preventingggml-cuda.dllfrom resolving dependencies likenvcuda.dllandcublas64_*.dll, causing silent CUDA failure and automatic CPU fallback.Affected file:
packages/server/src/services/sidecar/sidecar-runtime-env.tsline 32.@LukaTheHero commented on GitHub (May 3, 2026):
Merged your PR, thanks for the contribution!