mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-13 04:48:09 -07:00
b949049dcb
The autonomous system prompt did not guide the agent on error recovery, causing fallback loops. Adds a non-interactive error recovery section to renderOperationalGuidelines() gated behind !options.interactive. Covers: analyze before retrying, two-strike rule for trying alternatives, avoid alternating-approach loops, verify fixes incrementally.