Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
5 minute showcase, nothing fancy, just Gemini being Gemini. If you wonder - all models eventually responded, gemini 2.5 was just indexing the codebase for 5 minutes. https://drive.google.com/file/d/1rCZZDvFE1WHKBIQxtC2nuX7uI5bOEAtI/view?usp=sharing |
ApprovabilityVerdict: Needs human review This PR introduces a complete new Gemini CLI provider integration across server and web components, including session management, text generation, UI controls, and settings. As a significant new feature with substantial new runtime behavior, plus an unresolved high-severity bug comment about potentially empty prompts being sent to the CLI, this requires human review. You can customize Macroscope's approvability policy. Learn more. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0baacdd. Configure here.
- VSCode launch.json and tasks.json - Windows-only release workflow (release-fork.yml) - Android Capacitor build setup - Standalone Linux server build with systemd service install - VCS mode setting (git/disabled) Deferred: OpenCode and Gemini-cli implementation (PR pingdotgg#1758, pingdotgg#1983)

Gemini CLI PR. I can provide account for testing if you need so. I have a student one year sub
Summary
Why
Users wanted Gemini CLI support in T3 Code, but the repo only supported Codex and Claude. The integration also needed model-family-aware thinking controls and a few follow-up fixes discovered during live testing.
Impact
Validation
bun fmtbun lintbun typecheckbun run --filter @t3tools/web test src/components/ChatView.logic.test.ts src/components/chat/composerProviderRegistry.test.tsx src/components/chat/TraitsPicker.browser.tsx src/composerDraftStore.test.ts src/providerModels.test.tsbun run --filter t3 test src/provider/Layers/GeminiAdapter.test.ts src/provider/Layers/GeminiProvider.test.ts src/provider/Layers/ProviderAdapterRegistry.test.ts src/provider/Layers/ProviderService.test.tsNote
Add Gemini CLI as a full provider with chat, text generation, and settings support
gemini --versionand an ACP capability discovery session (geminiAcpProbe.ts), refreshing every 2 minutes.extractBalancedJsonSubstringin Utils.ts contains stray+tokens that may cause a compilation error.Macroscope summarized ec5fd46.
Note
High Risk
Large cross-cutting change that adds a new provider with child-process JSON-RPC session management, filesystem snapshotting, and new routing/persistence paths; failures could impact provider runtime stability and model selection behavior.
Overview
Adds Gemini CLI as a first-class provider across server and web, including provider discovery, session runtime, and model selection.
On the server, introduces a new
GeminiAdapter(Gemini ACP JSON-RPC over a spawnedgemini --acpprocess) with turn streaming, tool-approval requests, resume/rollback via session snapshot files, and runtime event emission; addsGeminiProviderstatus checks (CLI--version+ ACP model discovery) and registers Gemini in provider registries, caches, settings ordering, and persisted session decoding.For git-focused text generation, adds
GeminiTextGenerationLiveand routesTextGenerationcalls to Gemini; improves structured-output robustness viaextractJsonValueFromText(handles markdown fences and embedded/balanced JSON) and adds a 180s CLI timeout.On the web side, exposes Gemini in provider pickers and settings, adds Gemini thinking controls (Gemini 3 thinking levels / Gemini 2.5 thinking budgets) via shared model capability helpers, persists Gemini model options in composer drafts/sticky selections, and adds targeted unit/browser tests plus a small rollback binding persistence fix.
Reviewed by Cursor Bugbot for commit ec5fd46. Bugbot is set up for automated code reviews on this repo. Configure here.