This PR fixes usage of non-streaming Copilot Chat models.
Closes https://github.com/zed-industries/zed/issues/28528.
Release Notes:
- Fixed an issue with using non-streaming Copilot Chat models (e.g., o1,
o3-mini).
Marshall Bowers
created
90f30b5
gpui: Allow DisplayId to be compared to u32 (#27895)
Click to expand commit body
allow DisplayId to be compared to u32. This is handy since gpui doesn't
provide a method to detect current active display of the user. So when
using mouse location to get the active display we need to then compare
that display u32 to DisplayID
Release Notes:
- added From to allow u32 comparison
Optimize away a multiplication during in the `coalesce` function. Our
goal is to check whether the sign of two floats is the same.
Instead of multiplying each `.signum()` and checking that the result is
positive, we can simply check that the signum's are the same. This
removes a float multiplication.
```rust
a.signum() * b.signum() >= 0.0
```
turns into
```rust
a.signum() == b.signum()
```
Release Notes:
- Fix documentation for `Pixels::signum`
tidely
created
804066a
Do not query for LSP tasks buffers that do not belong to the position given (#28536)
Click to expand commit body
Follow-up of https://github.com/zed-industries/zed/pull/28359
Release Notes:
- Fixed a panic when LSP tasks are queried in certain multi buffer
excerpts
Kirill Bulatov
created
4a35646
rust: Enable required features when executing `main` functions in tasks (#27312)
Click to expand commit body
Closes #13344
This PR causes required features to be read from `cargo metadata` and
enabled when executing an example/bin in Rust.
Release Notes:
- Added enabling required features when executing a Rust example or bin
through a task
Niklas Eicker
created
0921762
install_cli: Show feedback when installing CLI from welcome screen (#28532)
Click to expand commit body
Closes #28408
Release Notes:
- Fixed no feedback provided when installing CLI from welcome page.
Smit Barmase
created
46b1df2
agent: Auto-capture telemetry feature flag (#28271)
Closes #26699
Release Notes:
- Fixed a panic when enabling or disabling a VPN on macOS
Conrad Irwin
created
dad33f7
Fix code action selection bug while using vim visual mode (#27817)
Click to expand commit body
## Problem
Code actions do not handle vim line mode correctly. See this video where
`Extract to function` doesn't extract both selected lines:
https://github.com/user-attachments/assets/8fa0fb28-0403-44f6-9e55-a59b6713dffd
## Solution
Use `selections.newest_adjusted` instead of `selections.newest_anchor`
so code actions consider the full selection.
Correct behavior:
https://github.com/user-attachments/assets/174d5a34-3873-4d20-b67d-103edec4cdbe
---
Release Notes:
- vim: Fixed code actions in visual line mode
Austin Merrick
created
64241f7
editor: Fix extra characters were being written at the end of an HTML tag (#28529)
Click to expand commit body
Closes #25586
It is caused due to assumption all character being typed are word
characters and linked edit ranges can be used even when first non-word
character is typed. Because next character passes all the criteria like
being word character, anchor matching the previous range before typing
started, wrong edit take place.
This PR fixes it by clearing linked edit ranges when non-word character
is typed.
Before:
`<div cx^></div>cx` when typing fast.
After:
`<div cx^></div>` always.
Release Notes:
- Fixed a case where extra characters were being written at the end of
an HTML tag.
Smit Barmase
created
fbbc23b
editor: Restore selections to positions after last edit (#28527)
Click to expand commit body
Closes #22692
Makes it so when undoing a format operation, the selections are set to
where they were at the last edit.
Release Notes:
- Made it so the cursor position is reset to where it was after the last
edit when undoing a format operation. This will only result in different
behavior when you make an edit, scroll away, initiate formatting (either
by saving or manually) and then undo the format.
---------
Co-authored-by: Zed AI <ai@zed.dev>
This regressed in #27568, oops.
Release Notes:
- Fixed a bug causing conflicted files in the git panel to jump to the
"Tracked" section as soon as they were staged.
Release Notes:
- agent: Replace `bash` tool with `terminal` tool which uses the current
shell
---------
Co-authored-by: Bennet <bennet@zed.dev>
Co-authored-by: Antonio <antonio@zed.dev>
Agus Zubiaga
,
Bennet
, and
Antonio
created
8ac378b
Lay the groundwork for a Rust-based eval (#28488)
Click to expand commit body
Also, we moved the logic for driving the agentic loop into `Thread` so
that we don't have to re-implement it.
Release Notes:
- N/A
---------
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra
and
Nathan Sobo
created
5576029
agent: Optimize render_markdown_block function (#28487)
Click to expand commit body
Co-Authored-by: Agus <agus@zed.dev>
Closes #ISSUE
Release Notes:
- N/A
Co-authored-by: Agus <agus@zed.dev>
Bennet Bo Fenner
and
Agus
created
9dfb907
Revert "Add reminder message about system prompt" (#28482)
b46ab36
agent: Add button to open thread as markdown (#28481)
Click to expand commit body
<img
src="https://github.com/user-attachments/assets/92ca8f64-a949-4cc1-a657-3978a2c65839"
width="600"/>
Release Notes:
- agent: The action to open the current active thread in Markdown is now
exposed in the UI.
Danilo Leal
created
12212dc
agent: Prevent sending whitespace only messages (#28409)
Click to expand commit body
Prevent this from happening when sending a prompt with only spaces and
newlines:

Release Notes:
- agent: Prevent from sending messages containing only white space.
5brian
created
324e465
Reset modifiers when the window active state changes (#28348)
Click to expand commit body
Closes #23449
Release Notes:
- Fixed a bug causing shift to get stuck down when the window focus
changes
---------
Co-authored-by: Dino <dinojoaocosta@gmail.com>
Fix silly typo in symbolicate script
Release Notes:
- N/A
Conrad Irwin
created
2f4b481
agent: Collapse code blocks in the active thread (#28467)
Click to expand commit body
Release Notes:
- N/A
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Danilo Leal
and
Bennet Bo Fenner
created
ed7c55a
vim: Reset search range after substitute (#28403)
Click to expand commit body
Update the `Vim::replace_command` method so as to reset the range in the
`BufferSearchBar` after running the replacement in order to fix the
issue where the number of matches in the search bar would be incorrect
after the replacement was done, as it would only take into consideration
the range in which the replacement happened, instead of the whole
buffer.
In order to get this working a new
`BufferSearchBar::clear_search_within_ranges` method is introduced in
these changes.
Release Notes:
- Fixed the number of matches displayed in the search bar after running
vim's substitute command.
Dino
created
6db4ab3
Add code action tool and rename tool (#28453)
Click to expand commit body
Having a separate rename tool seems to make the agent more likely to use
it compared to having it be part of the code actions tool.
Release Notes:
- Added code action tool and rename tool.
Richard Feldman
created
0e72a7e
Update Rust crate smallvec to v1.15.0 (#28469)
Click to expand commit body
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [smallvec](https://redirect.github.com/servo/rust-smallvec) |
workspace.dependencies | minor | `1.14.0` -> `1.15.0` |
---
### Release Notes
<details>
<summary>servo/rust-smallvec (smallvec)</summary>
###
[`v1.15.0`](https://redirect.github.com/servo/rust-smallvec/releases/tag/v1.15.0)
[Compare
Source](https://redirect.github.com/servo/rust-smallvec/compare/v1.14.0...v1.15.0)
#### What's Changed
- Fix typos by
[@​waywardmonkeys](https://redirect.github.com/waywardmonkeys) in
[https://github.com/servo/rust-smallvec/pull/373](https://redirect.github.com/servo/rust-smallvec/pull/373)
- Implement bincode2 encode/decode support for smallvec v1 by
[@​markbt](https://redirect.github.com/markbt) in
[https://github.com/servo/rust-smallvec/pull/375](https://redirect.github.com/servo/rust-smallvec/pull/375)
#### New Contributors
- [@​markbt](https://redirect.github.com/markbt) made their first
contribution in
[https://github.com/servo/rust-smallvec/pull/375](https://redirect.github.com/servo/rust-smallvec/pull/375)
**Full Changelog**:
https://github.com/servo/rust-smallvec/compare/v1.14.0...v1.15.0
</details>
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate[bot]
and
renovate[bot]
created
3dc3ab0
Update Rust crate prometheus to 0.14 (#28468)
Click to expand commit body
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [prometheus](https://redirect.github.com/tikv/rust-prometheus) |
dependencies | minor | `0.13` -> `0.14` |
---
### Release Notes
<details>
<summary>tikv/rust-prometheus (prometheus)</summary>
###
[`v0.14.0`](https://redirect.github.com/tikv/rust-prometheus/blob/HEAD/CHANGELOG.md#0140)
[Compare
Source](https://redirect.github.com/tikv/rust-prometheus/compare/v0.13.4...v0.14.0)
- API change: Use `AsRef<str>` for owned label values
([#​537](https://redirect.github.com/tikv/rust-prometheus/issues/537))
- Improvement: Hashing improvements
([#​532](https://redirect.github.com/tikv/rust-prometheus/issues/532))
- Dependency upgrade: Update `hyper` to 1.6
([#​524](https://redirect.github.com/tikv/rust-prometheus/issues/524))
- Dependency upgrade: Update `procfs` to 0.17
([#​543](https://redirect.github.com/tikv/rust-prometheus/issues/543))
- Dependency upgrade: Update `protobuf` to 3.7.2 for RUSTSEC-2024-0437
([#​541](https://redirect.github.com/tikv/rust-prometheus/issues/541))
- Dependency upgrade: Update `thiserror` to 2.0
([#​534](https://redirect.github.com/tikv/rust-prometheus/issues/534))
- Internal change: Fix LSP and Clippy warnings
([#​540](https://redirect.github.com/tikv/rust-prometheus/issues/540))
- Internal change: Bump MSRV to 1.81
([#​539](https://redirect.github.com/tikv/rust-prometheus/issues/539))
- Documentation: Fix `register_histogram_vec_with_registry` docstring
([#​528](https://redirect.github.com/tikv/rust-prometheus/issues/528))
- Documentation: Fix typos in static-metric docstrings
([#​479](https://redirect.github.com/tikv/rust-prometheus/issues/479))
- Documentation: Add missing `protobuf` feature to README list
([#​531](https://redirect.github.com/tikv/rust-prometheus/issues/531))
</details>
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate[bot]
and
renovate[bot]
created
ed63f21
Remove "use_key_equivalents" from linux keymap as it does nothing (#28464)
23c3f5f
Update Rust crate indexmap to v2.9.0 (#28455)
Click to expand commit body
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [indexmap](https://redirect.github.com/indexmap-rs/indexmap) |
workspace.dependencies | minor | `2.8.0` -> `2.9.0` |
---
### Release Notes
<details>
<summary>indexmap-rs/indexmap (indexmap)</summary>
###
[`v2.9.0`](https://redirect.github.com/indexmap-rs/indexmap/blob/HEAD/RELEASES.md#290-2025-04-04)
[Compare
Source](https://redirect.github.com/indexmap-rs/indexmap/compare/2.8.0...2.9.0)
- Added a `get_disjoint_mut` method to `IndexMap`, matching Rust 1.86's
`HashMap` method.
- Added a `get_disjoint_indices_mut` method to `IndexMap` and
`map::Slice`,
matching Rust 1.86's `get_disjoint_mut` method on slices.
- Deprecated the `borsh` feature in favor of their own `indexmap`
feature,
solving a cyclic dependency that occured via `borsh-derive`.
</details>
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate[bot]
and
renovate[bot]
created
b3be294
lsp_store: Preserve environment variables from ExtensionLspAdapter (#28173)
Click to expand commit body
## Description
In https://github.com/zed-industries/zed/pull/27213 the new feature for
setting env variables for LSPs was added but env vars passed from an
instance of `ExtensionLspAdapter` are lost now. This means if an
extension returns any env variable like this:
```rust
zed::Command {
command: some_command,
args: some_args,
env: vec![("A", "value_for_a")],
}
```
The env variable `A` will never be used by `LspStore`. This commit
preserves env variables passed from an instance of
`ExtensionLspAdapter`.
After this change overwriting of env variables
happens in the following order:
```plaintext
shell <- variables from an extension <- variables from settings
```
## How to reproduce
Allow any extension to return a `zed::Command` with environment
variables to Zed. You can use [this
branch](https://github.com/zed-extensions/ruby/pull/48) for the Ruby
extension:
1. Check out the branch and install the dev version of the Ruby
extension.
2. Ensure you have the `solargraph` LSP configured and enabled for the
Ruby extension. This LSP is enabled by default in Zed and in the Ruby
extension.
3. Make sure you donβt have `solargraph` installed in your user gemset.
4. Open any Ruby project, such as [this
one](https://github.com/vitallium/stimulus-lsp-error-zed).
5. Open a Ruby file and wait for the error message about failing to
start `solargraph`. It should look like this or something similar:
```
[2025-04-05T23:17:26+02:00 ERROR project::lsp_store] server stderr: "/Users/vslobodin/.local/share/mise/installs/ruby/3.4.1/lib/ruby/site_ruby/3.4.0/rubygems.rb:262:in 'Gem.find_spec_for_exe': can't find gem solargraph (>= 0.a) with executable solargraph (Gem::GemNotFoundException)\n\tfrom /Users/vslobodin/.local/share/mise/installs/ruby/3.4.1/lib/ruby/site_ruby/3.4.0/rubygems.rb:281:in 'Gem.activate_bin_path'\n"
```
This error occurs because the Ruby extension passes the `GEM_PATH`
environment variable to specify the location of Ruby gems. Without it,
Zed tries to spawn the `solargraph` gem in the user's gemset scope. Ruby
fails to start it because the `solargraph` gem is not installed in the
user gemset but in the extension directory. By setting the `GEM_PATH`
environment variable, Ruby searches additional locations to start the
`solargraph` LSP.
I hope I've described it correctly. Please let me know if you need more
information. Thanks!
Release Notes:
- Fixed the issue where environment variables from `ExtensionLspAdapter`
were lost
Vitaly Slobodin
created
af5318d
Update default vim substitute command behavior and add support for 'g' flag (#28138)
Click to expand commit body
This Pull Request updates the default behavior of the substitute (`s`)
command in vim mode to only replace the next match by default, instead
of all, and replace all matches only when the `g` flag is provided,
making it more similar to NeoVim's behavior.
In order to achieve this, the following changes were introduced:
- Update `BufferSearchBar::replace_next` to be a public method, so it
can be called from `Vim::replace_command` .
- Update the `Replacement::parse` to set the `should_replace_all` field
to `false` by default, and only set it to `true` if the `'g'` flag is
present in the query.
- Add support for when the `Replacement.should_replace_all` is set to
`false` in `Vim::replace_command`, so as to have it only replace the
next occurrence instead of all occurrences in the line.
- Introduce `BufferSearchBar::select_first_match` so as to activate the
first match on the line under the cursor.
Closes #24450
Release Notes:
- Improved vim's substitute command so as to only replace the first
match by default, and replace all matches if the `'g'` flag is provided
---------
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
I wrote the test wrongly in
https://github.com/zed-industries/zed/pull/28005:
It should be `$` instead of `shift-4`, so it was just yanking from the
middle of the line instead of the newline character. Fixed it and
regenerated it.
Release Notes:
- N/A
5brian
created
9ae4f4b
gpui: Use BoolExt trait in more places (#28052)
Click to expand commit body
Use the `BoolExt` trait which converts rust booleans to their objc
equivalent when applicable.
Release Notes:
- N/A
tidely
created
915a1cb
Update actions/dependency-review-action digest to 67d4f4b (#28450)
Click to expand commit body
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
|
[actions/dependency-review-action](https://redirect.github.com/actions/dependency-review-action)
| action | digest | `3b139cf` -> `67d4f4b` |
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate[bot]
and
renovate[bot]
created
aead0e1
Update Rust crate mimalloc to v0.1.46 (#27964)
Click to expand commit body
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [mimalloc](https://redirect.github.com/purpleprotocol/mimalloc_rust) |
dependencies | patch | `0.1.45` -> `0.1.46` |
---
### Release Notes
<details>
<summary>purpleprotocol/mimalloc_rust (mimalloc)</summary>
###
[`v0.1.46`](https://redirect.github.com/purpleprotocol/mimalloc_rust/releases/tag/v0.1.46):
Version 0.1.46
[Compare
Source](https://redirect.github.com/purpleprotocol/mimalloc_rust/compare/v0.1.45...v0.1.46)
##### Changes
- Fixed musl builds.
</details>
---
### Configuration
π **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
Release Notes:
- N/A
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMjcuMyIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate[bot]
and
renovate[bot]
created
2752c08
debugger: Add run to cursor and evaluate selected text actions (#28405)
Click to expand commit body
## Summary
### Actions
This PR implements actions that allow a user to "run to cursor" and
"evaluate selected text" while there's an active debug session and
exposes the functionality to the UI as well.
- Run to cursor: Can be accessed by right clicking on the gutter
- Evaluate selected text: Can be accessed by selecting text then right
clicking in the editor
### Bug fixes
I also fixed these bugs as well
- Panic when using debugger: Stop action
- Debugger actions command palette filter not working properly in all
cases
- We stopped displaying the correct label in the session's context menu
when a session was terminated
Release Notes:
- N/A
---------
Co-authored-by: Max Brunsfeld <max@zed.dev>
Co-authored-by: Remco Smits <djsmits12@gmail.com>
Anthony Eid
,
Max Brunsfeld
, and
Remco Smits
created
7801432
agent: Fuzzy match on paths and symbols when typing `@` (#28357)
Click to expand commit body
Release Notes:
- agent: Improve fuzzy matching when using @-mentions
Bennet Bo Fenner
created
088d7c1
Add sublime keybinding for `git::Restore` (#28444)
64de6bd
Don't scroll the editor on select all matches (#28435)
Click to expand commit body
Part of https://github.com/zed-industries/zed/issues/9309
Release Notes:
- Improved scroll behavior of `editor: select all matches`
---------
Co-authored-by: Kirill Bulatov <kirill@zed.dev>
neunato
and
Kirill Bulatov
created
6aa0248
docs: Update outdated keybind for opening extensions page (#28443)
Click to expand commit body
This PR updates an outdated keybind for opening the extensions page (the
shown keybind opens the project panel instead) on the `Configuring
Languages` page.
It also updates a nearby keybind to use the preprocessor syntax instead.
Release Notes:
- N/A
Finn Evers
created
342134f
agent: Add reactions at the response level (#27958)
Click to expand commit body
Release Notes:
- Added the user reaction (π or π) to each agent response.
- π will trigger a comment box linked to the response
---------
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Agus Zubiaga <hi@aguz.me>
Thomas Mickley-Doyle
,
Danilo Leal
, and
Agus Zubiaga
created
b47aa33
Remove actions `UnfoldAt` and `FoldAt` (#28442)
Click to expand commit body
`UnfoldAt` and `FoldAt` are used internally, and don't really work
when users try to trigger them, they do however appear in the command
palette and keybindings, misleading users to try using them.
Release Notes:
- Remove unused actions `UnfoldAt` and `FoldAt` (prefer `Fold` and
`Unfold`).