9 months ago
238d0d4Add special handling for the gemini-cli provider to avoid assistant tool-call replay loops: sanitize assistant messages to strip tool-call parts, run the provider in a single-step tool-loop, and unify finish-reason extraction. Add defaults to keep Gemini thought parts off by default (thinkingConfig.includeThoughts=false, thinkingLevel=minimal) and wire these settings into getModel/DEFAULT_PROVIDER_OPTIONS. Remove gemini-cli from interactive provider/connect lists in both CLI and TUI (showing a temporary disabled message) and guard UI actions against selecting it. Update tests to cover the Gemini behavior and provider defaults. Files changed: src/agent.ts, src/cli/repl.ts, src/config.ts, src/index.ts, src/tui/index.tsx, test/agent.test.ts, test/providers.test.ts.
Parenta383860