@masslessai/push-todo 3.10.6 → 3.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/daemon-health.js +5 -1
- package/lib/daemon.js +8 -6
- package/package.json +1 -1
package/lib/daemon-health.js
CHANGED
|
@@ -138,7 +138,11 @@ export function startDaemon() {
|
|
|
138
138
|
const child = spawn(process.execPath, [daemonScript], {
|
|
139
139
|
detached: true,
|
|
140
140
|
stdio: ['ignore', 'ignore', 'ignore'],
|
|
141
|
-
env:
|
|
141
|
+
env: (() => {
|
|
142
|
+
const env = { ...process.env, PUSH_DAEMON: '1' };
|
|
143
|
+
delete env.CLAUDECODE; // Strip to avoid leaking into Claude child processes
|
|
144
|
+
return env;
|
|
145
|
+
})()
|
|
142
146
|
});
|
|
143
147
|
|
|
144
148
|
writeFileSync(PID_FILE, String(child.pid));
|
package/lib/daemon.js
CHANGED
|
@@ -1377,11 +1377,11 @@ IMPORTANT:
|
|
|
1377
1377
|
const child = spawn('claude', claudeArgs, {
|
|
1378
1378
|
cwd: worktreePath,
|
|
1379
1379
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1380
|
-
env: {
|
|
1381
|
-
...process.env,
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
}
|
|
1380
|
+
env: (() => {
|
|
1381
|
+
const env = { ...process.env, PUSH_TASK_ID: task.id, PUSH_DISPLAY_NUMBER: String(displayNumber) };
|
|
1382
|
+
delete env.CLAUDECODE; // Strip to avoid "nested session" guard in Claude Code
|
|
1383
|
+
return env;
|
|
1384
|
+
})()
|
|
1385
1385
|
});
|
|
1386
1386
|
|
|
1387
1387
|
const taskInfo = {
|
|
@@ -1797,10 +1797,12 @@ function checkAndApplyUpdate() {
|
|
|
1797
1797
|
|
|
1798
1798
|
// Spawn new daemon from updated code, then exit
|
|
1799
1799
|
const daemonScript = join(__dirname, 'daemon.js');
|
|
1800
|
+
const selfUpdateEnv = { ...process.env, PUSH_DAEMON: '1' };
|
|
1801
|
+
delete selfUpdateEnv.CLAUDECODE; // Strip to avoid leaking into Claude child processes
|
|
1800
1802
|
const child = spawn(process.execPath, [daemonScript], {
|
|
1801
1803
|
detached: true,
|
|
1802
1804
|
stdio: ['ignore', 'ignore', 'ignore'],
|
|
1803
|
-
env:
|
|
1805
|
+
env: selfUpdateEnv
|
|
1804
1806
|
});
|
|
1805
1807
|
writeFileSync(PID_FILE, String(child.pid));
|
|
1806
1808
|
child.unref();
|