[BUG] Bash login shell

Resolved 💬 9 comments Opened Dec 5, 2025 by aeiplatform Closed Apr 18, 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?

$ cat ~/.claude/settings.json
{
  "alwaysThinkingEnabled": false,
  "env": {
    "CLAUDE_BASH_NO_LOGIN": "true"
  },
  "permissions": {
    "terminal": {
      "alwaysAllow": true
    },
    "fileEditing": {
      "alwaysAllow": true
    }
  }
}

but while executing some commands I see login shell prompts like:

● Bash(find /mnt/d/tomak/IdeaProjects/eurowag/azure/CMS/cms -name "CLAUDE.md" -o -name "claude.md" 2>/dev/null | head -5)
  ⎿  SSH:
     Agent pid 2329
     Identity added: /home/tomak/.ssh/id_rsa (Tomáš Doležal (https://aeiplatform.com) <tomak1@seznam.cz>)
     Identity added: /home/tomak/.ssh/eurowag_azure_rsa (Tomáš Doležal (https://www.eurowag.com) <ext-doleztom@eurowag.com>)
     MFA token for profile eurowag:
     (9s)

What Should Happen?

Should not be executing any bash comamnds as login

Error Messages/Logs

Steps to Reproduce

  1. claude
  2. /init

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.59

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

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