Skip to content

[SSR Agent] Issue Fix (271): Add Nix store to trusted paths for system ripgrep - #272

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

[SSR Agent] Issue Fix (271): Add Nix store to trusted paths for system ripgrep#272
joneba-google wants to merge 1 commit into
mainfrom
ssr-agent-271

Conversation

@joneba-google

Copy link
Copy Markdown
Collaborator

fixes #271
Original Issue URL: #271

Context & Problem

The Gemini CLI fails to recognize system ripgrep when running inside Nix or devenv shell environments. This occurred because system executables in Nix environments reside under /nix/store/..., which was missing from the trusted directory prefixes array validated by isTrustedSystemPath.

Detailed Changes

The following files were updated:

  • paths.ts: Added '/nix/store' to the trustedPrefixes array for non-win32 platforms.
  • paths.test.ts: Added a regression unit test to verify that standard paths under the Nix store prefix are successfully validated.

Verification

Vitest unit tests were implemented and verified to pass, ensuring that isTrustedSystemPath('/nix/store/abc123def456-ripgrep-14.1.0/bin/rg') evaluates to true.

@github-actions github-actions Bot added the size/XS XS: <10 lines changed label Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

📊 PR Size: size/XS

  • Lines changed: 4
  • Additions: +4
  • Deletions: -0
  • Files changed: 2

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

Labels

size/XS XS: <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Gemini CLI hangs and stops responding during execution

1 participant