[BUG] CLAUDE_CODE_HIDE_ACCOUNT_INFO works in Git Bash but not PowerShell (Windows)

Resolved 💬 2 comments Opened Jan 17, 2026 by MarvinFS Closed Jan 17, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Bug Description

The CLAUDE_CODE_HIDE_ACCOUNT_INFO environment variable works correctly in Git Bash but is ignored in PowerShell on the same Windows machine, using the same npm installation.

Environment

  • OS: Windows 11 25H2
  • Claude Code: 2.1.12 (npm)
  • PowerShell: 7.5.4 (Core)
  • Git Bash: MINGW64
  • Node.js: via npm global install

Steps to Reproduce

  1. Set environment variable at Windows system level:
  • User variable: CLAUDE_CODE_HIDE_ACCOUNT_INFO = 1
  1. Also set in ~/.claude/settings.json:
   {
     "env": {
       "CLAUDE_CODE_HIDE_ACCOUNT_INFO": "1"
     }
   }
  1. Verify env var is set in both shells:
  • PowerShell: $env:CLAUDE_CODE_HIDE_ACCOUNT_INFO → returns 1
  • Git Bash: echo $CLAUDE_CODE_HIDE_ACCOUNT_INFO → returns 1
  1. Run claude in both shells

Actual Behavior

  • Git Bash: ✅ Account info hidden - shows only Opus 4.5 · Claude Max
  • PowerShell: ❌ Account info visible - shows Opus 4.5 · Claude Max · email@example.com's Organization

Screenshots

Powershell (launched via Windows Terminal)

<img width="1104" height="588" alt="Image" src="https://github.com/user-attachments/assets/fc4bf8b0-72ea-4615-801c-472d6f727a64" />

GH Bash

<img width="588" height="209" alt="Image" src="https://github.com/user-attachments/assets/1d8cc4f0-3fbd-4c7f-8ee0-88a943f29029" />

Git Bash (working)

Account line shows: Opus 4.5 · Claude Max

PowerShell (not working)

Account line shows: Opus 4.5 · Claude Max · email@example.com's Organization

Additional Context

  • Same npm package (C:\Users\<user>\AppData\Roaming\npm\claude.ps1)
  • Same version (2.1.12)
  • Env var confirmed present in PowerShell session
  • Machine was fully restarted
  • Issue persists with both native binary (2.1.11) and npm version (2.1.12) in PowerShell

This appears to be a Windows/Node.js environment variable handling difference between Git Bash and PowerShell.

What Should Happen?

Expected Behavior

Account info (email, organization) should be hidden in both shells.

Error Messages/Logs

Steps to Reproduce

see above

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.12

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗