mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1021] [MERGED] Fix Claude Subscription Docker HOME handling #4889
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#4889
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/1021
Author: @cha1latte
Created: 5/19/2026
Status: ✅ Merged
Merged: 5/19/2026
Merged by: @cha1latte
Base:
staging← Head:fix/issue-1020-claude-docker-home📝 Commits (2)
7ae9137Fix Claude subscription Docker HOME handlingc25f3cbAdd Claude Docker HOME proof📊 Changes
8 files changed (+116 additions, -1 deletions)
View changed files
📝
docker-compose.yml(+0 -1)📝
docs/TROUBLESHOOTING.md(+5 -0)➕
docs/pr-evidence/issue-1020/README.md(+7 -0)➕
docs/pr-evidence/issue-1020/docker-home.txt(+10 -0)➕
docs/pr-evidence/issue-1020/repro-after.json(+34 -0)➕
docs/pr-evidence/issue-1020/repro-before.json(+19 -0)📝
packages/server/src/services/llm/providers/claude-subscription.provider.ts(+22 -0)📝
scripts/docker-entrypoint.mjs(+19 -0)📄 Description
Linked issue
Closes #1020
Why this change
HOME=/appwhile the entrypoint dropped the server to thenodeuser, soclaude loginand the server-side Claude Agent SDK could look in different credential directories.What changed
HOME=/appoverride and resetsHOMEto the dropped runtime user's passwd home inside the Docker entrypoint.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx C:\tmp\Marinara-Engine-issue-1020\scratch\issue-1020-repro.ts scratch\issue-1020-before.jsonreproduced the pre-fix failure.pnpm --filter @marinara-engine/server exec tsx C:\tmp\Marinara-Engine-issue-1020\scratch\issue-1020-repro.ts scratch\issue-1020-after.jsonpassed after the fix, including edge cases for finalresultfallback, non-streaming assistant text, and SDK error-result propagation.docker run --rm -v C:\tmp\Marinara-Engine-issue-1020:/app -w /app -e HOME=/app node:24-slim node scripts/docker-entrypoint.mjs node -e "console.log(JSON.stringify({uid:process.getuid?.(),home:process.env.HOME}))"printed{"uid":1000,"home":"/home/node"}.pnpm checkpassed.Docs and release impact
UI evidence (if applicable)
N/A - backend/container behavior only.
Summary by CodeRabbit
Documentation
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.