Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(cos): add --yolo and --model flags to gemini-cli agent spawning
Adam Eivy583399460087
diff --git a/.changelog/v0.10.x.md b/.changelog/v0.10.x.mdindex aa749ff5f1..2d28a2d9b9 100644--- a/.changelog/v0.10.x.md+++ b/.changelog/v0.10.x.md@@ -501,6 +501,10 @@ This release introduces a structured changelog documentation system for creating### Gemini CLI Model Fallback Fix- **No more Claude model fallback for non-Claude providers**: `getModelForLevel()` was returning hardcoded `claude-3-5-sonnet-20241022` when a provider had no `defaultModel` or `heavyModel` configured (e.g., gemini-cli with `defaultModel: null`). Now returns `null` so providers without model configuration don't get queued with an irrelevant Claude model identifier+### Gemini CLI Auto-Approval and Model Support+- **YOLO mode for autonomous agents**: Gemini CLI agents now spawn with `--yolo` flag for auto-approval (equivalent to Claude's `--dangerously-skip-permissions`), preventing agents from hanging on permission prompts+- **Model passthrough**: Gemini CLI now passes `--model` flag when a model is configured, enabling provider-level model selection+## 📦 Installation```bashdiff --git a/server/services/subAgentSpawner.js b/server/services/subAgentSpawner.jsindex 1d3bed291f..e5db7ac3d2 100644--- a/server/services/subAgentSpawner.js+++ b/server/services/subAgentSpawner.js@@ -1380,9 +1380,12 @@ function buildCliSpawnConfig(provider, model) {};}- // Gemini CLI — no --model flag, no Claude-specific flags+ // Gemini CLI — uses --yolo for auto-approval, -p for non-interactive stdin modeif (providerId === 'gemini-cli') {- const args = [...(provider?.args || [])];+ const args = ['--yolo', ...(provider?.args || [])];+ if (model) {+ args.push('--model', model);+ }return {command: provider?.command || 'gemini',args,