claude-task-worker 0.37.0 → 0.38.0
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/dist/index.js +7 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1580,13 +1580,12 @@ function buildClaudeExecution(invocation) {
|
|
|
1580
1580
|
args: ["wrap", CLAUDE_COMMAND, ...HEADROOM_WRAP_OPTIONS, "--", ...args]
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
function buildClaudeEnv(mode) {
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
};
|
|
1583
|
+
function buildClaudeEnv(mode, headroom) {
|
|
1584
|
+
const env = mode === "herdr" ? { CLAUDE_CODE_DISABLE_BACKGROUND_TASKS: CLAUDE_SPAWN_ENV.CLAUDE_CODE_DISABLE_BACKGROUND_TASKS } : { ...CLAUDE_SPAWN_ENV };
|
|
1585
|
+
if (headroom) {
|
|
1586
|
+
env.HEADROOM_LOSSLESS = "1";
|
|
1588
1587
|
}
|
|
1589
|
-
return
|
|
1588
|
+
return env;
|
|
1590
1589
|
}
|
|
1591
1590
|
|
|
1592
1591
|
// src/config.ts
|
|
@@ -3030,7 +3029,7 @@ function createIssuePollingWorker(config) {
|
|
|
3030
3029
|
}
|
|
3031
3030
|
},
|
|
3032
3031
|
cwd,
|
|
3033
|
-
buildClaudeEnv(mode)
|
|
3032
|
+
buildClaudeEnv(mode, getHeadroomEnabled())
|
|
3034
3033
|
);
|
|
3035
3034
|
} catch (err) {
|
|
3036
3035
|
console.error(`[${config.name}] setup error for #${issue.number}: ${err}`);
|
|
@@ -3192,7 +3191,7 @@ function createPrPollingWorker(config) {
|
|
|
3192
3191
|
}
|
|
3193
3192
|
},
|
|
3194
3193
|
cwd,
|
|
3195
|
-
buildClaudeEnv(mode)
|
|
3194
|
+
buildClaudeEnv(mode, getHeadroomEnabled())
|
|
3196
3195
|
);
|
|
3197
3196
|
} catch (err) {
|
|
3198
3197
|
console.error(`[${config.name}] setup error for PR #${pr.number}: ${err}`);
|