This PR adds an upsell to try Zed Pro
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Nate Butler
and
Marshall Bowers
created
31419db
Allow the agent panel font size to be customized (#29954)
Click to expand commit body
You can set `agent_font_size` as a top-level settings key. You can also
use `zed::IncreaseBufferFontSize` and `zed::DecreaseBufferFontSize` and
`zed::ResetBufferFontSize` the agent panel is focused via the standard
bindings to adjust the agent font size. In the future, it might make
sense to rename these actions to be more general since "buffer" is now a
bit of a misnomer. 🍐'd with @mikayla-maki
Release Notes:
- N/A
---------
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
Nathan Sobo
and
Mikayla Maki
created
51bfe9d
Use the same context store for all inline assists in a project (#29953)
Click to expand commit body
Release Notes:
- Made context attachments in inline assist prompts persist across
inline assist invocations.
Co-authored-by: Michael Sloan <mgsloan@gmail.com>
Max Brunsfeld
and
Michael Sloan
created
971fc5c
inline_completion_button: Show the initial usage data from the server (#29952)
Click to expand commit body
This PR updates the usage indicator for edit predictions to show the
initial usage data returned from the server.
Release Notes:
- N/A
Marshall Bowers
created
f9fa99e
Allow attaching text threads as context (#29947)
Click to expand commit body
Release Notes:
- N/A
---------
Co-authored-by: Michael Sloan <mgsloan@gmail.com>
Max Brunsfeld
and
Michael Sloan
created
aae502e
Allow agent edits to be accepted/rejected before the end the turn (#29941)
WIP
- On macOS/Linux, run the command in bash instead of the user's shell
- Try to prevent the agent from running commands that expect interaction
Release Notes:
- Agent Beta: Switched to using `bash` (if available) instead of the
user's shell when calling the terminal tool.
- Agent Beta: Prevented the agent from hanging when trying to run
interactive commands.
---------
Co-authored-by: WeetHet <stas.ale66@gmail.com>
Cole Miller
and
WeetHet
created
108005f
context_store: Refactor state management (#29910)
Click to expand commit body
Because we instantiated `ContextServerManager` both in `agent` and
`assistant-context-editor`, and these two entities track the running MCP
servers separately, we were effectively running every MCP server twice.
This PR moves the `ContextServerManager` into the project crate (now
called `ContextServerStore`). The store can be accessed via a project
instance. This ensures that we only instantiate one `ContextServerStore`
per project.
Also, this PR adds a bunch of tests to ensure that the
`ContextServerStore` behaves correctly (Previously there were none).
Closes #28714
Closes #29530
Release Notes:
- N/A
Bennet Bo Fenner
created
71f7100
agent: Handle attempts to use hallucinated tools (#29946)
Click to expand commit body
This change:
1. Catches attempts to use missing tools. If this happens, we now send
Agent a message listing available tools, after which Agent can
gracefully recover. Prior behavior: thread would stop in a broken state.
Example of a hallucinated call and a message we send back:

2. Adds evals for hallucinated tool use and imagined edits
3. Adds ability to configure a profile name in evals.
Release Notes:
- N/A
To-dos:
- [x] Expose the command to defend against cases where that's just super
long
- [x] Tackle the vertical scroll conflict with panel scroll
- [x] Reduce default font-size
Release Notes:
- N/A
---------
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
Co-authored-by: Agus Zubiaga <hi@aguz.me>
Danilo Leal
,
Ben Brandt
,
Mikayla Maki
, and
Agus Zubiaga
created
The goal of this PR is to support tool calls using ollama. A lot of the
serialization work was done in
https://github.com/zed-industries/zed/pull/15803 however the abstraction
over language models always disables tools.
## Changelog:
- Use `serde_json::Value` inside `OllamaFunctionCall` just as it's used
in `OllamaFunctionCall`. This fixes deserialization of ollama tool
calls.
- Added deserialization tests using json from official ollama api docs.
- Fetch model capabilities during model enumeration from ollama provider
- Added `supports_tools` setting to manually configure if a model
supports tools
## TODO:
- [x] Fix tool call serialization/deserialization
- [x] Fetch model capabilities from ollama api
- [x] Add tests for parsing model capabilities
- [ ] Documentation for `supports_tools` field for ollama language model
config
- [ ] Convert between generic language model types
- [x] Pass tools to ollama
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Nathan Sobo <nathan@zed.dev>
tidely
,
Antonio Scandurra
, and
Nathan Sobo
created
Completely subjective, but I just like it better.
Release Notes:
- N/A
---------
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Nathan Sobo
,
Danilo Leal
, and
Danilo Leal
created
b577114
agent panel: Bring back search within text threads (#29934)
The tool has been deleted, but the description remained.
Release Notes:
- N/A
Richard Feldman
created
7249da1
Simplify setting font size for EditToolCard (#29925)
Click to expand commit body
Release Notes:
- N/A
Antonio Scandurra
created
3ffaf27
agent: Tweak MCP server configuration dialog (#29878)
Click to expand commit body
Tweaks the MCP configuration dialog a bit:
- Increase width of popover
- Disable soft
- Clear errors when hitting confirm
Release Notes:
- N/A
Bennet Bo Fenner
created
571db35
Show prompt usage in agent overflow menu (#29922)
Click to expand commit body
This PR adds prompt usage information, and easy access to managing your
account, to the agent overflow menu:

Currently this UI will only show after making a request. We'll work on
eagerly getting the usage info later.
Release Notes:
- Added current prompt usage information to the agent menu (`...`) for
Zed AI users
Nate Butler
created
395d4e9
Don't show deleted hunks when agent overwrites file (#29918)
Click to expand commit body
Release Notes:
- Improved display of diffs when the agent rewrites a file from scratch.
Antonio Scandurra
created
711a855
Get terminal tool working in evals (#29831)
Click to expand commit body
Bypass our terminal subsystem and just run a shell in a pty.
- [x] make sure we use the same working directory
- [x] strip control chars from the pty output (?)
- [x] tests
Release Notes:
- N/A
Cole Miller
created
298b30c
Stop generating in the Agent panel when the user edits a previous message (#29915)
Click to expand commit body
Otherwise the panel keeps scrolling as the new token comes in and it is
almost impossible to keep the scroll position in the right place.
Also, if the user is editing, it is likely that the current generated
tokens will need to be regenerated anyway, so we may as well stop the
current progress.
Release Notes:
- Agent Beta: Stop generating tokens if previous messages are edited.
Ben Brandt
created
124e420
copilot: Add support for tool_calls for gpt-4.1, gpt-4o, o4-mini (#29369)
Click to expand commit body
Github Copilot currently supports following models for agent mode with
tool calls. Currently we are only supporting anthropic models and not
openai and gemini. This PR add support for the openai models. I have
tested it and it works for all of them. For gemini models it seems there
is a issues from copilot side so not adding that in this PR as enabling
gemini model breaks it in the ask mode as well.
<img width="392" alt="image"
src="https://github.com/user-attachments/assets/fb7a4148-e48c-45c5-9ff9-c02f71217dfb"
/>
- [x] GPT-4.1
- [x] GPT-4.0
- [x] o4-mini
Release Notes:
- agent: Add tool calling support for gpt-4.1, gpt-4o, o4-mini when
using Copilot Chat as a provider
Signed-off-by: Umesh Yadav <umesh4257@gmail.com>
Umesh Yadav
created
2917845
Polish diff for the `edit_file` tool (#29911)
Click to expand commit body
I added some padding to the editor, and removed the border around each
hunk as it would overlap in weird ways with the card container.
## Before
<img width="1148" alt="image"
src="https://github.com/user-attachments/assets/2018feaa-c847-4609-bc82-522660714b9a"
/>
## After
One Light:
<img width="1148" alt="image"
src="https://github.com/user-attachments/assets/4da1a4b6-0af2-4479-afcc-02da50178fd6"
/>
One Dark:
<img width="1148" alt="image"
src="https://github.com/user-attachments/assets/0168631d-7b76-4582-8174-c6e9c1297dc8"
/>
Release Notes:
- Improved displaying of diffs when the agent edits files.
Antonio Scandurra
created
beecd17
Properly restore window position for SSH projects (cherry-pick #29904) (#29906)
Click to expand commit body
Cherry-picked Properly restore window position for SSH projects (#29904)
Release Notes:
- Fixed SSH projects not restoring their window position on reopen
Co-authored-by: Kirill Bulatov <kirill@zed.dev>
gcp-cherry-pick-bot[bot]
and
Kirill Bulatov
created
8dc98c2
agent: Sort profiles based on relevance (#29893)
Click to expand commit body
Kinda feel like the way that makes the most sense to sort profiles in
the dropdown is by relevance/impact. "Write" is the default profile and
contains all built-in tools turned on by default, thus it should be the
first. "Ask" contains read-only tools, one step down from Write. And
"Manual" is totally empty, the least "powerful" profile, thus the last.
Release Notes:
- N/A
Danilo Leal
created
cdbd8c3
In the edit tool card, use the UI font size for the editor that we use to render the diff (#29882)
Click to expand commit body
I am currently setting the font size corrrectly by using a custom
EditorStyle and building an element. However I need to use the same
properties as a normal editor for everything but font size.
Release Notes:
- N/A
Nathan Sobo
created
ae0716e
agent: Add design adjustments to message editor (#29891)
Click to expand commit body
- Removed unused `MessageBubbleDashed` icon
- Polished `Crosshair` icon SVG
- Added dropdown toggle keybinding to the profile selector tooltip
- Repositioned buttons at the message editor footer
- Updated buttons to use `Button` instead of `ButtonLike`
Release Notes:
- N/A
Danilo Leal
created
d6c2608
Change cloud language model provider JSON protocol to surface errors and usage information (#29830)
Max Brunsfeld
,
Nathan Sobo
, and
Marshall Bowers
created
ed49ee9
agent: Rename `@rules` to `@rule` (#29881)
Click to expand commit body
This is purely a cosmetic change, renamed `@rules` to `@rule` which
unifies the @mention experience (for files, threads etc. we also use
`@file`, `@thread` not `@files`, `@thread`). Would also make sense to
rename the rules picker to rule picker, but i do not wanna introduce
conflicts just for the purpose of re-naming.
Release Notes:
- N/A
Bennet Bo Fenner
created
23b6693
Encourage editing over re-creating a file from scratch (#29870)
Click to expand commit body
I also introduced a new eval to prove the encouragement actually makes a
difference.
Release Notes:
- Improved agent behavior when streaming edits, encouraging it to
editing files as opposed to creating them from scratch
f30c146
Add the ability to follow the agent as it makes edits (#29839)
Click to expand commit body
Nathan here: I also tacked on a bunch of UI refinement.
Release Notes:
- Introduced the ability to follow the agent around as it reads and
edits files.
---------
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Antonio Scandurra
,
Nathan Sobo
, and
Max Brunsfeld
created
Now instead of the model hallucinating tool calls, we get requests for
more context:
<img width="620" alt="Screenshot 2025-05-01 at 12 45 49 PM"
src="https://github.com/user-attachments/assets/847d5c14-82f6-4234-b85a-8cd2bc7ab11d"
/>
It still knows how to answer general questions:
<img width="624" alt="Screenshot 2025-05-01 at 12 47 44 PM"
src="https://github.com/user-attachments/assets/43ab0fc3-4cc8-452f-b26b-474b5d31919f"
/>
Release Notes:
- Fixed the model still trying to do tool calls when no tools selected
(e.g. in `Manual` profile).
---------
Co-authored-by: Ben <ben@zed.dev>
Co-authored-by: Michael <michael@zed.dev>
Richard Feldman
,
Ben
, and
Michael
created
b4234fa
Fix hiding editor toolbar and add `agent_review` setting (#29854)
Click to expand commit body
Closes #29836
The agent diff toolbar item was causing the editor toolbar to show even
when all the other elements were disabled via settings.
This PR fixes this by setting the location to
`ToolbarItemLocation::Hidden` in the states where it shouldn't show.
It also adds a new a `toolbar.agent_review` setting to hide the agent
review buttons altogether. However, if the other toolbar elements are
hidden and the file isn't under review, the editor toolbar will still be
hidden. So you only need to set this to `false` if you don't want them
to show up even under agent review.
Release Notes:
- N/A
Agus Zubiaga
created
c41a0c0
agent: Add the `single_file_review` setting to the UI (#29859)
Click to expand commit body
Release Notes:
- agent: Add the `single_file_review` setting to the UI
Danilo Leal
created
081edd6
feature_flags: Add a constant to control Agent-related feature flags (#29853)
Click to expand commit body
This PR adds a singular constant that controls the Agent-related feature
flags.
This way we can tweak this one value when we're ready to build the final
build for the launch.
Release Notes:
- N/A
Marshall Bowers
created
1450f04
ui: Implement `ParentElement` for `Banner` (#29834)
Click to expand commit body
This PR implements the `ParentElement` trait for the `Banner` component
so that it can use the real children APIs instead of a bespoke one.
Release Notes:
- N/A
Marshall Bowers
created
2c60192
agent: Show a notice when reaching consecutive tool use limits (#29833)
Click to expand commit body
This PR adds a notice when reaching consecutive tool use limits when
using normal mode.
Here's an example with the limit artificially lowered to 2 consecutive
tool uses:
https://github.com/user-attachments/assets/32da8d38-67de-4d6b-8f24-754d2518e5d4
Release Notes:
- agent: Added a notice when reaching consecutive tool use limits when
using a model in normal mode.
Marshall Bowers
created
0158a2f
agent: Add several UX improvements (#29828)
Click to expand commit body
Still a work in progress.
Release Notes:
- N/A
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Cole Miller <m@cole-miller.net>
Co-authored-by: Nathan Sobo <1789+nathansobo@users.noreply.github.com>
Co-authored-by: Cole Miller <53574922+cole-miller@users.noreply.github.com>
Danilo Leal
,
Bennet Bo Fenner
,
Nathan Sobo
,
Cole Miller
,
Nathan Sobo
, and
Cole Miller
created
bbb364d
Add support for queuing status updates in cloud language model provider (#29818)
Click to expand commit body
This sets us up to display queue position information to the user, once
our language model backend is updated to support request queuing.
The JSON returned by the LLM backend will need to look like this:
```json
{"queue": {"status": "queued", "position": 1}}
{"queue": {"status": "started"}}
{"event": {"THE_UPSTREAM_MODEL_PROVIDER_EVENT": "..."}}
```
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Max Brunsfeld
and
Marshall Bowers
created
5399aa3
agent: Refresh the profile selector and modal design (#29816)
Click to expand commit body
- [x] Separate MCP servers from tools in the profile customization modal
view
- [x] Group MCP tools in the MCP picker and add a heading
- [x] Separate bult-in profiles from custom ones in the dropdown
selector
- [x] Separate bult-in profiles from custom ones in the modal
- [ ] Enable looping through items via keybinding without opening the
dropdown (will be done on a follow-up PR)
- [ ] Stretch: Focus on the currently active item upon opening the
dropdown (will be done on a follow-up PR)
Release Notes:
- N/A
---------
Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
Danilo Leal
,
Bennet Bo Fenner
,
Bennet Bo Fenner
, and
Bennet Bo Fenner
created
c71e414
agent: Fix default cursor position on reviewing editors (#29825)
Click to expand commit body
The cursor wasn't always placed at the first hunk for review editors.
Release Notes:
- N/A