Skip to content

[SSR Agent] Issue Fix (280): Trust system ripgrep paths in Nix environments - #282

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

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

Conversation

@joneba-google

Copy link
Copy Markdown
Collaborator

fixes #280

Original Issue URL

#280

Context & Problem

Gemini CLI hangs indefinitely in Nix environments because system ripgrep binaries located in /nix/store and /nix/var/nix/profiles are rejected as untrusted system paths, forcing a fallback to standard grep. This fallback tool causes execution hangs or extreme slowdowns on large codebases.

Detailed Changes

  • In paths.ts, added /nix/store and /nix/var/nix/profiles to the list of trusted system path prefixes for POSIX environments.
  • In paths.test.ts, added unit tests verifying that system paths under /nix/store and /nix/var/nix/profiles are successfully trusted.

Verification

  • Executed Vitest unit tests to ensure that the new Nix paths resolve as trusted.
  • Verified that all other standard and untrusted paths continue mock execution without issues.

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

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

📊 PR Size: size/S

  • Lines changed: 13
  • Additions: +13
  • 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/S S: 10-49 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