Skip to content

agent_ui: Improve draft threads for worktrees#58268

Merged
danilo-leal merged 4 commits into
mainfrom
draft-ux-impv-2
Jun 2, 2026
Merged

agent_ui: Improve draft threads for worktrees#58268
danilo-leal merged 4 commits into
mainfrom
draft-ux-impv-2

Conversation

@danilo-leal

Copy link
Copy Markdown
Member

Closes AI-351

This PR builds on top of #57692 by improving the draft threads UX in the context of worktrees. If you have more than one worktree loaded for a given group, clicking on the plus button will now display a menu allowing you to choose for which worktree you'd like to open a new thread in. This felt particularly relevant in the case of discarding a draft within a worktree when that was the only thread item for that worktree, making it hard to come back to it.

Added some extra stuff in here as well with regards to better draft management. Most notably, if you created a new thread and then typed something, this draft thread would show a timestamp that's relative to the creation time of the thread. However, if you moments later deleted the draft content and then typed something up again, the timestamp would be stuck in the creation time. That felt wrong because by erasing the content you effectively reset the draft. So, this branch makes it so, in this context, the timestamp would be reset to now.

Release Notes:

  • Agents: Added improvements for the draft thread UX particularly in the context of worktrees, allowing to choose for which worktree to open a thread in when the group contains more than one.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 1, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 1, 2026
@danilo-leal danilo-leal requested a review from bennetbo June 1, 2026 20:41
@danilo-leal danilo-leal added this pull request to the merge queue Jun 2, 2026
Merged via the queue into main with commit b077f41 Jun 2, 2026
33 checks passed
@danilo-leal danilo-leal deleted the draft-ux-impv-2 branch June 2, 2026 12:33
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 8, 2026
Closes AI-351

This PR builds on top of
zed-industries#57692 by improving the draft
threads UX in the context of worktrees. If you have more than one
worktree loaded for a given group, clicking on the plus button will now
display a menu allowing you to choose for which worktree you'd like to
open a new thread in. This felt particularly relevant in the case of
discarding a draft within a worktree when that was the only thread item
for that worktree, making it hard to come back to it.

Added some extra stuff in here as well with regards to better draft
management. Most notably, if you created a new thread and then typed
something, this draft thread would show a timestamp that's relative to
the creation time of the thread. However, if you moments later deleted
the draft content and then typed something up again, the timestamp would
be stuck in the creation time. That felt wrong because by erasing the
content you effectively reset the draft. So, this branch makes it so, in
this context, the timestamp would be reset to now.

Release Notes:

- Agents: Added improvements for the draft thread UX particularly in the
context of worktrees, allowing to choose for which worktree to open a
thread in when the group contains more than one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants