Skip to content

refactor(agents): remove Gemini CLI support - #48447

Merged
AmoabaKelvin merged 3 commits into
mainfrom
remove-gemini-cli
Nov 25, 2026
Merged

AmoabaKelvin merged 3 commits into
mainfrom
remove-gemini-cli

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Gemini CLI is deprecated and Google now points people to Antigravity (agy). Orca still listed Gemini CLI as an agent, with its own accounts section, usage meter and hooks, which confused people choosing between the two. This PR removes Gemini CLI from Orca. Antigravity keeps working as before, and settings or bots saved with Gemini fall back cleanly.

Files Added Deleted Net
Test 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​74 $\color{#cf222e}{\Huge{\mathbf{−}}}$​131 $\color{#cf222e}{\Huge{\mathbf{−}}}$​57
Prod 199 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​318 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2947 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2629

What Changed

Before, Gemini showed up in the New tab agent menu, Settings › Agents, Settings › AI Provider Accounts ("Gemini CLI (legacy)" and "Use Gemini CLI credentials"), the status bar usage area and its visibility menu, and Session History. After, it appears in none of them.

Removed:

  • Agent catalog and launch. The gemini TUI agent: catalog entry, picker row, launch config, permission flags, resume argv, sign-in command, favicon/icon (desktop and mobile), labels, the onboarding demo row (it now shows Antigravity), orchestration @gemini group address, quick-command and workspace-cleanup lists.
  • Native chat over ACP. Gemini's ACP launch spec, dialect, model catalog, folder-instructions delivery, and its native-chat/bot agent entries.
  • Hooks. src/main/gemini/hook-service.ts, the local and SSH installers, /hook/gemini routing, and the Gemini event normalizer and tool-field extractor.
  • Title/status detection. The Gemini CLI identity (isGeminiTerminalTitle, the "Gemini CLI" label and its ✦ Gemini CLI title stamps), the Gemini name tokens, interrupt and completion special cases, and the per-pane GPU renderer veto that existed only for Gemini titles.
  • Accounts and usage. The Gemini CLI OAuth extractor, the usage fetcher and its rate-limit slot, the geminiCliOAuthEnabled setting, the status bar segment, its toggle, settings search entries, error copy and i18n keys. {buckets} in a custom usage template now lists the provider's named pools (Antigravity, Cursor) instead of Gemini's model buckets.
  • Session History. Gemini sessions are no longer scanned, searched or resumed.
  • Skills. Gemini as a skill install target and the ~/.gemini/skills discovery root.
  • Docs. Supported agents, usage tracking, hibernation, session history and orchestration docs, plus the regenerated plugin host API typings.

Kept or changed for compatibility:

  • Saved default agent. A saved defaultTuiAgent: 'gemini' is cleared to automatic selection on load. Older clients sending it to git.generateCommitMessage get the same fallback instead of "Unknown TUI agent". An older paired host that still reports gemini as its default is read as no default, and the shared picker never chooses an agent this build doesn't know.
  • Saved bots. Saved Gemini bots become Antigravity bots on load. Their id, name, instructions, avatar, tools, members and chats stay the same. Only the Gemini model/options (launch) is dropped, so Antigravity's defaults apply. The switched record is saved once. Old group turns, remote members, share links and an older peer's bot roster that say gemini read as Antigravity. Gemini chats wrote the bot's instructions into the folder's GEMINI.md, which agy also reads. When an Antigravity chat starts or reopens, Orca now removes that copy: the whole file if Orca wrote it, otherwise only Orca's orca:begin/end block, so the user's own text stays.
  • Status bar items. ui.set still accepts gemini in statusBarItems from older clients and drops it. Saved lists drop it on load.
  • Agent-keyed settings. Per-agent args, env, launch choices and permission overrides keyed gemini were already filtered by isTuiAgent. geminiCliOAuthEnabled is stripped as a retired setting.
  • Automations. An automation saved on gemini now fails its run with "This automation's agent is no longer supported", on both the terminal and chat surfaces. Before, it hit a TypeError or a misleading prompt error. When a project moves to orcad or WSL, such an automation stays behind as blocked, so it no longer aborts the move.
  • Session search. Searches always name the supported agents, so an index built before this change, still holding Gemini transcripts, no longer fails the whole page.
  • RPC and CLI. An old phone or desktop sending agent: 'gemini' gets the existing invalid_argument "Unknown TUI agent". orca agent launch --agent gemini gets the same.
  • Existing terminals. A tab running gemini is now a plain terminal: plain icon, raw title, no agent status.

Kept for Antigravity, which reuses Gemini-named things that are not Gemini CLI: GEMINI_API_KEY, GOOGLE_GEMINI_BASE_URL, GEMINI_HOME, ~/.gemini, GEMINI.md, the "Gemini API key" sign-in, and the ✦ ◇ ✋ ⏲ title glyphs, which Qoder, DeepSeek Build and DSH titles still use.

Why

This is a product decision. Gemini CLI is deprecated in favour of Antigravity, and keeping both confused users. I deleted the code outright rather than hiding it behind a flag, because hiding it would have kept the hook installer, usage polling, OAuth extraction and title heuristics running for an agent nobody can pick.

For Session History I chose to drop Gemini sessions entirely rather than keep them read-only. Read-only would need a separate history-agent type, because history agents are a subset of TUI agents. It would also mean gating Resume in about eight places: the row, the details panel, mobile, plugins, drag-to-terminal, /resume, orchestration and search. All that to keep a parser for a removed agent.

Linked Issue

No issue tracks the removal itself. Several open issues stop applying:

Visual Proof

Same seeded profile on both sides: default agent gemini, the Gemini CLI credentials switch on, Gemini usage in the status bar, and a fake gemini on PATH so it is detected.

Before (main) After
New tab menu before-newtab-crop.png after-newtab-crop.png
Settings › AI Provider Accounts before-accounts-crop.png after-accounts-crop.png
Settings › Agents (saved default gemini falls back to Claude, "Default · Auto") before-agents-crop.png after-agents-crop.png
Status bar item menu before-statusbar-crop.png after-statusbar-crop.png
Usage popover before-usage.png after-usage.png

A terminal running a fake gemini that sets the ✦ Gemini CLI title is now a plain terminal tab:

after-gemini-terminal.png

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

Tested on macOS with a hidden dev build and a seeded profile containing defaultTuiAgent: 'gemini', geminiCliOAuthEnabled: true, agentDefaultArgs.gemini, statusBarItems with gemini, and a saved Gemini bot (with a Gemini launch) in botsNewerAgents. After launch:

  • Profile state. The saved profile state (profile-state.db) had defaultTuiAgent: null, no geminiCliOAuthEnabled and no agentDefaultArgs.gemini, and gemini was gone from statusBarItems. The bot was stored once as agent: "antigravity" with no launch.
  • Bot list. orca bot list listed the bot as Antigravity.
  • Older client. An older client (the installed release CLI) running orca agent launch --agent gemini got invalid_argument: Unknown TUI agent from the new host.
  • Screens. The screens above show no Gemini CLI anywhere, with gemini still on PATH.

Automated:

  • New tests.
    • bot-retired-agent-migration.test.ts: a saved Gemini bot loads as an Antigravity bot with every other field unchanged, and a second load changes nothing.
    • acp-folder-context-file.test.ts: removing Orca's GEMINI.md deletes a file Orca wrote and leaves exactly the user's text in a file they wrote.
  • Deleted and reworked tests. Tests of removed code were deleted. Tests that only used Gemini as a sample agent (AI vault delete RPC, rate-limit activation refresh, foreground identity checks, bot tools, bot agent choices) now use another agent.
  • Gate. pnpm check:changed passes. Ratchet baselines only shrank.

Performance

None, because this only removes work. Each rate-limit poll makes one fewer usage fetch and no longer reads Gemini OAuth credentials. Startup installs one fewer hook. Title classification drops the Gemini identity checks.

Risk

Level: Medium

The riskiest part is saved data and older peers:

  • Saved data. The bot migration changes saved records. It only touches bots whose agent is gemini, keeps every field except launch, and is covered by the test above. Saved default agent, per-agent settings and status bar items fall back as described.
  • Older peers. Older phones and desktops sending Gemini values get the existing clean rejections, or have the value dropped (statusBarItems, commit-message default agent).
  • Files in the chat's folder. The GEMINI.md cleanup deletes a file only when it starts with Orca's own Gemini header. Otherwise it removes only Orca's marked block. Symlinked and unreadable files are left alone.
  • Terminal titles. Removing the Gemini identity changes how a bare ✦/◇ title is attributed. It now names no agent. Qoder, DSH and DeepSeek Build are matched before it, and their behaviour is unchanged.

Back it out with a plain revert, with two exceptions:

  • Bots already switched to Antigravity stay Antigravity.
  • A cleared default agent stays cleared.

Left in place on purpose: hook entries an older Orca wrote to ~/.gemini/settings.json are not removed. They are inert, because the script answers {} and exits when Orca isn't listening. The Uninstall flow no longer lists them.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

  • Platforms and SSH. The Windows .cmd hook script, the SSH remote hook installer and the WSL history roots for Gemini all go away with the rest. Nothing platform-specific is added.
  • Mobile. The phone reads bots and agent lists from the host, so it sees migrated bots and has no Gemini rows. It needs no migration of its own. Its Gemini icon and i18n keys were removed.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The changes remove Gemini CLI support across agent launch, ACP and hooks, rate limits, session history, status-bar usage, and renderer surfaces. Saved bot configurations migrate from Gemini to Antigravity, and default-agent values are normalized. Antigravity instruction delivery now attempts to remove the Gemini context file. Documentation, translations, fixtures, and generated plugin runtime code are also updated.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "refactor(agents): remove Gemini CLI support" matches the main change. The PR removes Gemini CLI from the agent catalog, settings, usage tracking, hooks, title detection, session history, an…
Description check Passed The description follows the repository template and covers each required section. The ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, and Notes sections are all filled…
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.
Full details: Title check

Explanation

The title "refactor(agents): remove Gemini CLI support" matches the main change. The PR removes Gemini CLI from the agent catalog, settings, usage tracking, hooks, title detection, session history, and native chat, while Antigravity stays supported. The title is specific and uses a conventional commit prefix.

Full details: Description check

Explanation

The description follows the repository template and covers each required section. The ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, and Notes sections are all filled in with specific detail. The AI Disclosure and Review sections are left empty. The AI Disclosure section is optional for internal contributors. The Review section is a bare heading with no content. The Checklist leaves 'This PR is small and focused' unchecked, which is consistent with a large removal. The Linked Issue section names no issue that this PR closes. It lists related issues instead, and the author explains why no issue tracks the removal. The Fixes # line is still the unfilled template placeholder.

Resolution

Optionally fill in the empty Review heading or remove it. Optionally replace the unfilled 'Fixes #' placeholder with a linked issue, or state that none exists, since the template requires one for outside contributors.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Incomplete review coverage

1 file(s) could not be reviewed because their content or diff was unavailable or exceeded a size limit. These files were not reviewed. Findings cover only the remaining files.

  • resources/plugins/declarative/orca-testing.mjs: a text diff could not be generated.

The fully-reviewed checkpoint was not advanced. CodeRabbit will not automatically approve this review or resolve existing threads from this partial comparison.

Retry the review after resolving file access or diff-generation failures. If the files do not need review, explicitly exclude them in your review configuration.

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.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 08cb5758-e59b-4a75-9981-d4228e3a48ee
Commits

Reviewing files that changed from the base of the PR and between da765da and d1773ff.

Files ignored due to path filters: 1

  • src/shared/agent-icons/gemini.png is excluded by !**/*.png
Files selected for processing: 206

  • config/electron-builder.config.cjs
  • config/main-blocking-helper-baseline.txt
  • config/process-host-direct-import-baseline.txt
  • config/react-compiler-bailout-baseline.txt
  • config/scripts/locale-catalog/locale-value-overrides.mjs
  • config/scripts/runtime-verification/desktop-transport/verify-agent-hook-stdin-lifecycle.mjs
  • config/scripts/test-runtime/environment/vitest-real-agent-cli-guard.ts
  • docs/reference/plugin-host-api.md
  • docs/site/content/docs/agents/hibernation.mdx
  • docs/site/content/docs/agents/session-history.mdx
  • docs/site/content/docs/agents/supported.mdx
  • docs/site/content/docs/agents/usage-tracking.mdx
  • docs/site/content/docs/cli/orchestration.mdx
  • docs/site/content/docs/model/agents-sessions.mdx
  • mobile/scripts/mock-server-rpc-handlers.ts
  • mobile/src/components/icons/mobile-agent-icon-assets.ts
  • mobile/src/i18n/en-runtime-required.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh.json
  • mobile/src/test-support/mobile-agent-icon-assets-node.ts
  • resources/plugins/types/orca-host.d.ts
  • skill-guides/orca-cli.md
  • skill-guides/orca-plugin-authoring/references/host-api.md
  • src/cli/discovery/flag-help-text.ts
  • src/cli/skills/bundled-skill-guides.ts
  • src/main/acp/acp-dialects/cursor-dialect.ts
  • src/main/acp/acp-dialects/gemini-dialect.ts
  • src/main/acp/launch/acp-folder-context-file.test.ts
  • src/main/acp/launch/acp-folder-context-file.ts
  • src/main/acp/launch/acp-instructions.ts
  • src/main/acp/launch/acp-launch-registry.ts
  • src/main/agent-hooks/README.md
  • src/main/agent-hooks/installation/managed-agent-hook-registry.ts
  • src/main/agent-hooks/installation/remote-managed-hook-installers.ts
  • src/main/ai-vault-search/indexing/session-search-index-consumer.ts
  • src/main/ai-vault-search/session-search-service-registry.ts
  • src/main/ai-vault/discovery/session-scanner-agent-sources.ts
  • src/main/ai-vault/parse-cache/session-scanner-parse-cache.ts
  • src/main/ai-vault/parsing/session-scanner-agent-parser.ts
  • src/main/ai-vault/scanner-fixtures/session-scanner-incremental-fixtures.ts
  • src/main/ai-vault/scanner-fixtures/session-scanner-test-fixtures.ts
  • src/main/ai-vault/scanners/gemini/session-scanner-gemini-parsers.ts
  • src/main/ai-vault/scope/session-scope-cwd.ts
  • src/main/ai-vault/session-scanner-types.ts
  • src/main/automations/dispatch/automation-dispatch-request.ts
  • src/main/bots/bot-session-instructions.ts
  • src/main/bots/bot-tools-file.test.ts
  • src/main/bots/paired-bot-rosters.ts
  • src/main/daemon/terminal-host/foreground-agent-identity-check.test.ts
  • src/main/gemini/gemini-acp-launch-spec.ts
  • src/main/gemini/hook-service.ts
  • src/main/persistence/applying-settings/terminal-settings-migrations.ts
  • src/main/persistence/loading-store/profile-loading/normalize-loaded-global-settings.ts
  • src/main/persistence/loading-store/profile-loading/normalize-loaded-profile-state.ts
  • src/main/persistence/migrating-orcad-catalog/source/automations/orcad-source-automation-state.ts
  • src/main/providers/accounts/provider-account-services.ts
  • src/main/pty/process-retirement/foreground-exit-watches.test.ts
  • src/main/rate-limits/providers/gemini/gemini-bucket-formatting.ts
  • src/main/rate-limits/providers/gemini/gemini-cli-oauth-extractor.ts
  • src/main/rate-limits/providers/gemini/gemini-oauth-sources.ts
  • src/main/rate-limits/providers/gemini/gemini-usage-fetcher.ts
  • src/main/rate-limits/service/full-cycle-prepared.ts
  • src/main/rate-limits/service/rate-limit-service.ts
  • src/main/rate-limits/service/service-activation-refresh.test.ts
  • src/main/rate-limits/service/service-full-cycle-application.ts
  • src/main/rate-limits/service/service-full-cycle-preparation.ts
  • src/main/rate-limits/service/service-polling.ts
  • src/main/rate-limits/service/service-state.ts
  • src/main/rate-limits/service/service-types.ts
  • src/main/runtime/agent-session/naming/structured-chat-naming-runtime.ts
  • src/main/runtime/agent-state-rules/agent-state-rules-catalog.ts
  • src/main/runtime/agent-state-rules/gemini.json
  • src/main/runtime/orchestration/addressing/groups/group-addressing.ts
  • src/main/runtime/rpc/methods/history/ai-vault-delete-session.test.ts
  • src/main/runtime/terminal/output/terminal-title-tracker.ts
  • src/main/skills/bundled-skill-install/bundled-skill-gemini-placement.test.ts
  • src/main/skills/bundled-skill-install/former-skill-roots.ts
  • src/main/skills/discovery/skill-discovery-sources.ts
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/agent/AgentLaunchPicker.fixture.tsx
  • src/renderer/src/components/agent/icons/agent-favicon-assets.ts
  • src/renderer/src/components/bots/BotNewChatMenuItems.fixture.tsx
  • src/renderer/src/components/bots/BotRow.fixture.tsx
  • src/renderer/src/components/native-chat/composer/pickers/NativeChatMentionAgents.fixture.tsx
  • src/renderer/src/components/native-chat/tools/tasks/NativeChatBackgroundTasksStatus.fixture.tsx
  • src/renderer/src/components/onboarding/AgentSurfaceStep.fixture.tsx
  • src/renderer/src/components/onboarding/TerminalLaunchDemo.tsx
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.fixture.tsx
  • src/renderer/src/components/settings/accounts/AccountsPane.tsx
  • src/renderer/src/components/settings/accounts/accounts-search.ts
  • src/renderer/src/components/settings/accounts/providers/accounts-pane-gemini-section.tsx
  • src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallSection.fixture.tsx
  • src/renderer/src/components/settings/appearance/AppearanceWindowSidebarSection.tsx
  • src/renderer/src/components/settings/appearance/StatusBarUsageFormatSetting.tsx
  • src/renderer/src/components/settings/appearance/appearance-status-bar-search.ts
  • src/renderer/src/components/settings/navigation/settings-navigation-capability-sections.ts
  • src/renderer/src/components/sidebar/WorktreeCardExperimental.fixture.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/title-derived-pane-agent-identity.ts
  • src/renderer/src/components/status-bar/accounts/provider-icons.tsx
  • src/renderer/src/components/status-bar/composition/StatusBarVisibilityMenu.tsx
  • src/renderer/src/components/status-bar/composition/status-bar-agent-gating.ts
  • src/renderer/src/components/status-bar/composition/status-bar-provider-visibility.ts
  • src/renderer/src/components/status-bar/composition/status-bar-usage-sections.ts
  • src/renderer/src/components/status-bar/composition/use-status-bar-controller.ts
  • src/renderer/src/components/status-bar/usage/StatusBarProviderSegment.tsx
  • src/renderer/src/components/status-bar/usage/StatusBarUsageEmptyCta.tsx
  • src/renderer/src/components/status-bar/usage/owner-usage-rate-limits.ts
  • src/renderer/src/components/status-bar/usage/provider-usage-panel.tsx
  • src/renderer/src/components/status-bar/usage/usage-format-template.ts
  • src/renderer/src/components/status-bar/usage/usage-headline-sections.ts
  • src/renderer/src/components/status-bar/usage/usage-provider-settings-target.ts
  • src/renderer/src/components/terminal-pane/agent-completion/agent-completion-title-observer.ts
  • src/renderer/src/components/terminal-pane/agent-status/input-inference/agent-interrupt-inference.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/pane-title-observation.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/shell-command-inference.ts
  • src/renderer/src/components/terminal-pane/pty-connection/pty-connection-deps.ts
  • src/renderer/src/components/terminal-pane/render-health/terminal-renderer-policy.ts
  • src/renderer/src/components/terminal-pane/titles/terminal-title-evidence.ts
  • src/renderer/src/components/terminal-pane/titles/title-agent-identity.ts
  • src/renderer/src/components/terminal-quick-commands/terminal-quick-command-agent-options.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/agent-catalog/agent-catalog-entries-primary.ts
  • src/renderer/src/runtime/agent-launch-settings/agent-launch-settings-transport.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/agent-resume-host-authority-capability.ts
  • src/renderer/src/store/slices/workspace-cleanup/workspace-cleanup-local-evidence.ts
  • src/shared/agent-hook-listener/configuration/agent-hook-types.ts
  • src/shared/agent-hook-listener/provider-dispatch.ts
  • src/shared/agent-hook-listener/provider-event-routing.ts
  • src/shared/agent-hook-listener/providers/gemini/gemini-events.ts
  • src/shared/agent-hook-listener/providers/gemini/gemini-tool-fields.ts
  • src/shared/agent-hook-listener/source-routing.ts
  • src/shared/agent-hook-listener/transport/agent-hook-relay.ts
  • src/shared/agent-launch/catalog/tui-agent-config.ts
  • src/shared/agent-launch/catalog/tui-agent-display-names.ts
  • src/shared/agent-launch/catalog/tui-agent-favicon-domains.ts
  • src/shared/agent-launch/catalog/tui-agent-selection.ts
  • src/shared/agent-launch/catalog/tui-agent.ts
  • src/shared/agent-launch/permissions/agent-chat-permission-support.ts
  • src/shared/agent-launch/permissions/agent-permission-args.ts
  • src/shared/agent-launch/permissions/tui-agent-permissions.ts
  • src/shared/agent-launch/startup/agent-resume-argv.ts
  • src/shared/agent-session/lifecycle/agent-session-resume.ts
  • src/shared/agent-session/lifecycle/launch/agent-session-setup-commands.ts
  • src/shared/agent-session/options/agent-session-option-catalog.ts
  • src/shared/agent-session/options/catalog-providers/agent-session-option-catalog-cursor.ts
  • src/shared/agent-status/identity/agent-kind.ts
  • src/shared/agent-status/presentation/agent-row-conversation-name.ts
  • src/shared/agent-status/presentation/agent-type-icon-agent.ts
  • src/shared/agent-status/presentation/agent-type-label.ts
  • src/shared/agent-status/process/agent-node-package-entrypoints.ts
  • src/shared/agent-status/title/agent-decorative-title-signature.ts
  • src/shared/agent-status/title/agent-name-token-match.ts
  • src/shared/agent-status/title/agent-title-core.ts
  • src/shared/agent-status/title/agent-title-evidence.ts
  • src/shared/agent-status/title/agent-title-glyphs.ts
  • src/shared/agent-status/title/agent-title-identity.ts
  • src/shared/agent-status/title/agent-title-name-anchoring.ts
  • src/shared/agent-status/title/agent-title-status.ts
  • src/shared/agent-status/title/terminal-title-agent-type.ts
  • src/shared/agent-status/title/terminal-title-classification-corpus.ts
  • src/shared/agent-usage/display/usage-provider-windows.ts
  • src/shared/agent-usage/rate-limits/rate-limit-state-factory.ts
  • src/shared/agent-usage/rate-limits/rate-limit-types.ts
  • src/shared/agent-usage/status-copy/rate-limit-user-facing-error-catalog-a.ts
  • src/shared/agent-usage/status-copy/rate-limit-user-facing-error-catalog-b.ts
  • src/shared/ai-vault/contracts/ai-vault-session-deletion.ts
  • src/shared/ai-vault/contracts/ai-vault-types.ts
  • src/shared/ai-vault/resume/ai-vault-resume-command.ts
  • src/shared/ai-vault/search/ai-vault-search-agent-compatibility.ts
  • src/shared/ai-vault/session-display/ai-vault-session-log-resource.ts
  • src/shared/bot-types.ts
  • src/shared/bots/bot-agent-choices.test.ts
  • src/shared/bots/bot-group-schema.ts
  • src/shared/bots/bot-package.ts
  • src/shared/bots/bot-retired-agent-migration.test.ts
  • src/shared/bots/bot-retired-agents.ts
  • src/shared/bots/bot-skill-projects.ts
  • src/shared/feature-education/explore/feature-wall-tiles.ts
  • src/shared/native-chat/input/commands/native-chat-agent-profiles.ts
  • src/shared/native-chat/input/composer/agent-image-paste.ts
  • src/shared/plugins/workers/plugin-host-api-workspace-methods.ts
  • src/shared/rpc-contract/client-ui/client-ui-params.ts
  • src/shared/rpc-contract/client-ui/client-ui-status-bar-params.ts
  • src/shared/rpc-contract/source-control/git-params.ts
  • src/shared/settings/default-global-settings.ts
  • src/shared/settings/global-settings-types.ts
  • src/shared/skills/installation/skill-install-providers.ts
  • src/shared/skills/installation/skills-cli-agent-keys.ts
  • src/shared/status-bar/status-bar-defaults.ts
  • src/shared/status-bar/status-bar-usage-format.ts
  • src/shared/telemetry/schemas/telemetry-property-schemas.ts
  • src/shared/ui-chrome/ui-chrome-types.ts
Files with no reviewable changes: 120

  • config/electron-builder.config.cjs
  • config/main-blocking-helper-baseline.txt
  • config/process-host-direct-import-baseline.txt
  • config/scripts/locale-catalog/locale-value-overrides.mjs
  • config/scripts/test-runtime/environment/vitest-real-agent-cli-guard.ts
  • mobile/src/components/icons/mobile-agent-icon-assets.ts
  • mobile/src/i18n/en-runtime-required.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh.json
  • mobile/src/test-support/mobile-agent-icon-assets-node.ts
  • src/main/acp/acp-dialects/gemini-dialect.ts
  • src/main/acp/launch/acp-launch-registry.ts
  • src/main/agent-hooks/installation/managed-agent-hook-registry.ts
  • src/main/agent-hooks/installation/remote-managed-hook-installers.ts
  • src/main/ai-vault-search/indexing/session-search-index-consumer.ts
  • src/main/ai-vault/discovery/session-scanner-agent-sources.ts
  • src/main/ai-vault/parse-cache/session-scanner-parse-cache.ts
  • src/main/ai-vault/parsing/session-scanner-agent-parser.ts
  • src/main/ai-vault/scanner-fixtures/session-scanner-incremental-fixtures.ts
  • src/main/ai-vault/scanner-fixtures/session-scanner-test-fixtures.ts
  • src/main/ai-vault/scanners/gemini/session-scanner-gemini-parsers.ts
  • src/main/ai-vault/scope/session-scope-cwd.ts
  • src/main/ai-vault/session-scanner-types.ts
  • src/main/bots/bot-session-instructions.ts
  • src/main/gemini/gemini-acp-launch-spec.ts
  • src/main/gemini/hook-service.ts
  • src/main/providers/accounts/provider-account-services.ts
  • src/main/rate-limits/providers/gemini/gemini-bucket-formatting.ts
  • src/main/rate-limits/providers/gemini/gemini-cli-oauth-extractor.ts
  • src/main/rate-limits/providers/gemini/gemini-oauth-sources.ts
  • src/main/rate-limits/providers/gemini/gemini-usage-fetcher.ts
  • src/main/rate-limits/service/full-cycle-prepared.ts
  • src/main/rate-limits/service/rate-limit-service.ts
  • src/main/rate-limits/service/service-polling.ts
  • src/main/rate-limits/service/service-state.ts
  • src/main/rate-limits/service/service-types.ts
  • src/main/runtime/agent-session/naming/structured-chat-naming-runtime.ts
  • src/main/runtime/agent-state-rules/agent-state-rules-catalog.ts
  • src/main/runtime/agent-state-rules/gemini.json
  • src/main/runtime/orchestration/addressing/groups/group-addressing.ts
  • src/main/skills/bundled-skill-install/bundled-skill-gemini-placement.test.ts
  • src/main/skills/discovery/skill-discovery-sources.ts
  • src/renderer/src/components/agent/icons/agent-favicon-assets.ts
  • src/renderer/src/components/settings/accounts/AccountsPane.tsx
  • src/renderer/src/components/settings/accounts/accounts-search.ts
  • src/renderer/src/components/settings/accounts/providers/accounts-pane-gemini-section.tsx
  • src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallSection.fixture.tsx
  • src/renderer/src/components/settings/appearance/AppearanceWindowSidebarSection.tsx
  • src/renderer/src/components/settings/appearance/appearance-status-bar-search.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/title-derived-pane-agent-identity.ts
  • src/renderer/src/components/status-bar/accounts/provider-icons.tsx
  • src/renderer/src/components/status-bar/composition/status-bar-agent-gating.ts
  • src/renderer/src/components/status-bar/usage/StatusBarProviderSegment.tsx
  • src/renderer/src/components/status-bar/usage/owner-usage-rate-limits.ts
  • src/renderer/src/components/status-bar/usage/usage-provider-settings-target.ts
  • src/renderer/src/components/terminal-pane/agent-completion/agent-completion-title-observer.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/shell-command-inference.ts
  • src/renderer/src/components/terminal-pane/pty-connection/pty-connection-deps.ts
  • src/renderer/src/components/terminal-pane/render-health/terminal-renderer-policy.ts
  • src/renderer/src/components/terminal-quick-commands/terminal-quick-command-agent-options.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/agent-catalog/agent-catalog-entries-primary.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/agent-resume-host-authority-capability.ts
  • src/renderer/src/store/slices/workspace-cleanup/workspace-cleanup-local-evidence.ts
  • src/shared/agent-hook-listener/configuration/agent-hook-types.ts
  • src/shared/agent-hook-listener/provider-dispatch.ts
  • src/shared/agent-hook-listener/provider-event-routing.ts
  • src/shared/agent-hook-listener/providers/gemini/gemini-events.ts
  • src/shared/agent-hook-listener/providers/gemini/gemini-tool-fields.ts
  • src/shared/agent-hook-listener/source-routing.ts
  • src/shared/agent-hook-listener/transport/agent-hook-relay.ts
  • src/shared/agent-launch/catalog/tui-agent-config.ts
  • src/shared/agent-launch/catalog/tui-agent-display-names.ts
  • src/shared/agent-launch/catalog/tui-agent-favicon-domains.ts
  • src/shared/agent-launch/catalog/tui-agent.ts
  • src/shared/agent-launch/permissions/agent-chat-permission-support.ts
  • src/shared/agent-launch/permissions/agent-permission-args.ts
  • src/shared/agent-launch/permissions/tui-agent-permissions.ts
  • src/shared/agent-launch/startup/agent-resume-argv.ts
  • src/shared/agent-session/lifecycle/agent-session-resume.ts
  • src/shared/agent-session/lifecycle/launch/agent-session-setup-commands.ts
  • src/shared/agent-session/options/catalog-providers/agent-session-option-catalog-cursor.ts
  • src/shared/agent-status/identity/agent-kind.ts
  • src/shared/agent-status/presentation/agent-type-icon-agent.ts
  • src/shared/agent-status/presentation/agent-type-label.ts
  • src/shared/agent-status/process/agent-node-package-entrypoints.ts
  • src/shared/agent-status/title/agent-name-token-match.ts
  • src/shared/agent-status/title/agent-title-name-anchoring.ts
  • src/shared/agent-status/title/agent-title-status.ts
  • src/shared/agent-usage/display/usage-provider-windows.ts
  • src/shared/agent-usage/rate-limits/rate-limit-state-factory.ts
  • src/shared/agent-usage/status-copy/rate-limit-user-facing-error-catalog-a.ts
  • src/shared/agent-usage/status-copy/rate-limit-user-facing-error-catalog-b.ts
  • src/shared/ai-vault/contracts/ai-vault-session-deletion.ts
  • src/shared/ai-vault/contracts/ai-vault-types.ts
  • src/shared/ai-vault/resume/ai-vault-resume-command.ts
  • src/shared/ai-vault/search/ai-vault-search-agent-compatibility.ts
  • src/shared/ai-vault/session-display/ai-vault-session-log-resource.ts
  • src/shared/bots/bot-skill-projects.ts
  • src/shared/native-chat/input/commands/native-chat-agent-profiles.ts
  • src/shared/native-chat/input/composer/agent-image-paste.ts
  • src/shared/settings/default-global-settings.ts
  • src/shared/settings/global-settings-types.ts
  • src/shared/skills/installation/skill-install-providers.ts
  • src/shared/skills/installation/skills-cli-agent-keys.ts
  • src/shared/status-bar/status-bar-usage-format.ts
  • src/shared/ui-chrome/ui-chrome-types.ts
Files skipped from review as they are similar to previous changes: 19

  • docs/site/content/docs/agents/session-history.mdx
  • docs/site/content/docs/agents/supported.mdx
  • docs/site/content/docs/agents/usage-tracking.mdx
  • docs/site/content/docs/model/agents-sessions.mdx
  • skill-guides/orca-cli.md
  • src/cli/discovery/flag-help-text.ts
  • src/main/agent-hooks/README.md
  • src/main/runtime/terminal/output/terminal-title-tracker.ts
  • src/main/skills/bundled-skill-install/former-skill-roots.ts
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/settings/appearance/StatusBarUsageFormatSetting.tsx
  • src/renderer/src/components/settings/navigation/settings-navigation-capability-sections.ts
  • src/renderer/src/components/status-bar/usage/StatusBarUsageEmptyCta.tsx
  • src/renderer/src/components/status-bar/usage/usage-headline-sections.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-status/title/agent-decorative-title-signature.ts
  • src/shared/agent-status/title/agent-title-glyphs.ts
  • src/shared/feature-education/explore/feature-wall-tiles.ts
  • src/shared/plugins/workers/plugin-host-api-workspace-methods.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment on lines +92 to +94
const before = existing.slice(0, range.start).trimEnd()
const after = existing.slice(range.end).trimStart()
await replaceWhole(target, `${[before, after].filter(Boolean).join('\n\n')}\n`)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Data Integrity & Integration · Quick win

Preserve user whitespace outside the removed block.

If a user appends an indented Markdown code block after Orca's block, trimStart() removes its indentation. The saved code block becomes ordinary text. trimEnd() can also remove meaningful trailing spaces from the user's preceding text.

Remove only Orca's block and its known separators. Preserve the surrounding user whitespace. Add a test with user content after the block.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e50c4247-1841-4dc0-9963-62b467ab0bbd
Commits

Reviewing files that changed from the base of the PR and between da765da and 7dca5ab.

Files ignored due to path filters: 1

  • src/shared/agent-icons/gemini.png is excluded by !**/*.png
Files selected for processing: 206

  • config/electron-builder.config.cjs
  • config/main-blocking-helper-baseline.txt
  • config/process-host-direct-import-baseline.txt
  • config/react-compiler-bailout-baseline.txt
  • config/scripts/locale-catalog/locale-value-overrides.mjs
  • config/scripts/runtime-verification/desktop-transport/verify-agent-hook-stdin-lifecycle.mjs
  • config/scripts/test-runtime/environment/vitest-real-agent-cli-guard.ts
  • docs/reference/plugin-host-api.md
  • docs/site/content/docs/agents/hibernation.mdx
  • docs/site/content/docs/agents/session-history.mdx
  • docs/site/content/docs/agents/supported.mdx
  • docs/site/content/docs/agents/usage-tracking.mdx
  • docs/site/content/docs/cli/orchestration.mdx
  • docs/site/content/docs/model/agents-sessions.mdx
  • mobile/scripts/mock-server-rpc-handlers.ts
  • mobile/src/components/icons/mobile-agent-icon-assets.ts
  • mobile/src/i18n/en-runtime-required.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh.json
  • mobile/src/test-support/mobile-agent-icon-assets-node.ts
  • resources/plugins/types/orca-host.d.ts
  • skill-guides/orca-cli.md
  • skill-guides/orca-plugin-authoring/references/host-api.md
  • src/cli/discovery/flag-help-text.ts
  • src/cli/skills/bundled-skill-guides.ts
  • src/main/acp/acp-dialects/cursor-dialect.ts
  • src/main/acp/acp-dialects/gemini-dialect.ts
  • src/main/acp/launch/acp-folder-context-file.test.ts
  • src/main/acp/launch/acp-folder-context-file.ts
  • src/main/acp/launch/acp-instructions.ts
  • src/main/acp/launch/acp-launch-registry.ts
  • src/main/agent-hooks/README.md
  • src/main/agent-hooks/installation/managed-agent-hook-registry.ts
  • src/main/agent-hooks/installation/remote-managed-hook-installers.ts
  • src/main/ai-vault-search/indexing/session-search-index-consumer.ts
  • src/main/ai-vault-search/session-search-service-registry.ts
  • src/main/ai-vault/discovery/session-scanner-agent-sources.ts
  • src/main/ai-vault/parse-cache/session-scanner-parse-cache.ts
  • src/main/ai-vault/parsing/session-scanner-agent-parser.ts
  • src/main/ai-vault/scanner-fixtures/session-scanner-incremental-fixtures.ts
  • src/main/ai-vault/scanner-fixtures/session-scanner-test-fixtures.ts
  • src/main/ai-vault/scanners/gemini/session-scanner-gemini-parsers.ts
  • src/main/ai-vault/scope/session-scope-cwd.ts
  • src/main/ai-vault/session-scanner-types.ts
  • src/main/automations/dispatch/automation-dispatch-request.ts
  • src/main/bots/bot-session-instructions.ts
  • src/main/bots/bot-tools-file.test.ts
  • src/main/bots/paired-bot-rosters.ts
  • src/main/daemon/terminal-host/foreground-agent-identity-check.test.ts
  • src/main/gemini/gemini-acp-launch-spec.ts
  • src/main/gemini/hook-service.ts
  • src/main/persistence/applying-settings/terminal-settings-migrations.ts
  • src/main/persistence/loading-store/profile-loading/normalize-loaded-global-settings.ts
  • src/main/persistence/loading-store/profile-loading/normalize-loaded-profile-state.ts
  • src/main/persistence/migrating-orcad-catalog/source/automations/orcad-source-automation-state.ts
  • src/main/providers/accounts/provider-account-services.ts
  • src/main/pty/process-retirement/foreground-exit-watches.test.ts
  • src/main/rate-limits/providers/gemini/gemini-bucket-formatting.ts
  • src/main/rate-limits/providers/gemini/gemini-cli-oauth-extractor.ts
  • src/main/rate-limits/providers/gemini/gemini-oauth-sources.ts
  • src/main/rate-limits/providers/gemini/gemini-usage-fetcher.ts
  • src/main/rate-limits/service/full-cycle-prepared.ts
  • src/main/rate-limits/service/rate-limit-service.ts
  • src/main/rate-limits/service/service-activation-refresh.test.ts
  • src/main/rate-limits/service/service-full-cycle-application.ts
  • src/main/rate-limits/service/service-full-cycle-preparation.ts
  • src/main/rate-limits/service/service-polling.ts
  • src/main/rate-limits/service/service-state.ts
  • src/main/rate-limits/service/service-types.ts
  • src/main/runtime/agent-session/naming/structured-chat-naming-runtime.ts
  • src/main/runtime/agent-state-rules/agent-state-rules-catalog.ts
  • src/main/runtime/agent-state-rules/gemini.json
  • src/main/runtime/orchestration/addressing/groups/group-addressing.ts
  • src/main/runtime/rpc/methods/history/ai-vault-delete-session.test.ts
  • src/main/runtime/terminal/output/terminal-title-tracker.ts
  • src/main/skills/bundled-skill-install/bundled-skill-gemini-placement.test.ts
  • src/main/skills/bundled-skill-install/former-skill-roots.ts
  • src/main/skills/discovery/skill-discovery-sources.ts
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/agent/AgentLaunchPicker.fixture.tsx
  • src/renderer/src/components/agent/icons/agent-favicon-assets.ts
  • src/renderer/src/components/bots/BotNewChatMenuItems.fixture.tsx
  • src/renderer/src/components/bots/BotRow.fixture.tsx
  • src/renderer/src/components/native-chat/composer/pickers/NativeChatMentionAgents.fixture.tsx
  • src/renderer/src/components/native-chat/tools/tasks/NativeChatBackgroundTasksStatus.fixture.tsx
  • src/renderer/src/components/onboarding/AgentSurfaceStep.fixture.tsx
  • src/renderer/src/components/onboarding/TerminalLaunchDemo.tsx
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.fixture.tsx
  • src/renderer/src/components/settings/accounts/AccountsPane.tsx
  • src/renderer/src/components/settings/accounts/accounts-search.ts
  • src/renderer/src/components/settings/accounts/providers/accounts-pane-gemini-section.tsx
  • src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallSection.fixture.tsx
  • src/renderer/src/components/settings/appearance/AppearanceWindowSidebarSection.tsx
  • src/renderer/src/components/settings/appearance/StatusBarUsageFormatSetting.tsx
  • src/renderer/src/components/settings/appearance/appearance-status-bar-search.ts
  • src/renderer/src/components/settings/navigation/settings-navigation-capability-sections.ts
  • src/renderer/src/components/sidebar/WorktreeCardExperimental.fixture.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/title-derived-pane-agent-identity.ts
  • src/renderer/src/components/status-bar/accounts/provider-icons.tsx
  • src/renderer/src/components/status-bar/composition/StatusBarVisibilityMenu.tsx
  • src/renderer/src/components/status-bar/composition/status-bar-agent-gating.ts
  • src/renderer/src/components/status-bar/composition/status-bar-provider-visibility.ts
  • src/renderer/src/components/status-bar/composition/status-bar-usage-sections.ts
  • src/renderer/src/components/status-bar/composition/use-status-bar-controller.ts
  • src/renderer/src/components/status-bar/usage/StatusBarProviderSegment.tsx
  • src/renderer/src/components/status-bar/usage/StatusBarUsageEmptyCta.tsx
  • src/renderer/src/components/status-bar/usage/owner-usage-rate-limits.ts
  • src/renderer/src/components/status-bar/usage/provider-usage-panel.tsx
  • src/renderer/src/components/status-bar/usage/usage-format-template.ts
  • src/renderer/src/components/status-bar/usage/usage-headline-sections.ts
  • src/renderer/src/components/status-bar/usage/usage-provider-settings-target.ts
  • src/renderer/src/components/terminal-pane/agent-completion/agent-completion-title-observer.ts
  • src/renderer/src/components/terminal-pane/agent-status/input-inference/agent-interrupt-inference.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/pane-title-observation.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/shell-command-inference.ts
  • src/renderer/src/components/terminal-pane/pty-connection/pty-connection-deps.ts
  • src/renderer/src/components/terminal-pane/render-health/terminal-renderer-policy.ts
  • src/renderer/src/components/terminal-pane/titles/terminal-title-evidence.ts
  • src/renderer/src/components/terminal-pane/titles/title-agent-identity.ts
  • src/renderer/src/components/terminal-quick-commands/terminal-quick-command-agent-options.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/agent-catalog/agent-catalog-entries-primary.ts
  • src/renderer/src/runtime/agent-launch-settings/agent-launch-settings-transport.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/agent-resume-host-authority-capability.ts
  • src/renderer/src/store/slices/workspace-cleanup/workspace-cleanup-local-evidence.ts
  • src/shared/agent-hook-listener/configuration/agent-hook-types.ts
  • src/shared/agent-hook-listener/provider-dispatch.ts
  • src/shared/agent-hook-listener/provider-event-routing.ts
  • src/shared/agent-hook-listener/providers/gemini/gemini-events.ts
  • src/shared/agent-hook-listener/providers/gemini/gemini-tool-fields.ts
  • src/shared/agent-hook-listener/source-routing.ts
  • src/shared/agent-hook-listener/transport/agent-hook-relay.ts
  • src/shared/agent-launch/catalog/tui-agent-config.ts
  • src/shared/agent-launch/catalog/tui-agent-display-names.ts
  • src/shared/agent-launch/catalog/tui-agent-favicon-domains.ts
  • src/shared/agent-launch/catalog/tui-agent-selection.ts
  • src/shared/agent-launch/catalog/tui-agent.ts
  • src/shared/agent-launch/permissions/agent-chat-permission-support.ts
  • src/shared/agent-launch/permissions/agent-permission-args.ts
  • src/shared/agent-launch/permissions/tui-agent-permissions.ts
  • src/shared/agent-launch/startup/agent-resume-argv.ts
  • src/shared/agent-session/lifecycle/agent-session-resume.ts
  • src/shared/agent-session/lifecycle/launch/agent-session-setup-commands.ts
  • src/shared/agent-session/options/agent-session-option-catalog.ts
  • src/shared/agent-session/options/catalog-providers/agent-session-option-catalog-cursor.ts
  • src/shared/agent-status/identity/agent-kind.ts
  • src/shared/agent-status/presentation/agent-row-conversation-name.ts
  • src/shared/agent-status/presentation/agent-type-icon-agent.ts
  • src/shared/agent-status/presentation/agent-type-label.ts
  • src/shared/agent-status/process/agent-node-package-entrypoints.ts
  • src/shared/agent-status/title/agent-decorative-title-signature.ts
  • src/shared/agent-status/title/agent-name-token-match.ts
  • src/shared/agent-status/title/agent-title-core.ts
  • src/shared/agent-status/title/agent-title-evidence.ts
  • src/shared/agent-status/title/agent-title-glyphs.ts
  • src/shared/agent-status/title/agent-title-identity.ts
  • src/shared/agent-status/title/agent-title-name-anchoring.ts
  • src/shared/agent-status/title/agent-title-status.ts
  • src/shared/agent-status/title/terminal-title-agent-type.ts
  • src/shared/agent-status/title/terminal-title-classification-corpus.ts
  • src/shared/agent-usage/display/usage-provider-windows.ts
  • src/shared/agent-usage/rate-limits/rate-limit-state-factory.ts
  • src/shared/agent-usage/rate-limits/rate-limit-types.ts
  • src/shared/agent-usage/status-copy/rate-limit-user-facing-error-catalog-a.ts
  • src/shared/agent-usage/status-copy/rate-limit-user-facing-error-catalog-b.ts
  • src/shared/ai-vault/contracts/ai-vault-session-deletion.ts
  • src/shared/ai-vault/contracts/ai-vault-types.ts
  • src/shared/ai-vault/resume/ai-vault-resume-command.ts
  • src/shared/ai-vault/search/ai-vault-search-agent-compatibility.ts
  • src/shared/ai-vault/session-display/ai-vault-session-log-resource.ts
  • src/shared/bot-types.ts
  • src/shared/bots/bot-agent-choices.test.ts
  • src/shared/bots/bot-group-schema.ts
  • src/shared/bots/bot-package.ts
  • src/shared/bots/bot-retired-agent-migration.test.ts
  • src/shared/bots/bot-retired-agents.ts
  • src/shared/bots/bot-skill-projects.ts
  • src/shared/feature-education/explore/feature-wall-tiles.ts
  • src/shared/native-chat/input/commands/native-chat-agent-profiles.ts
  • src/shared/native-chat/input/composer/agent-image-paste.ts
  • src/shared/plugins/workers/plugin-host-api-workspace-methods.ts
  • src/shared/rpc-contract/client-ui/client-ui-params.ts
  • src/shared/rpc-contract/client-ui/client-ui-status-bar-params.ts
  • src/shared/rpc-contract/source-control/git-params.ts
  • src/shared/settings/default-global-settings.ts
  • src/shared/settings/global-settings-types.ts
  • src/shared/skills/installation/skill-install-providers.ts
  • src/shared/skills/installation/skills-cli-agent-keys.ts
  • src/shared/status-bar/status-bar-defaults.ts
  • src/shared/status-bar/status-bar-usage-format.ts
  • src/shared/telemetry/schemas/telemetry-property-schemas.ts
  • src/shared/ui-chrome/ui-chrome-types.ts
Files with no reviewable changes: 119

  • config/electron-builder.config.cjs
  • config/main-blocking-helper-baseline.txt
  • config/process-host-direct-import-baseline.txt
  • config/scripts/locale-catalog/locale-value-overrides.mjs
  • config/scripts/test-runtime/environment/vitest-real-agent-cli-guard.ts
  • mobile/src/components/icons/mobile-agent-icon-assets.ts
  • mobile/src/i18n/en-runtime-required.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh.json
  • mobile/src/test-support/mobile-agent-icon-assets-node.ts
  • src/main/acp/acp-dialects/gemini-dialect.ts
  • src/main/acp/launch/acp-launch-registry.ts
  • src/main/agent-hooks/installation/managed-agent-hook-registry.ts
  • src/main/agent-hooks/installation/remote-managed-hook-installers.ts
  • src/main/ai-vault-search/indexing/session-search-index-consumer.ts
  • src/main/ai-vault/discovery/session-scanner-agent-sources.ts
  • src/main/ai-vault/parse-cache/session-scanner-parse-cache.ts
  • src/main/ai-vault/parsing/session-scanner-agent-parser.ts
  • src/main/ai-vault/scanner-fixtures/session-scanner-incremental-fixtures.ts
  • src/main/ai-vault/scanner-fixtures/session-scanner-test-fixtures.ts
  • src/main/ai-vault/scanners/gemini/session-scanner-gemini-parsers.ts
  • src/main/ai-vault/scope/session-scope-cwd.ts
  • src/main/ai-vault/session-scanner-types.ts
  • src/main/bots/bot-session-instructions.ts
  • src/main/gemini/gemini-acp-launch-spec.ts
  • src/main/gemini/hook-service.ts
  • src/main/providers/accounts/provider-account-services.ts
  • src/main/rate-limits/providers/gemini/gemini-bucket-formatting.ts
  • src/main/rate-limits/providers/gemini/gemini-cli-oauth-extractor.ts
  • src/main/rate-limits/providers/gemini/gemini-oauth-sources.ts
  • src/main/rate-limits/providers/gemini/gemini-usage-fetcher.ts
  • src/main/rate-limits/service/full-cycle-prepared.ts
  • src/main/rate-limits/service/rate-limit-service.ts
  • src/main/rate-limits/service/service-polling.ts
  • src/main/rate-limits/service/service-state.ts
  • src/main/rate-limits/service/service-types.ts
  • src/main/runtime/agent-session/naming/structured-chat-naming-runtime.ts
  • src/main/runtime/agent-state-rules/agent-state-rules-catalog.ts
  • src/main/runtime/agent-state-rules/gemini.json
  • src/main/runtime/orchestration/addressing/groups/group-addressing.ts
  • src/main/skills/bundled-skill-install/bundled-skill-gemini-placement.test.ts
  • src/renderer/src/components/agent/icons/agent-favicon-assets.ts
  • src/renderer/src/components/settings/accounts/AccountsPane.tsx
  • src/renderer/src/components/settings/accounts/accounts-search.ts
  • src/renderer/src/components/settings/accounts/providers/accounts-pane-gemini-section.tsx
  • src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallSection.fixture.tsx
  • src/renderer/src/components/settings/appearance/AppearanceWindowSidebarSection.tsx
  • src/renderer/src/components/settings/appearance/appearance-status-bar-search.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/title-derived-pane-agent-identity.ts
  • src/renderer/src/components/status-bar/accounts/provider-icons.tsx
  • src/renderer/src/components/status-bar/composition/status-bar-agent-gating.ts
  • src/renderer/src/components/status-bar/usage/StatusBarProviderSegment.tsx
  • src/renderer/src/components/status-bar/usage/owner-usage-rate-limits.ts
  • src/renderer/src/components/status-bar/usage/usage-provider-settings-target.ts
  • src/renderer/src/components/terminal-pane/agent-completion/agent-completion-title-observer.ts
  • src/renderer/src/components/terminal-pane/pty-connection/agent-identity/shell-command-inference.ts
  • src/renderer/src/components/terminal-pane/pty-connection/pty-connection-deps.ts
  • src/renderer/src/components/terminal-pane/render-health/terminal-renderer-policy.ts
  • src/renderer/src/components/terminal-quick-commands/terminal-quick-command-agent-options.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/agent-catalog/agent-catalog-entries-primary.ts
  • src/renderer/src/runtime/hosted-terminals/creation/agent-launch/agent-resume-host-authority-capability.ts
  • src/renderer/src/store/slices/workspace-cleanup/workspace-cleanup-local-evidence.ts
  • src/shared/agent-hook-listener/configuration/agent-hook-types.ts
  • src/shared/agent-hook-listener/provider-dispatch.ts
  • src/shared/agent-hook-listener/provider-event-routing.ts
  • src/shared/agent-hook-listener/providers/gemini/gemini-events.ts
  • src/shared/agent-hook-listener/providers/gemini/gemini-tool-fields.ts
  • src/shared/agent-hook-listener/source-routing.ts
  • src/shared/agent-hook-listener/transport/agent-hook-relay.ts
  • src/shared/agent-launch/catalog/tui-agent-config.ts
  • src/shared/agent-launch/catalog/tui-agent-display-names.ts
  • src/shared/agent-launch/catalog/tui-agent-favicon-domains.ts
  • src/shared/agent-launch/catalog/tui-agent.ts
  • src/shared/agent-launch/permissions/agent-chat-permission-support.ts
  • src/shared/agent-launch/permissions/agent-permission-args.ts
  • src/shared/agent-launch/permissions/tui-agent-permissions.ts
  • src/shared/agent-launch/startup/agent-resume-argv.ts
  • src/shared/agent-session/lifecycle/agent-session-resume.ts
  • src/shared/agent-session/lifecycle/launch/agent-session-setup-commands.ts
  • src/shared/agent-session/options/catalog-providers/agent-session-option-catalog-cursor.ts
  • src/shared/agent-status/identity/agent-kind.ts
  • src/shared/agent-status/presentation/agent-type-icon-agent.ts
  • src/shared/agent-status/presentation/agent-type-label.ts
  • src/shared/agent-status/process/agent-node-package-entrypoints.ts
  • src/shared/agent-status/title/agent-name-token-match.ts
  • src/shared/agent-status/title/agent-title-name-anchoring.ts
  • src/shared/agent-status/title/agent-title-status.ts
  • src/shared/agent-usage/display/usage-provider-windows.ts
  • src/shared/agent-usage/rate-limits/rate-limit-state-factory.ts
  • src/shared/agent-usage/status-copy/rate-limit-user-facing-error-catalog-a.ts
  • src/shared/agent-usage/status-copy/rate-limit-user-facing-error-catalog-b.ts
  • src/shared/ai-vault/contracts/ai-vault-session-deletion.ts
  • src/shared/ai-vault/contracts/ai-vault-types.ts
  • src/shared/ai-vault/resume/ai-vault-resume-command.ts
  • src/shared/ai-vault/search/ai-vault-search-agent-compatibility.ts
  • src/shared/ai-vault/session-display/ai-vault-session-log-resource.ts
  • src/shared/bots/bot-skill-projects.ts
  • src/shared/native-chat/input/commands/native-chat-agent-profiles.ts
  • src/shared/native-chat/input/composer/agent-image-paste.ts
  • src/shared/settings/default-global-settings.ts
  • src/shared/settings/global-settings-types.ts
  • src/shared/skills/installation/skill-install-providers.ts
  • src/shared/skills/installation/skills-cli-agent-keys.ts
  • src/shared/status-bar/status-bar-usage-format.ts
  • src/shared/ui-chrome/ui-chrome-types.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

export const deliverAntigravityInstructions: AcpInstructionsDelivery = async ({ text, cwd }) => {
// agy also reads the folder's GEMINI.md, where Gemini CLI chats (bots now on Antigravity) left
// Orca's old copy of these instructions.
await removeFolderContextFile(cwd, 'GEMINI.md', 'Gemini').catch(() => undefined)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Run the Antigravity GEMINI.md cleanup on every launch, including launches with no instruction text.

acpLaunchInstructions returns null for empty text before it calls the delivery function. The cleanup in deliverAntigravityInstructions therefore does not run for those launches. An Antigravity launch can have no text when no instruction source resolves and no visuals or bot-tools text is added. In that case, a GEMINI.md left by an earlier Gemini CLI chat stays in the folder. Agy reads that file, so stale Gemini instructions remain in effect.

Move the cleanup so it runs for every Antigravity launch, before the !text early return. Keep its failure ignored, as it is now.

} else if (GEMINI_GLYPHS.some((glyph) => segment.startsWith(glyph))) {
agent = 'gemini'
// Qoder and DSH were matched above; a bare Gemini-family glyph names no supported agent.
agent = null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Keep the Antigravity model check reachable for Gemini-glyph titles.

On the native-frame path, collectObserverAnchors returns no agent for any segment that starts with a Gemini-family glyph. The Antigravity model-title check runs only later, in the final else branch. A title that starts with ✦ and names an agy Gemini model, such as ✦ agy - gemini 2 flash, can therefore lose its Antigravity identity on that path. The canonical path is not affected. Before this change, the same title was labeled gemini. Now it has no agent.

Test the same regex inside the glyph branch. Titles that do not match keep returning no agent.

Suggested fix

--- "a/src/shared/agent-status/title/agent-title-evidence.ts"
+++ "b/src/shared/agent-status/title/agent-title-evidence.ts"
@@ -254,9 +254,9 @@
     agent = segment.includes('Qoder CLI CN') ? 'qoder-cn' : 'qoder'
   } else if (piBrand || isLegacyPiCompatibleTitle(segment)) {
     agent = piBrand === 'OMP' ? 'omp' : 'pi'
   } else if (GEMINI_GLYPHS.some((glyph) => segment.startsWith(glyph))) {
-    // Qoder and DSH were matched above; a bare Gemini-family glyph names no supported agent.
-    agent = null
+    // Qoder and DSH were matched above; a Gemini-family glyph names Antigravity only with agy model metadata.
+    agent = ANTIGRAVITY_MODEL_TITLE_RE.test(undecorated) ? 'antigravity' : null
   } else if (genericClaude) {
     agent = agentForNativeFrame(segment) === 'claude' ? 'claude' : null
   } else {

@AmoabaKelvin
AmoabaKelvin merged commit 7f2a281 into main Nov 25, 2026
74 of 75 checks passed
DoozyX added a commit to DoozyX/orca that referenced this pull request Nov 25, 2026
Merges stablyai/orca 752c757 (277 commits).

Conflicts resolved by hand (independently reviewed, no defects):
- Gemini CLI removal (stablyai#48447) vs fork omp usage provider: StatusBarItem moved to
  client-ui-status-bar-params with omp kept; fork-retained status-bar tests
  repointed from gemini to kimi.
- Worker release custody (stablyai#42264) vs fork #67 ownership-transferred receipt
  fields: fields now spread on upstream's former-owner branch; retainedReason
  imported from its new presentation module.
- Source Control scope menu (stablyai#44229) vs fork Git Graph ref rail, Branches & Tags
  and redesigned commit pane: upstream panel-content taken, Branches & Tags dock
  moved to panel-ready, fork use-git-graph-support replaced by upstream's hook,
  git-history-panel deleted with upstream.
- Structured worker setup wait (stablyai#48202), agent row model chip (stablyai#48489), project
  badges (stablyai#48565/stablyai#48572) vs fork host badge, usage docs.
- Open diff button extracted and mobile page package aliases moved into
  mobile-web-app-aliased-packages to stay under max-lines after the merge.
- React Compiler baseline pruned.

Claude-Session: https://claude.ai/code/session_01BPjp5xBHHzDpEqwBtKH8Ac
dluxhu added a commit to dluxhu/orca that referenced this pull request Nov 27, 2026
Upstream v1.4.279 removed Gemini CLI support (stablyai#48447): the AI vault has
no gemini source and skill discovery no home-gemini root. The test keeps
the former ~/.gemini/skills retire root, which upstream still has.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fartown pushed a commit to Fartown/orca that referenced this pull request Nov 27, 2026
合入上游 fa60d0a..33dfd04(1988 个提交),110 个冲突文件全部按「以上游为底、重放 fork 改动」解决。

上游这一段的主要变化与 fork 侧的应对:
- stablyai#46786 删除约 93% 的测试与配套夹具:登记表摘掉已不存在的上游测试;fork 测试仍需要的 38 个夹具搬进 src/fork-test-support、tests/e2e/fork-fixtures;守护 fork 行为的用例移植到各功能自有测试。
- 主进程状态重构为 DesktopCore:fork 启动代码改读 state.core.runtime;Goal 与本地任务的启动调用从行数已满的启动流程文件迁到 chat-journal-startup(时序不变,serve 仍在绑定 RPC 前等待 Goal 注册)。
- stablyai#46479 配对端智能体列表改为非 React 增量发布:公共会话名改成覆盖层接入,并修复发布器就绪前解析出的名字不随首发发出的问题。
- stablyai#47204 文档预览只经主机上的 Orca 服务端:局域网分享目标与 HTML 窗格内预览随之只认 runtime 授权。
- stablyai#48447 移除 Gemini CLI、测试专用导出被删:相应 fork 用例调整。
- 新棘轮(zod-prefer-lazy 等)命中的 fork 既有代码登记进基线;手机网页包脚本数量表按实测更新。

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GvYgJSDZu9H4rmSuyr1FeT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant