[BUG] Unexpected logout while removing folder from project directory

Status Closed — not planned
Reported on v2.1.81
Maintainer reply None cached
Activity 2 comments · opened Mar 23, 2026 · closed Apr 20, 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?

when i removed some folder using rm -rf directory. the claude code auto logged out. after i existed the claude code and resumed the last session. the auth is working. in the session, not existed the claude code asking repeatedly asking to login.

What Should Happen?

the session should not expired

Error Messages/Logs

Steps to Reproduce

 Bash(rm -rf /project/demo)                                                                                                                                                        
  ⎿  Done                                                                                                                                                                                             
  ⎿  Not logged in · Please run /login    

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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