[BUG] ← for agents displays even when not in an agents view managed session
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?
I use claude agents as a session manager, which I think is where it's real power lies, with a --pwd so that I can have one terminal tab per project and have all my various sessions/jobs for that project in one view.
Recently ← for agents has started displaying in places where I've just done a claude or claude -c - i've not opened the claude agents view. Pressing back gets me to a confusing global view of all agents that never applied to the folder I'm in.
What Should Happen?
It's too opinionated, I can't imagine how productive people are using claude agents without it being limited to a per-project view with --pwd. I'd love to hear your tales if you think I'm using this feature wrong, it's been great for me this way though.
Fix: ← for agents shouldn't display on sessions that weren't initiated/entered into from the claude agents view
Error Messages/Logs
Steps to Reproduce
claude in any folderNote ← for agents appears, or that you can press left to get back to an unwanted global agents view
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.200
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_