Skip to content

agent_ui: Use selected agent for new threads#52888

Merged
benbrandt merged 1 commit intomainfrom
use-per-project-agent-selection
Apr 1, 2026
Merged

agent_ui: Use selected agent for new threads#52888
benbrandt merged 1 commit intomainfrom
use-per-project-agent-selection

Conversation

@benbrandt
Copy link
Copy Markdown
Member

Persist the last used agent globally as a fallback for new
workspaces, keep per-workspace selections independent. This should mean
"new thread" should grab whatever agent you are currently looking at,
and won't leak across projects.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • agent: Prefer the currently used agent per-project when creating a new thread.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Apr 1, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Apr 1, 2026
Persist the last used agent globally as a fallback for new
workspaces, keep per-workspace selections independent. This should mean
"new thread" should grab whatever agent you are currently looking at,
and won't leak across projects.

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: MrSubidubi <dev@bahn.sh>
@benbrandt benbrandt force-pushed the use-per-project-agent-selection branch from f195d87 to db0ce03 Compare April 1, 2026 09:32
@benbrandt benbrandt requested a review from bennetbo April 1, 2026 09:34
@benbrandt benbrandt merged commit 02e8914 into main Apr 1, 2026
30 checks passed
@benbrandt benbrandt deleted the use-per-project-agent-selection branch April 1, 2026 09:47
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