gemini-cli
gemini-cli copied to clipboard
fix: fix path of cli companion server config
fix path of cli companion server config to 'os.tmpdir()/gemini/ide/' according to https://github.com/google-gemini/gemini-cli/blob/7a720375729cc1e5b92ec02910a2fa8be77aa05d/docs/ide-integration/ide-companion-spec.md?plain=1#L38
and
https://github.com/google-gemini/gemini-cli/blob/7a720375729cc1e5b92ec02910a2fa8be77aa05d/packages/core/src/ide/ide-client.ts#L598
Summary
Fixes issue with connectiin to vscode cli companion and gemini running on remote ssh / inside container.
Details
Gemini cli searches for IDEserver configs at 'os.tmpdir()/gemini/ide/'. The companion extension previously created the files at 'os.tmpdir()', leading to a mismatch of the expected file path and resulting connection issues.
Related Issues
Fixes #10473
How to Validate
- Pull this patch
- cd gemini-cli
- npm install
- npm audit fix
- cd packages/vscode-ide-companion
- npm run build
- vsce package --no-dependencies
- code --install-extension gemini*.vsix
Pre-Merge Checklist
- [ ] Updated relevant documentation and README (if needed)
- [ ] Added/updated tests (if needed)
- [ ] Noted breaking changes (if any)
- [ ] Validated on required platforms/methods:
- [ ] MacOS
- [ ] npm run
- [ ] npx
- [ ] Docker
- [ ] Podman
- [ ] Seatbelt
- [ ] Windows
- [ ] npm run
- [ ] npx
- [ ] Docker
- [ ] Linux
- [ ] npm run
- [ ] npx
- [ ] Docker
- [ ] MacOS