[Bug] Session grouping by directory not working in `claude agents` view

Status Open
Reported on v2.1.140
Maintainer reply None cached
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"}]

View original on GitHub ↗

3 Comments

EmmettHan · 3 months ago

same

EmmettHan · 3 months ago

Same issue on Linux (WSL2).

Reproduction:

  1. Open claude agents from ~/code/6.1
  2. Default view doesn't show sessions under ~/code/6.1 prominently
  3. Need to press Ctrl+S to switch to directory grouping before the directory appears

Expected: When opening claude agents from a specific directory, sessions under that directory should be visible by default (or the view should auto-group by current directory).

Environment:

  • Claude Code v2.1.145
  • Platform: Linux (WSL2)
  • Shell: bash

The Ctrl+S workaround works, but it's not discoverable. Users expect the current directory's sessions to be front and center.

MitchTalmadge · 1 month ago

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.

Showing cached comments. Read the full discussion on GitHub ↗