fix(daemon): include HOME in service env (#1214)

Thanks @ameno-.

Co-authored-by: Ameno Osman <ameno.osman13@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-19 08:39:12 +00:00
parent c21469b282
commit 47d1f23d55
3 changed files with 18 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ export function buildServiceEnvironment(params: {
(process.platform === "darwin" ? resolveGatewayLaunchAgentLabel(profile) : undefined);
const systemdUnit = `${resolveGatewaySystemdServiceName(profile)}.service`;
return {
HOME: env.HOME,
PATH: buildMinimalServicePath({ env }),
CLAWDBOT_PROFILE: profile,
CLAWDBOT_STATE_DIR: env.CLAWDBOT_STATE_DIR,
@@ -94,6 +95,7 @@ export function buildNodeServiceEnvironment(params: {
}): Record<string, string | undefined> {
const { env } = params;
return {
HOME: env.HOME,
PATH: buildMinimalServicePath({ env }),
CLAWDBOT_STATE_DIR: env.CLAWDBOT_STATE_DIR,
CLAWDBOT_CONFIG_PATH: env.CLAWDBOT_CONFIG_PATH,