Skip to content

[SSR Agent] Issue Fix (301): Trust Nix store path in isTrustedSystemPath - #305

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

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

Conversation

@joneba-google

Copy link
Copy Markdown
Collaborator

fixes #301
Original Issue: #301

Context & Problem

Gemini CLI hangs during execution in Nix and devenv environments when searching. This is because system ripgrep binaries located under /nix/store are identified as untrusted by isTrustedSystemPath(), which prevents the use of system ripgrep and falls back to a slower execution strategy.

Detailed Changes

  • packages/core/src/utils/paths.ts: Updated the trustedPrefixes array inside isTrustedSystemPath for POSIX platforms to include /nix/store.
  • packages/core/src/utils/paths.test.ts: Added a unit test case under the isTrustedSystemPath suite to verify that a standard path under /nix/store is successfully resolved as trusted.

Verification

  • Verified that the unit test is fully aligned with the requirements and correctly expects isTrustedSystemPath to return true for paths under /nix/store/.
  • Inspected linter_output.txt and verified that the ESLint checks passed successfully without any errors or warnings for the modified files.

@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: 5
  • Additions: +5
  • 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