Skip to content

[SSR Agent] Issue Fix (285): Trust system ripgrep path in Nix environments - #287

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

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

Conversation

@joneba-google

Copy link
Copy Markdown
Collaborator

fixes #285
Original Issue: #285

Context & Problem

The Gemini CLI hangs during execution when running in Nix environments because system ripgrep binaries located inside the /nix/store directory are rejected as untrusted. This occurs because isTrustedSystemPath validates executive paths against a hardcoded list of trusted prefixes which previously did not include /nix/store.

Detailed Changes

  • paths.ts: Added /nix/store to the trustedPrefixes array for non-Windows (POSIX) environments in isTrustedSystemPath.
  • paths.test.ts: Added a unit test within the isTrustedSystemPath test suite asserting that the path /nix/store/abc123def456-ripgrep-14.1.0/bin/rg is successfully evaluated as a trusted system path.

Verification

  • Verified that static analysis and the linter checks pass successfully without error for the edited files.
  • Verified that the target unit test successfully covers the verification criteria.

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

github-actions Bot commented Aug 4, 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