fix(offload): increase entrypoint verbosity for easier debugging

This commit is contained in:
mkorwel
2026-03-17 21:56:25 -07:00
parent 51f1ebecbd
commit ae387866c5
4 changed files with 62 additions and 40 deletions
+5 -1
View File
@@ -39,7 +39,11 @@ export async function runWorker(args: string[]) {
process.chdir(targetDir);
}
const geminiBin = path.join(workDir, 'node_modules/.bin/gemini');
// Find gemini binary (try worktree, then fallback to main repo)
let geminiBin = path.join(targetDir, 'node_modules/.bin/gemini');
if (!fs.existsSync(geminiBin)) {
geminiBin = path.join(path.dirname(targetDir), 'main/node_modules/.bin/gemini');
}
// 2. Dispatch to Playbook
switch (action) {