[BUG] when clearing context the directory changes suddenly without

Resolved 💬 3 comments Opened Feb 1, 2026 by imsaif Closed Feb 4, 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?

<img width="1138" height="581" alt="Image" src="https://github.com/user-attachments/assets/bd53c819-e42d-4399-bf4f-324a58e3cc56" />

when i clear the context with the new way of automatically clearing context

What Should Happen?

CC should stay in the current directory without jumping elsewhere

Error Messages/Logs

Steps to Reproduce

when in cc let cc ask you to automatically clear context

  • choose clear context
  • youll see cc has changed from the existing directory to the desktop.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.29

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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