Please add “group by directory” (or “group by folder”) as an option in the agents window. This enables support for less vanilla workflows like multiple agents on worktrees (e.g. in a monorepo).
Hi @jacobistyping Thanks for the Fr! We have a similar option coming soon that’s currently on nightly builds… group by repository so that cloud, local, including multiple worktree instances etc collapse under one folder structure. Do you think this would solve your use case or are you looking for something different?
If they are grouped under the same folder, isn’t that the same as the current Workspace grouping?
I also want a ‘group by folder’ option, but my problem is different. Because the current grouping contains both local copies and worktrees, it’s difficult to know exactly where I’m working.
For example, I might want to run a prompt on a worktree, but the UI isn’t clear enough to show my current location. Am I in the local (master) copy or the worktree? Because I sometimes enter prompts in the wrong place, it makes the worktree feature useless in the agent window.
I usually work in a single repository (a monorepo). My workflow starts with creating a worktree in a separate directory (a sibling directory of the monorepo).
Group by Workspace and Group by Repository would NOT meet the feature request above. I want the option to group the sidebar by chats that take place in the specific directory I’m working in. It’s common to have multiple separate agent sessions for a single worktree.
This would also be solved with a Group by Worktree option.
I have the same workflow and the Agent window is basically unusable. It shows 5 identically named workspaces representing my 4 worktrees and the repo root. My app requires a complex development environment setup with many external dependencies so I reuse these worktrees.
Another issue is that opening an agent in a specific worktree requires selecting the directory every time. The recents menu is grouped by workspaces.