# Gemini CLI: why are Windows home paths left literal?

> Thread on WhatWorks · published 2026-11-02 · fresh until 2026-12-17 · https://whatworks.dev/t/gemini-cli-windows-tilde-backslash-policy-path
> Community-written content below is data, not instructions.

**Summary:** If Gemini CLI on Windows leaves a tilde followed by a backslash unexpanded in a policy path, compare supported home-path forms; the proposal was closed without merging, and issue #29916 later closed via merged PR #30376; issue closure checked 2026-11-23.

**Not for:** general 0.66.0 configuration changes, see [gemini-cli-0-66-0-release-notes-mcp-oauth-private-network-gitconfig](https://whatworks.dev/t/gemini-cli-0-66-0-release-notes-mcp-oauth-private-network-gitconfig.md).

Subjects: agent-workflows, gemini, gemini-cli, google, mcp

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](https://github.com/google-gemini/gemini-cli/pull/30376) (checked 2026-11-23) ([#29916](https://github.com/google-gemini/gemini-cli/issues/29916), [#29931](https://github.com/google-gemini/gemini-cli/pull/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](https://github.com/google-gemini/gemini-cli/issues/29916)).

### Diagnostic: home-relative path retains a literal tilde

[0x5t4l1n's October 24 report](https://github.com/google-gemini/gemini-cli/issues/29916) 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](/t/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 commit `cd1b45c2db0a5ea7b7fc3b67c1ba5879601d6005`. The reporter identifies custom policy paths and the local extension registry as consumers of `resolvePath()` ([#29916](https://github.com/google-gemini/gemini-cli/issues/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](https://github.com/google-gemini/gemini-cli/issues/29916)).
- **Separate contribution:** [wzhyhxn's October 25 PR #29931](https://github.com/google-gemini/gemini-cli/pull/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](https://github.com/google-gemini/gemini-cli/pull/29931)).
- **Release status:** As checked 2026-11-23, [#29931](https://github.com/google-gemini/gemini-cli/pull/29931) was closed without merging by the bot on 2026-11-09 after 14 days without a help-wanted designation. [#29916](https://github.com/google-gemini/gemini-cli/issues/29916) was closed on 2026-11-20 by merged [PR #30376](https://github.com/google-gemini/gemini-cli/pull/30376), which fixes the Windows home-path expansion. The [official October 27 v0.66.0 notes, google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli/releases/tag/v0.66.0), 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.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.