Commit log

4dcf10f Bump to 0.182.8 for @bennetbo

Zed Bot created

42015f1 gemini: Fix "invalid argument" error when request contains no tools (cherry-pick #28747) (#28750)

Click to expand commit body
Cherry-picked gemini: Fix "invalid argument" error when request contains
no tools (#28747)

When we do not have any tools, we want to set the `tools` field to
`None`

Release Notes:

- Fixed an issue where Gemini requests would sometimes return a Bad
Request ("Invalid argument...")

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

gcp-cherry-pick-bot[bot] and Bennet Bo Fenner created

c4265f4 agent: Add some design tweaks (#28726)

Click to expand commit body
Fine-tuning some areas of the Agent Panel design.

Release Notes:

- N/A

Danilo Leal created

abe5588 agent: Apply soft-wrap when message editor is expanded (#28716)

Click to expand commit body
Release Notes:

- N/A

Bennet Bo Fenner created

8adbe5a zed 0.182.7

Peter Tripp created

68bc185 assistant_tools: Fix code_action and rename schemas for Gemini (#28634)

Click to expand commit body
Closes #28475

Updates `rename` and `code_action` `input_schema` methods to use
`json_schema_for<T>()` which transforms standard JSONSchema into the
subset required by Gemini.
Also makes `input_schema` implementations consistent.
Tested tools against Gemini 2.5 Pro Preview, Zed Claude 3.7 Sonnet
Thinking, o3-mini

Release Notes:

- Agent Beta: Fixed error 400 `INVALID_ARGUMENT` when using Gemini with
`code_actions` or `rename` tools enabled.

duvetfall created

252f48c Add support for OpenAI GPT-4.1 models (#28708)

Click to expand commit body
Release Notes:

- Add support for OpenAI GPT-4.1 via Copilot Chat and OpenAI API

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>

Umesh Yadav , Danilo Leal , and Bennet Bo Fenner created

9514fba copilot_chat: Add Gemini 2.5 Pro support to Copilot Chat (#28660)

Richard Hao created

70ff2dd agent: Check built-in tools schema compatibility in tests (#28691)

Click to expand commit body
This ensures that we respect the `LanguageModelToolSchemaFormat` value
when we call `tool.input_schema`. This prevents us from breaking Gemini
compatibility when adding/changing built-in tools. See #28634.

The test suite will now fail with an error message like this, when
providing an incompatible input_schema:

```
thread 'tests::test_tool_schema_compatibility' panicked at crates/assistant_tools/src/assistant_tools.rs:108:17:
Tool schema for `code_actions` is not compatible with `language_model::LanguageModelToolSchemaFormat::JsonSchemaSubset` (Gemini Models).
Are you using `schema::json_schema_for<T>(format)` to generate the schema?
```


Release Notes:

- N/A

Bennet Bo Fenner created

2093e21 agent: Add scrollbar to the history view (#28690)

Click to expand commit body
Ended up not making this one visible only upon hover or something
because the layout alignment would be weird given the list item spans
the full width. So, experimenting with this design here:

<img
src="https://github.com/user-attachments/assets/62bf661e-1aae-4644-8a89-49cefb3e8130"
width="700" />

Release Notes:

- agent: Add scrollbar to the history view.

Danilo Leal created

b183df1 agent: Handle context window exceeded errors from Anthropic (#28688)

Click to expand commit body
![CleanShot 2025-04-14 at 11 15
38@2x](https://github.com/user-attachments/assets/9e803ffb-74fd-486b-bebc-2155a407a9fa)

Release Notes:

- agent: Handle context window exceeded errors from Anthropic

Agus Zubiaga created

a9a0ff2 agent: Clean up thread auto-capturing (#28550)

Click to expand commit body
This PR cleans up the thread auto-capturing added in #28271.

- Removed usage of `unsafe`
- Fixed feature flag check
- We were incorrectly not respecting the feature flag in release builds
- Made sure the telemetry event was being run on the background executor

Release Notes:

- N/A

Marshall Bowers created

e234399 agent: Auto-capture telemetry feature flag (#28271)

Click to expand commit body
Release Notes:

- N/A

Thomas Mickley-Doyle created

73d6e2d agent: Move focus to the message editor after going back (#28686)

Click to expand commit body
When you hit the back button in the agent panel toolbar, we were
returning the focus to the buffer instead to the panel's message editor,
which is likely where you want to be after quickly checking history or
settings.

Release Notes:

- N/A

Danilo Leal created

e8930c5 agent: Fix expand message editor while not focused (#28650)

Click to expand commit body
Allow expanding the message editor while the agent panel is not focused,
right now there is no effect when you use the button from another focus

Release Notes:

- N/A

5brian created

c4e9bf8 zed 0.182.6

Joseph T. Lyons created

d71ef64 agent: Display keybindings for "Reject All" and "Keep All" (#28620)

Click to expand commit body
<img
src="https://github.com/user-attachments/assets/2cdc5121-dd7b-4f46-8d43-88d5152c77ea"
width="550" />


Release Notes:

- N/A

Danilo Leal created

b71c31a agent: Increase message editor height (#28618)

Click to expand commit body
It was too tiny, felt like we could use more breathing room.

Release Notes:

- N/A

Danilo Leal created

ddf0f4b agent: Adjust MCP section in the settings view (#28615)

Click to expand commit body
Mentioning "MCP" more prominently, adding tool descriptions in the icon
button tooltip, and other UI adjustments.

<img
src="https://github.com/user-attachments/assets/e021b3be-99b8-454c-b5fd-0221a7947a35"
width="600" />

Release Notes:

- N/A

Danilo Leal created

93b05d3 agent: Add "Install MCPs" to panel menu (#28616)

Click to expand commit body
Also took the opportunity to rename the "Continue in New Thread" item to
a potentially clearer name.

<img
src="https://github.com/user-attachments/assets/024de07d-f215-4c41-8fbe-652a216b61d9"
width="300"/>

Release Notes:

- N/A

Danilo Leal created

a9e3ce1 agent: Cleanup `message_editor` (#28614)

Click to expand commit body
This PR splits up the rendering of the message editor into multiple
functions. Previously we had a single `h_flex()...` expression which
spanned across 550 lines, `cargo fmt` stopped working.

Release Notes:

- N/A

Bennet Bo Fenner created

895b81d agent: Only show recommended models that are actually configured (#28613)

Click to expand commit body
Release Notes:

- N/A

Bennet Bo Fenner created

115a462 agent: Remove unused code (#28552)

Click to expand commit body
This code was used before we had a proper completion menu for
at-mentions

Release Notes:

- N/A

Bennet Bo Fenner created

5c2f88e agent: Refine language model selector (#28597)

Click to expand commit body
Release Notes:

- agent: Show recommended models in the agent model selector and display
the provider in the model selector's trigger.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>

Bennet Bo Fenner , Danilo Leal , and Danilo Leal created

d981015 agent: Register tracked buffers with language servers (#28610)

Click to expand commit body
Release Notes:

- agent: Start language servers when accessing files via tools

Co-authored-by: Michael <michael@zed.dev>

Agus Zubiaga and Michael created

ad92f31 zed 0.182.5

Joseph T. Lyons created

0aa2e36 Backport git store bugfix to v0.182.x (#28593)

Click to expand commit body
Closes #ISSUE

Release Notes:

- Fixed a bug that could cause the staged status of entries in the git
panel to be stale.

Cole Miller created

47b6eb1 Try to weak-link ScreenCaptureKit always (cherry-pick #28585) (#28591)

Click to expand commit body
Cherry-picked Try to weak-link ScreenCaptureKit always (#28585)

Release Notes:

- Fixed a crash on macOS (Catalina, Big Sur). Users may need to manually
redownload Zed if they updated to a broken release.
([#28585](https://github.com/zed-industries/zed/pull/28585))

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

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

bb151eb Fix a panic in the git store (cherry-pick #28590) (#28595)

Click to expand commit body
Cherry-picked Fix a panic in the git store (#28590)

Closes #ISSUE

Release Notes:

- Fixed a panic that could occur when git statuses were updated.

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

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

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