mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-03 16:34:31 -07:00
feat(core): integrate SandboxManager to sandbox all process-spawning tools
- Integrate `SandboxManager` into `Config` and `AgentLoopContext`.
- Refactor `ShellExecutionService` to use sandboxing for PTY and child process spawns.
- Update `GrepTool`, `ShellTool`, and `ToolRegistry` to execute commands via `SandboxManager`.
- Ensure consistent environment sanitization in `spawnAsync` and `execStreaming` utilities.
- Address PR review feedback and fix compilation/lint errors:
- Respect user redaction settings in `NoopSandboxManager`.
- Use idiomatic `async/await` in `GrepTool` availability checks.
- Update license headers to 2026.
- Fix cross-package build errors and exports.
- Resolve all TypeScript and ESLint warnings/errors.
- Update `sandboxConfig.test.ts` to match new `SandboxConfig` schema.
This commit is contained in:
@@ -476,6 +476,7 @@ class GrepToolInvocation extends BaseToolInvocation<
|
||||
const generator = execStreaming(rgPath, rgArgs, {
|
||||
signal: options.signal,
|
||||
allowedExitCodes: [0, 1],
|
||||
sandboxManager: this.config.sandboxManager,
|
||||
});
|
||||
|
||||
let matchesFound = 0;
|
||||
|
||||
Reference in New Issue
Block a user