Skip to content

[SSR Agent] Issue Fix (330): Enable pre-installed companion extension upon prompt acceptance - #331

Open
joneba-google wants to merge 1 commit into
mainfrom
ssr-agent-330
Open

joneba-google wants to merge 1 commit into
mainfrom
ssr-agent-330

Conversation

@joneba-google

Copy link
Copy Markdown
Collaborator

fixes #330
#330

Context & Problem

When accepting the prompt to connect VS Code/IDE to Gemini CLI while the companion extension is already pre-installed, Gemini CLI unconditionally ran /ide install instead of /ide enable. This led to extension re-installation errors because the pre-installed state was ignored.

Detailed Changes

  • packages/cli/src/ui/AppContainer.tsx: Updated handleIdePromptComplete to inspect result.isExtensionPreInstalled and execute handleSlashCommand('/ide enable') if true, and handleSlashCommand('/ide install') otherwise.
  • packages/cli/src/ui/AppContainer.test.tsx: Added two new integration tests to assert that the correct sub-command is executed corresponding to the isExtensionPreInstalled flag value and that user configuration is correctly persisted.

Verification

Verified using the Vitest unit tests added under the IDE Integration Nudge Prompt describe block. Also confirmed that the ESLint check successfully passed with zero errors or warnings as recorded in linter_output.txt.

@github-actions github-actions Bot added the size/M M: 50-249 lines changed label Aug 14, 2026
@github-actions

Copy link
Copy Markdown

📊 PR Size: size/M

  • Lines changed: 67
  • Additions: +65
  • Deletions: -2
  • Files changed: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M M: 50-249 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gemini CLI not able to detect that the companion extension is installed in VS-code

1 participant