[Bug] Incorrect relative path prefix "../../" displayed for CLAUDE.md in v2.0.72
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?
Description
In version 2.0.72, when running Claude Code from a subdirectory within a monorepo, the
CLAUDE.md file path is displayed with an incorrect ../../ prefix in the
autocomplete/context menu.
Steps to Reproduce
- Have a monorepo structure with a root CLAUDE.md file
- Navigate to a subdirectory (e.g., apps/meme-web)
- Run claude
- Type @cl to trigger autocomplete
Expected Behavior
The path should display as CLAUDE.md (as it did in v2.0.71)
Actual Behavior
The path displays as ../../CLAUDE.md with an incorrect relative path prefix
Version Information
- Affected version: v2.0.72
- Working version: v2.0.71
- Platform: macOS (Darwin 24.5.0)
Screenshots
v2.0.72 (broken):
<img width="2456" height="1494" alt="Image" src="https://github.com/user-attachments/assets/5392a62f-5f80-4a3e-a5b5-6fd08a5028cd" />
---
v2.0.71 (working correctly):
<img width="1580" height="1156" alt="Image" src="https://github.com/user-attachments/assets/56c25932-af33-44b5-a06b-8007004cfff9" />
What Should Happen?
- File paths should be correctly resolved based on Claude Code's current working
directory
- The @ file search tool should display results relative to the working directory where
Claude Code is running
- This behavior should match how it worked in version 2.0.71
Error Messages/Logs
Steps to Reproduce
- Set up a monorepo with a root CLAUDE.md file
- Navigate to a subdirectory within the monorepo:
cd apps/meme-web
- Start Claude Code:
claude
- Type @cl to trigger the file autocomplete menu
- Observe the path shown for CLAUDE.md
Result: The path incorrectly displays as ../../CLAUDE.md instead of just CLAUDE.md
Note: This worked correctly in v2.0.71 - the path was displayed relative to the working
directory without the ../../ prefix.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
v2.0.71
Claude Code Version
v2.0.72
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗