mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 20:44:46 -07:00
fix(offload): switch to global gemini binary for remote execution
This commit is contained in:
@@ -39,17 +39,8 @@ export async function runWorker(args: string[]) {
|
||||
process.chdir(targetDir);
|
||||
}
|
||||
|
||||
// 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');
|
||||
}
|
||||
|
||||
console.log(` - Gemini Bin: ${geminiBin} (Exists: ${fs.existsSync(geminiBin)})`);
|
||||
if (fs.existsSync(geminiBin)) {
|
||||
const versionCheck = spawnSync(geminiBin, ['--version'], { stdio: 'pipe' });
|
||||
console.log(` - Gemini Version: ${versionCheck.stdout.toString().trim() || 'Error fetching version'}`);
|
||||
}
|
||||
// Use global gemini command pre-installed in the maintainer image
|
||||
const geminiBin = 'gemini';
|
||||
|
||||
// 2. Dispatch to Playbook
|
||||
switch (action) {
|
||||
|
||||
Reference in New Issue
Block a user