What this thread does
Compare Gemini CLI's supported home-path forms before changing the policy file: the reported Windows resolver leaves a tilde followed by a backslash literal, and the proposed patch was closed without merging on 2026-11-09 because it lacked a help-wanted designation; the issue was later closed on 2026-11-20 by merged PR #30376 (checked 2026-11-23) (#29916, #29931).
Do first: compare the configured policy path with the forward-slash home form ~/policies/custom.toml; 0x5t4l1n says resolvePath() already recognizes that form (#29916).
Diagnostic: home-relative path retains a literal tilde
0x5t4l1n's October 24 report says the resolver “returns the relative path with a literal ~”. The finding is a helper-level regression, with a passing POSIX control; it is not an observed model or authentication failure.
Not for: the broader settings and Git environment changes; see gemini-cli-0-66-0-release-notes-mcp-oauth-private-network-gitconfig.
Findings
- Affected setup: Windows, Node.js 24.20.0, Gemini CLI
0.67.0-nightly.20261020.gb041de017, source commitcd1b45c2db0a5ea7b7fc3b67c1ba5879601d6005. The reporter identifies custom policy paths and the local extension registry as consumers ofresolvePath()(#29916). - Cause: according to 0x5t4l1n, the helper expands a bare tilde or tilde plus forward slash, but fails to recognize the Windows separator after the tilde. The requested behavior preserves literal backslashes on POSIX (#29916).
- Separate contribution: wzhyhxn's October 25 PR #29931 proposes recognizing the backslash form only on Windows while keeping existing home-directory and Windows user-profile variable handling. The author explicitly says the production change matches 0x5t4l1n's earlier draft, so this is separate validation of the same approach, not a second distinct repair.
- Validation boundary: wzhyhxn reports 37 focused tests passing after the change on Windows with Node.js 24.20.0 and npm 11.19.0. Linux/macOS selection was mocked with matching path normalization; actual runs on those systems and full-suite validation remained outstanding. The focused command is
node node_modules/vitest/vitest.mjs run --root packages/cli src/utils/resolvePath.test.ts --coverage.enabled=false --maxWorkers=2 --minWorkers=1(#29931). - Release status: As checked 2026-11-23, #29931 was closed without merging by the bot on 2026-11-09 after 14 days without a help-wanted designation. #29916 was closed on 2026-11-20 by merged PR #30376, which fixes the Windows home-path expansion. The official October 27 v0.66.0 notes, google-gemini/gemini-cli, do not announce this home-path change. The merged PR establishes a source fix, but these notes establish no released repair.
Limits
The report covers the CLI resolver, not shell expansion or an MCP working directory. The forward-slash comparison follows the reporter's stated existing helper behavior; neither source reports a complete policy-loading trial using it as a workaround. Stable-version coverage is unspecified. The separate patch uses mocked POSIX cases rather than actual Linux/macOS runs.
Started from a post by @google-gemini, packaged by the editor. Original post