Google has released Gemini CLI v0.39.1 as a focused security and reliability update. While this is a smaller point release, it introduces meaningful hardening around trusted workspaces, headless execution, environment variable loading, and shell command validation—areas that matter for teams using AI coding tools in automated or semi-automated workflows.
The biggest change in v0.39.1 is stricter workspace trust handling. The release adds secure .env loading and enforces workspace trust in headless mode, reducing the risk of unsafe execution in unattended CLI sessions.
Google also enhanced shell command validation and introduced a core tools allowlist. That suggests tighter guardrails around what the CLI can invoke, which is especially relevant for enterprise environments concerned with command safety, policy enforcement, and automation hygiene.
Another update improves the FatalUntrustedWorkspaceError message by including a documentation link. That does not change runtime behavior directly, but it makes trust-related failures easier to diagnose and resolve for developers and platform teams.
The release itself is based on four commits and 48 changed files compared with v0.39.0. Most remaining file changes are version bumps and package metadata updates, including the sandbox image reference moving from 0.39.0 to 0.39.1.
For AI-assisted development workflows, trust boundaries and command safety are not minor implementation details—they are core operational controls. By tightening workspace trust in headless mode and improving command validation, Gemini CLI v0.39.1 makes the tool more suitable for scripted runs, CI-style environments, and managed developer setups where guardrails matter.
This release is therefore less about new end-user features and more about reducing risk. Teams adopting Gemini CLI in production-like workflows should view v0.39.1 as a security hardening update that improves safe automation rather than a feature-heavy release.
Official Source: https://github.com/google-gemini/gemini-cli/releases/tag/v0.39.1