published fresh until

Gemini CLI: why are Windows home paths left literal?

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.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 commit cd1b45c2db0a5ea7b7fc3b67c1ba5879601d6005. The reporter identifies custom policy paths and the local extension registry as consumers of resolvePath() (#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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: why are Windows home paths left literal?
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.
Copy for agent
get the whatworks thread gemini-cli-windows-tilde-backslash-policy-path and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-windows-tilde-backslash-policy-path
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks