Commit log

1e2b986 zed 0.182.4

Joseph T. Lyons created

42c6cce agent: Fix bug where wrong crease for @mention would be displayed (#28558)

Click to expand commit body
Release Notes:

- agent: Fix a bug where an inserted @mention did not show up as the one
that was selected

Bennet Bo Fenner created

70182ba agent: Fix "new text thread" action name (#28555)

Click to expand commit body
Moving from "NewPromptEditor" to "NewTextThread". We recently re-named
that and this was missing.

Release Notes:

- N/A

Danilo Leal created

aba9875 agent: Make the message editor expandable (#28420)

Click to expand commit body
This PR allows expanding the message editor textarea to fit almost the
total height of the Agent Panel. Stylistically, I'm also changing the
font family we use in the textarea to use the buffer font; want to
experiment with this for a bit.

Release Notes:

- agent: The Agent Panel textarea can now be expanded to fill almost the
total height of the panel.

---------

Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>

Danilo Leal , Bennet Bo Fenner , and Bennet Bo Fenner created

243b046 editor: Refactor `EditorMode::Full` (#28546)

Click to expand commit body
This PR lightly refactors the `EditorMode::Full` exposing two new
methods: `is_full` and `set_mode`.

Motivation is to expose fields that modify the behavior when the editor
is in `Full` mode. By using is `mode.is_full()` instead of
`EditorMode::Full` we can introduce new fields without breaking other
places in the code.

Release Notes:

- N/A

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>

Danilo Leal and Bennet Bo Fenner created

47edd4a Bump to 0.182.3 for @maxdeviant

Zed Bot created

d487d46 Actually run the eval and fix a hang when retrieving outline (#28547)

Click to expand commit body
Release Notes:

- Fixed a regression that caused the agent to hang sometimes.

---------

Co-authored-by: Thomas Mickley-Doyle <tmickleydoyle@gmail.com>
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Michael Sloan <mgsloan@gmail.com>

Antonio Scandurra , Thomas Mickley-Doyle , Nathan Sobo , and Michael Sloan created

d1dcbba markdown: Track code block metadata in parser (#28543)

Click to expand commit body
This allows us to not scan the codeblock content for newlines on every
frame in `active_thread`

Release Notes:

- N/A

Bennet Bo Fenner created

3430d43 Change zed.dev's default model to Claude 3.7 Sonnet (#28541)

Click to expand commit body
From Claude 3.5 Sonnet to **Claude 3.7 Sonnet**.

Release Notes:

- Change the default model of Zed's hosted LLM service to Claude 3.7
Sonnet.

Danilo Leal created

16395bd language_models: Fix non-streaming Copilot Chat models (#28537)

Click to expand commit body
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

4261201 Add --user-data-dir CLI flag and propose renaming support_dir to data_dir (#26886)

Click to expand commit body
This PR introduces support for a `--user-data-dir` CLI flag to override
Zed's data directory and proposes renaming `support_dir` to `data_dir`
for better cross-platform clarity. It builds on the discussion in #25349
about custom data directories, aiming to provide a flexible
cross-platform solution.

### Changes

The PR is split into two commits:
1. **[feat(cli): add --user-data-dir to override data
directory](https://github.com/zed-industries/zed/pull/26886/commits/28e8889105847401e783d1739722d0998459fe5a)**
2. **[refactor(paths): rename support_dir to data_dir for cross-platform
clarity](https://github.com/zed-industries/zed/pull/26886/commits/affd2fc606b39af1b25432a688a9006229a8fc3a)**


### Context
Inspired by the need for custom data directories discussed in #25349,
this PR provides an immediate implementation in the first commit, while
the second commit suggests a naming improvement for broader appeal.
@mikayla-maki, I’d appreciate your feedback, especially on the rename
proposal, given your involvement in the original discussion!

### Testing
- `cargo build `
- `./target/debug/zed --user-data-dir ~/custom-data-dir`

Release Notes:
- Added --user-data-dir CLI flag

---------

Signed-off-by: Marko Kungla <marko.kungla@gmail.com>

Marko Kungla created

ff12554 Do not query for LSP tasks buffers that do not belong to the position given (cherry-pick #28536) (#28538)

Click to expand commit body
Cherry-picked Do not query for LSP tasks buffers that do not belong to
the position given (#28536)

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

Co-authored-by: Kirill Bulatov <kirill@zed.dev>

gcp-cherry-pick-bot[bot] and Kirill Bulatov created

aae71f5 Bump to 0.182.2 for @ConradIrwin

Zed Bot created

793da80 Bump rustls (cherry-pick #28531) (#28535)

Click to expand commit body
Cherry-picked Bump rustls (#28531)

Closes #26699

Release Notes:

- Fixed a panic when enabling or disabling a VPN on macOS

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>

gcp-cherry-pick-bot[bot] and Conrad Irwin created

4e82a27 Add progress bar component (#28518)

Click to expand commit body
- Adds the progress bar component

Release Notes:

- N/A

Nate Butler created

69335b3 agent: Add selected tool names to agent panel telemetry (#28247)

Click to expand commit body
Release Notes:

- N/A

Thomas Mickley-Doyle created

0b13333 Fix merge conflicts jumping (cherry-pick #28508) (#28512)

Click to expand commit body
Cherry-picked Fix merge conflicts jumping (#28508)

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.

Co-authored-by: Cole Miller <cole@zed.dev>

gcp-cherry-pick-bot[bot] and Cole Miller created

f6ef866 Downgrade environment-related logging (cherry-pick #28509) (#28514)

Click to expand commit body
Cherry-picked Downgrade environment-related logging (#28509)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...

Co-authored-by: Cole Miller <cole@zed.dev>

gcp-cherry-pick-bot[bot] and Cole Miller created

d5cc01a zed 0.182.1

Joseph T. Lyons created

08fecda agent: Use current shell (#28470)

Click to expand commit body
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

538b88c 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

701e033 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

9ed28c5 Revert "Add reminder message about system prompt" (#28482)

Click to expand commit body
This breaks the agentic loop.

Antonio Scandurra created

23b7a98 agent: Fix toolbar spacing (#28485)

Click to expand commit body
Release Notes:

- N/A

Danilo Leal created

fe075ac 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

2fb6ec2 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:


![image](https://github.com/user-attachments/assets/b275f4c5-c013-4695-8fb4-e3ad75d41750)

Release Notes:

- agent: Prevent from sending messages containing only white space.

5brian created

cef835c 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

0623a6a 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

a7722c9 Fix directory context paths (#28459)

Click to expand commit body
Release Notes:

- N/A

Michael Sloan created

782b35a 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

612e30e 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

8794d54 Reapply "Use Project instead of Workspace in ContextStore (#28402)" (#28441)

Click to expand commit body
Motivation for this change is to use `ContextStore` in headless
assistant, which requires it to not depend on UI entities like
`Workspace`.

This reapplies a change that was revert was in #28428, and fixes the panic.

Release Notes:

- N/A

Michael Sloan created

ec1ae32 Make regex search tool optionally case-sensitive (#28427)

Click to expand commit body
Release Notes:

- The agent panel's regex search tool is now optionally case-sensitive.

Richard Feldman created

17a271d Revert to fix panic in inline assistant (#28428)

Click to expand commit body
This reverts commit f12a554f86fa1e2b9b937a9dd103aa7c9a019db9, which
introduced a panic in inline assistant (cc @mgsloan) - I'm not sure what
the motivation was for that change, but I figure we can revert to fix
the inline assistant now and deal with that later. 😄

Panic was:

> Thread "main" panicked with "cannot read workspace::Workspace while it
is already being updated" at
/Users/rtfeldman/code/zed/crates/gpui/src/app/entity_map.rs:139:32


Release Notes:

- N/A

Richard Feldman created

3d9dbfe Fix bash tool output (#28391)

Agus Zubiaga created

b9aa296 Add reminder message about system prompt (#28344)

Click to expand commit body
Trying out sending the model a reminder message about code blocks in the
system prompt. If this seems to work well, we can include more specific
reminder messages, e.g. tool-specific ones.

Release Notes:

- N/A

Richard Feldman created

305f113 v0.182.x preview

Joseph T. Lyons created

31034f8 Add toggle case command (#28415)

Click to expand commit body
A small addition for those coming from JetBrain's IDEs. A behavioral
detail: when any upper case character is detected, the command defaults
to toggling to lower case.

> Note that when you apply the toggle case action to the CamelCase name
format, IntelliJ IDEA converts the name to the lower case.


https://www.jetbrains.com/help/idea/working-with-source-code.html#edit_code_fragments

Release Notes:

- Added an `editor: toggle case` command. Use `cmd-shift-u` for macOS
and `ctrl-shift-u` for Linux, when using the `JetBrains` keymap.

Joseph T. Lyons created

c441b65 debugger: Add support for CodeLLDB (#28376)

Click to expand commit body
Closes #ISSUE

Release Notes:

- N/A

Piotr Osiewicz created

61ddcd5 chore: Add workspace-hack dependency to agent_rules (#28412)

Click to expand commit body
Closes #ISSUE

Release Notes:

- N/A

Piotr Osiewicz created

f12a554 Use `Project` instead of `Workspace` in `ContextStore` (#28402)

Click to expand commit body
Release Notes:

- N/A

Michael Sloan created

9dae4d8 Remove references to SSH remoting beta (#28399)

Click to expand commit body
Release Notes:

- N/A

Cole Miller created

f0b7f35 Clean up environment loading a bit (#28356)

Click to expand commit body
Closes #ISSUE

Release Notes:

- N/A

Cole Miller created

b687a5e git: Always reload current branch after pushing (#28327)

Click to expand commit body
Closes #27347 

Release Notes:

- Fixed a bug causing the git panel to not update after pushing to a
remote

Cole Miller created

e66a24e format: Re-implement support for formatting with code actions that contain commands (#28392)

Click to expand commit body
Closes #27692
Closes #27935

Release Notes:

- Fixed a regression where code-actions used when formatting on save
were rejected if they contained commands

Ben Kunkle created

301fc7c Pull out plain rules file loading code into a new `agent_rules` crate (#28383)

Click to expand commit body
Also renames for rules file templated into the system prompt

Release Notes:

- N/A

Michael Sloan created

020a107 Add the project search as an item in the status bar (#28388)

Click to expand commit body
Was chatting with @wilhelmklopp, he pointed out that our current
UI-accessible way to access the project search was pretty obscure.


<img width="393" alt="Screenshot 2025-04-08 at 6 57 51 PM"
src="https://github.com/user-attachments/assets/636053cd-5a88-4a5e-8155-6d41d189b7db"
/>

Release Notes:

- Added a button to open the project search to the status bar

Mikayla Maki created

38d2487 agent: Polish `Generating...` animation (#28379)

Click to expand commit body
https://github.com/user-attachments/assets/9e798a50-9403-4e1c-a3df-2931e748b77d



Release Notes:

- N/A

Bennet Bo Fenner created

79c9f2b editor: Fix invalid read-only with split pane (#28012)

Click to expand commit body
Closes #28004

Release Notes:

- Fixed invalid read-only with split pane

0x2CA created

c8caae0 agent: Change the reject changes keybinding (#28381)

Click to expand commit body
This PR makes the reject keybinding, in the Review Changes mutlbuffer,
`cmd-n`.

Release Notes:

- N/A

Danilo Leal created