[Bug] Session grouping by directory not working in `claude agents` view
Status Open
Reported on v2.1.140
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 4 comments · opened May 13, 2026
Bug Description
In the claude agents view grouping the session by directory doesn't work. They all show up under the same directory, even though they are created from different directories
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.1.140
- Feedback ID: 637e7a97-a631-4f6d-9893-16349e1710f2
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jerry/.local/share/claude/versions/2.1.140 (expected in multi-process scenarios)\n at g16 (/$bunfs/root/src/entrypoints/cli.js:2672:2257)\n at RLH (/$bunfs/root/src/entrypoints/cli.js:2672:1337)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-13T20:22:00.804Z"}]Showing cached comments. Read the full discussion on GitHub ↗
3 Comments
same
Same issue on Linux (WSL2).
Reproduction:
claude agentsfrom~/code/6.1~/code/6.1prominentlyCtrl+Sto switch to directory grouping before the directory appearsExpected: When opening
claude agentsfrom a specific directory, sessions under that directory should be visible by default (or the view should auto-group by current directory).Environment:
The
Ctrl+Sworkaround works, but it's not discoverable. Users expect the current directory's sessions to be front and center.This happens to me too, and when I open an agent from a different directory than where it was created, it spawns a duplicate with the same name but no context, immediately starting work on the last message I had sent.