# sidebar: Click project header row to toggle fold instead of switching worktrees \(\#53861\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/fb9415eca542fdb6ddf819a0958bc75a2ca4d706)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: fb9415eca542fdb6ddf819a0958bc75a2ca4d706

Requested commit: fb9415eca542fdb6ddf819a0958bc75a2ca4d706

Commit: fb9415eca542fdb6ddf819a0958bc75a2ca4d706

Tree: f2e5a3a5ef6ea35a9abf4f2a90e781b1429a010e

Author: Nathan Sobo

Committer: GitHub

## Message

```
sidebar: Click project header row to toggle fold instead of switching worktrees (#53861)

Previously, clicking a project header in the agent sidebar would
activate/switch to that worktree's workspace, resuming whatever thread
was most recently active. This felt jarring — activating a random thread
based on recency isn't that useful when the user can just click the
specific thread they want. There's also no clear semantic for clicking
the overall group header since each thread maps to a specific workspace
and there's no single workspace to activate for the group.

This changes the click target for folding from just the chevron to the
entire header row. The worktree-switching behavior is removed — clicking
anywhere on the row now toggles the fold, which is a more predictable
and useful interaction.

The hover-only buttons on the right side (ellipsis menu, collapse
threads, new thread) continue to work as before, with their own click
handlers that stop propagation.

Release Notes:

- Improved sidebar project headers to toggle fold on click instead of
switching worktrees.
```

## Parents

- [acf5da917270c5cedf083a56bcb4e0fb1a2e6886](https://git.cafe/gitcafe/zed/commit/acf5da917270c5cedf083a56bcb4e0fb1a2e6886?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/fb9415eca542fdb6ddf819a0958bc75a2ca4d706?format=markdown)
