fix(workspaces): fix invalid gemini args and initialize remote auth settings

This commit is contained in:
mkorwel
2026-03-18 12:16:59 -07:00
parent f3a2457af3
commit e23cbdc258
3 changed files with 18 additions and 2 deletions
@@ -6,9 +6,9 @@ export async function runFixPlaybook(prNumber: string, targetDir: string, policy
console.log('Switching to agentic fix loop inside Gemini CLI...');
// Use the nightly gemini binary to activate the fix-pr skill and iterate
// Note: Gemini doesn't support --cwd, so the caller (worker.ts) must ensure we are already in targetDir
const result = spawnSync(geminiBin, [
'--policy', policyPath,
'--cwd', targetDir,
'-p', `Please activate the 'fix-pr' skill and use it to iteratively fix PR #${prNumber}.
Ensure you handle CI failures, merge conflicts, and unaddressed review comments
until the PR is fully passing and mergeable.`