Skip to content

[SSR Agent] Issue Fix (268): Trust Nix store path prefix on POSIX platforms - #270

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

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

Conversation

@joneba-google

Copy link
Copy Markdown
Collaborator

fixes #268
Original Issue: #268

Context & Problem

During execution in Nix environments, Gemini CLI hangs and stops responding. This is caused by isTrustedSystemPath() in packages/core/src/utils/paths.ts not including /nix/store in its list of trusted system directory prefixes on POSIX platforms, which forces a fallback to standard grep on large codebases.

Detailed Changes

  • Added /nix/store to the trustedPrefixes array in packages/core/src/utils/paths.ts within isTrustedSystemPath().
  • Added a unit test in packages/core/src/utils/paths.test.ts to assert that isTrustedSystemPath() returns true for a ripgrep path under /nix/store on Darwin/macOS and Linux.

Verification

  • Verified by asserting the correctness via Vitest unit tests in packages/core/src/utils/paths.test.ts.
  • The ESLint check has successfully passed with no errors on the modified files.

@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