refactor: remove legacy Gemini CLI code and related components
Summary
Removed legacy Gemini CLI-related code and cleaned up associated files, folders, and references throughout the codebase following the deprecation of Gemini CLI. This change removes obsolete implementation details and reduces maintenance overhead.
Screenshots
No visual change.
Testing
- [ ]
pnpm lint - [ ]
pnpm typecheck - [ ]
pnpm test - [ ]
pnpm build - [ ] Added or updated high-quality tests that would catch regressions, or explained why tests were not needed
Tests not run as part of this cleanup-only change.
AI Review Report
The changes were implemented with the assistance of an AI coding agent and primarily focused on removing deprecated Gemini CLI-related code, files, and references.
Review focus areas:
- Removal of unused and obsolete code paths
- Detection of stale imports and references
- Cleanup of related files and directories
- Verification that removed components were no longer required
No major issues were identified during the cleanup process. Manual verification of application behavior and platform-specific functionality is still recommended.
Cross-platform compatibility review was not independently verified and may require additional validation on macOS, Linux, and Windows.
Security Audit
This change primarily removes deprecated functionality and does not intentionally introduce new authentication, authorization, command execution, IPC, dependency, or secret-management logic.
No dedicated security audit was performed. Additional review is recommended before release if any removed components previously interacted with authentication flows, local file access, shell commands, or external services.
Notes
- Removes legacy Gemini CLI support from the codebase.
- Intended as a maintenance and cleanup change.
- Additional validation may be required to ensure no remaining references to removed components exist.
Ready to review this PR? Stage has broken it down into 7 individual chapters for you:
Chapters generated by Stage for commit 02626226a6f43dee11c6b102a10c14b953ec26df on Jun 20, 2026 8:57pm UTC.
No actionable comments were generated in the recent review. đ
âšī¸ Recent review info
âī¸ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: d78a480a-8b6d-4c4e-8b1a-14220fef708a
đĨ Commits
Reviewing files that changed from the base of the PR and between 325f8a6347a07d93e07e734d21b6b58087fdc733 and 02626226a6f43dee11c6b102a10c14b953ec26df.
đ Files selected for processing (8)
src/renderer/src/components/status-bar/StatusBar.tsxsrc/renderer/src/components/status-bar/StatusBarUsageEmptyCta.tsxsrc/renderer/src/components/status-bar/status-bar-agent-gating.test.tssrc/renderer/src/components/status-bar/status-bar-agent-gating.tssrc/renderer/src/components/status-bar/status-bar-provider-visibility.test.tssrc/renderer/src/components/status-bar/status-bar-provider-visibility.tssrc/renderer/src/components/status-bar/tooltip.test.tssrc/renderer/src/components/status-bar/tooltip.tsx
đ Walkthrough
Walkthrough
This pull request removes all Gemini agent support from the codebase. Shared type unions (TuiAgent, StatusBarItem, ProviderRateLimits.provider, WellKnownAgentType, RateLimitState) drop the 'gemini' member; GlobalSettings removes geminiCliOAuthEnabled and adds opencodeWorkspaceId; telemetry schemas remove Gemini from AGENT_KIND_VALUES and SETTINGS_CHANGED_WHITELIST. The hook service removes gemini from MANAGED_AGENT_HOOK_INSTALLERS, LOCAL_MANAGED_HOOK_REMOVERS, and LOCAL_MANAGED_HOOK_STATUS_READERS registries and deletes all geminiHookService references from remote installers, IPC handlers, and the preload API bridge. AI Vault session scanning drops Gemini session discovery, directory constants, and parser function exports. The RateLimitService removes Gemini from its fetch cycle, state management, and settings resolver. Status bar UI components remove Gemini icon rendering, visibility checks, and provider detail blocks; corresponding test coverage for rate limit, agent gating, provider visibility, and tooltip functionality is updated to exclude or replace Gemini assertions.
đĨ Pre-merge checks | â 3 | â 2
â Failed checks (1 warning, 1 inconclusive)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | â ī¸ Warning | Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
| Description check | â Inconclusive | The PR description covers the summary and screenshots, but testing checkboxes are unchecked and the author explicitly states 'Tests not run' without justification. The AI Review Report and Security Audit sections acknowledge that cross-platform compatibility review and security audit were not performed, which partially addresses the template requirements but with significant caveats. | Consider running the specified test procedures or providing detailed justification for why they were skipped. Clarify whether cross-platform compatibility and security review will be deferred to a later stage or if they have been addressed through other means. |
â Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | â Passed | The title clearly and accurately describes the main change: removal of legacy Gemini CLI code and related components throughout the codebase. |
| Linked Issues check | â Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | â Passed | Check skipped because no linked issues were found for this pull request. |
âī¸ Tip: You can configure your own custom pre-merge checks in the settings.
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 @coderabbitai help to get the list of available commands and usage tips.
Code rabbit raised concerns about a few non gemini cli related code removal. I am currently reviewing those changes and will push a follow up commit if any unrelated deletions are identified
I reviewed the code rabbit comment and pushed a follow-up fix. The branch has been updated accordingly.