c7c0f56
languages: Capture escape sequences in C and C++ (#46116)
Click to expand commit body
Before:
<img width="901" height="247" alt="before"
src="https://github.com/user-attachments/assets/95467f0a-e464-44ea-a8f3-bedccf57c6a9"
/>
After:
<img width="967" height="256" alt="after"
src="https://github.com/user-attachments/assets/5eb43918-4348-42d2-9174-3fafd82919d0"
/>
Release Notes:
- Added highlighting for escape sequences for C and C++.
ozacod
created
ec41d39
git: Add basic vim motions to git file history view (#45412)
Click to expand commit body
Closes #ISSUE
Related discussion #44629
Release Notes:
- Added simple `g g`, `G`, `j` and `k` motions for the file history view
on vim mode.
Alvaro Parker
created
75dde03
Ensure language is set on diffs from `ActionLog` and `AcpThread` (#46129)
Click to expand commit body
Release Notes:
- N/A
Cole Miller
created
f35e678
editor: Use less memory when replacing literal strings (#46092)
Click to expand commit body
Found while profiling #38927
When the query is not a regex, the same replacement can be applied to
all matches. Previously, `replacement_for` allocated a new String on
every call, while `replacement` returns a reference.
Release Notes:
- N/A
---------
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Marco Mihai Condrache
created
778609f
extension_host: Add error context to add_extension_to_index (#45913)
Click to expand commit body
Missing required extension files or directories currently result in
opaque "Directory not found" errors being logged during the update index
phase. This can be frustrating to those developing extensions. Add some
context so folks know where to start looking.
Release Notes:
- N/A
---------
Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
Co-authored-by: Kirill Bulatov <kirill@zed.dev>
Aru Sahni
,
Kirill Bulatov
, and
Kirill Bulatov
created
## Screenshot testing
Adds visual testing infrastructure for GPUI that captures screenshots by
rendering directly to Metal textures. The
The screenshots end up in `target/visual_tests/` and look like this:
<img width="2560" height="1600" alt="workspace_with_editor2"
src="https://github.com/user-attachments/assets/54112343-4af1-4347-9bab-f099de97dd29"
/>
<img width="2560" height="1600" alt="project_panel2"
src="https://github.com/user-attachments/assets/0cd54b61-dace-4398-a28e-0b4d7c2968f6"
/>
### Key Features
- **Direct texture capture**: Screenshots are captured by rendering the
scene to a Metal texture and reading pixels directly from GPU memory,
rather than using ScreenCaptureKit
- **No visibility requirements**: Windows don't need to be visible on
screen since we read directly from the render pipeline
- **Deterministic output**: Captures exactly what GPUI renders, not what
the OS compositor displays
- **No permissions needed**: Doesn't require Screen Recording permission
like ScreenCaptureKit would
### Running the Visual Tests
```bash
# Run visual tests (compares against baselines)
cargo run -p zed --bin visual_test_runner --features visual-tests
# Update baseline images (when UI intentionally changes)
UPDATE_BASELINE=1 cargo run -p zed --bin visual_test_runner --features visual-tests
# View the captured screenshots
open target/visual_tests/
```
### Implementation
- `Window::render_to_image()` - Renders the current scene to a texture
and returns an `RgbaImage`
- `MetalRenderer::render_to_image()` - Core implementation that renders
to a non-framebuffer-only texture
- `VisualTestAppContext` - Test context that uses real macOS platform
rendering
- `VisualTestAppContext::capture_screenshot()` - Synchronous screenshot
capture using direct texture rendering
### Usage
```rust
let mut cx = VisualTestAppContext::new();
let window = cx.open_window(...)?;
let screenshot: RgbaImage = cx.capture_screenshot(window.into())?;
```
Release Notes:
- N/A
---------
Co-authored-by: Amp <amp@ampcode.com>
Richard Feldman
and
Amp
created
8ba030a
Delete pulled diagnostics when the source registration is unregistered (#46105)
Click to expand commit body
Additionally, fix a race condition where we'd still insert diagnostics
from a document or workspace pull even if the registration had been
unregistered in the time since the request was issued.
And, as a bonus: when a new pull diagnostics registration is added,
issue document pulls immediately.
This should fix regressions with basedpyright caused by
https://github.com/zed-industries/zed/pull/43703.
Release Notes:
- N/A
John Tur
created
6625997
languages: Include namespace in the outline for C++ (#45794)
Click to expand commit body
Before:
<img width="389" height="147" alt="image"
src="https://github.com/user-attachments/assets/5412bde6-2f1b-4bb4-a06f-111724597372"
/>
After:
<img width="404" height="139" alt="image"
src="https://github.com/user-attachments/assets/8f906245-4c6e-4cf0-bb32-1b47048f46c0"
/>
Release Notes:
- Include namespace symbol in the outline view for C++.
Haojian Wu
created
0e5b6a5
outline: Fix nesting issue for variable declarations (#45797)
Click to expand commit body
Before:
<img width="665" height="116" alt="image"
src="https://github.com/user-attachments/assets/3c0b6ea4-f030-4fef-a0eb-8251ce16a651"
/>
After:
<img width="601" height="104" alt="image"
src="https://github.com/user-attachments/assets/31659c75-6f73-40e7-9d3b-c4ae99357b12"
/>
The fix is similar to https://github.com/zed-industries/zed/pull/36076.
Release Notes:
- Fix outline nesting issue for variable declarations in C++
Haojian Wu
created
e07a304
ci: Use `zed-zippy` identity for `bump_patch_version.yml` (#46099)
Click to expand commit body
This PR updates the `bump_patch_version.yml` to also be generated by
`cargo xtask workflows` and updates this to use the `zed-zippy` identity
instead of the `ConradIrwin` identity.
Release Notes:
- N/A
62ae7fb
Add global and HTTP context server timeout settings (#45378)
Click to expand commit body
### Closes
- Maybe https://github.com/zed-industries/zed/issues/38252 (there might
be something going on with NPX too)
- Also addresses
https://github.com/zed-industries/zed/pull/39021#issuecomment-3644818347
### Why
Some more involved MCP servers timeout often, especially on first setup.
I got tired of having to set timeouts manually per server. I also
noticed a timeout could not be set for http context servers, which
causes Context7 or GitHub's remote servers to timeout at 60s sometimes.
### Overview
MCP Timeout Configuration Feature
This PR adds additional configurable timeout settings for Model Context
Protocol servers including a global timeout and the addition of timeouts
for http servers, addressing issues where servers were timing out after
a fixed 60 seconds regardless of user needs.
**Key Features:**
- **Global timeout setting** (`context_server_timeout`) - default
timeout for all MCP servers (default: 60s, max: 10min)
- **Per-server timeout overrides** - individual servers can specify
custom timeouts via `timeout` field
- **Precedence hierarchy** - per-server timeout > global timeout >
default (60s)
- **Automatic bounds checking** - enforces 10-minute maximum to prevent
resource exhaustion
- **Support for both transports** - works with stdio and HTTP-based
context servers
- **Comprehensive test coverage** - 3 new tests validating global,
override, and stdio timeout behavior
- **Full backward compatibility** - existing configurations work
unchanged with sensible defaults
### Release Notes:
- Added the ability to configure timeouts for context server tool calls.
The new global `context_server_timeout` setting controls the default
timeout (default is 60s, max: 10min). Additionally, per-server timeouts
can be configured using the `timeout` field within servers defined in
the `"context_servers" setting
---------
Co-authored-by: Ben Kunkle <ben@zed.dev>
Embeddings have neither been used nor maintained in over a year and
there are currently no plans to use these again any time soon. Hence,
remove support for these here to more clearly indicate that these are
actually not used.
Release Notes:
- N/A
Finn Evers
created
dd0d51b
Sync the winget repo before publishing (#46093)
Click to expand commit body
This seemed to fix a bug where our winget release was not automatically
published.
Release Notes:
- N/A
Conrad Irwin
created
84017bc
Add OpenAI Responses API support with chat_completions capability flag (#39989)
Click to expand commit body
Add support for OpenAI's /responses endpoint for models that don't
support /chat/completions API. This enables compatibility with newer
model variants (`gpt-5-codex`, `gpt-5-pro`, `o3-pro`, etc) while
maintaining compatibility with existing configs
Changes:
- Add `supports_chat_completions` flag to model capabilities that
defaults to true for existing behavior
- Implement responses API client with streaming support as per [OpenAI
documentation](https://app.stainless.com/api/spec/documented/openai/openapi.documented.yml).
- Add `ResponseEventMapper` to convert responses events to completion
events for maintainer simplicity
- Update UI to allow toggling `chat_completions` capability
- Add `gpt-5-codex` model
Closes #38858
Release Notes:
- Added support for `gpt-5-codex` model
---------
Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
Matt Stallone
and
Bennet Bo Fenner
created
e70d252
agent_ui: Fix agent UI stealing focus on start up (#46088)
Click to expand commit body
Release Notes:
- Fixed Zed stealing element focus away briefly after startup,
interrupting user workflows
Closes #42217
Release Notes:
- Added/Fixed/Improved ...
added "Create Pull Request" Command when searching on the command
Palette
For more details, please refer to the issue, thank you.
---------
Co-authored-by: dino <dinojoaocosta@gmail.com>
Tommy Han
and
dino
created
4dd54c6
vim: Fix word object count multiplier (2aw, 2iw) (#45686)
Click to expand commit body
Closes #44251
## Context
Commands like `2daw` or `c2iw` were ignoring the count multiplier
because the word text object functions (`in_word`, `around_word`)
weren't using the `times` parameter. This fix propagates the count
through these functions so all operators correctly handle multiple
words.
## Before
https://github.com/user-attachments/assets/d5effa8a-4c04-4d70-a6b5-389cba730ca9
## After
https://github.com/user-attachments/assets/c50e4c0c-ea5c-4673-9c98-3d924b448025
Release Notes:
- Fixed vim mode count multiplier for word text objects (`2aw`, `2iw`,
`2aW`, `2iW`)
Mateo Kruk
created
32f71af
agent_ui: Fix hangs when accepting agent file deletions (#46086)
Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/44160
Release Notes:
- Fixed a hang when accepting file deletions made by the agent while the
deleted buffer was still open
Release Notes:
- settings_ui: Added a field to configure the network proxy.
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Xiaobo Liu
created
4e0e7cf
windows: Fix IME candidate window not appearing at cursor position (#46079)
Click to expand commit body
Release Notes:
- Fixed some IME popups and the emoji picker not appearing at the cursor
position on windows
Lukas Wirth
created
8813abe
Enable terminal activation for uv-managed environments (#45949)
Click to expand commit body
Currently, the Python toolchain can identify `uv` and `uv-workspace`
environments (showing the correct labels in the UI), but it fails to
activate them when opening a new terminal. This is because the
activation script resolution and command generation logic were missing
for these environment kinds.
This PR adds `uv` and `uv-workspace` to the standard virtual environment
activation flow. Since `uv` creates environments with a standard `venv`
structure, we can reuse the existing `resolve_venv_activation_scripts`
logic to find and execute the appropriate `activate` scripts for
different shells.
Release Notes:
- Fixed terminal activation for `uv` and `uv-workspace` Python
environments.
Xin Zhao
created
01b716c
terminal: Kill entire process group on Unix when stopping command (#45993)
Click to expand commit body
## Problem
When clicking Stop button on a terminal tool call (or using terminal
kill bindings), only the shell process was killed. Child processes (like
`sleep`, `npm run`, etc.) continued running as orphans.
## Solution
On Unix, use `killpg()` instead of `sysinfo::Process::kill()` to
terminate the entire foreground process group.
`tcgetpgrp()` already returns the foreground process group ID, so
`killpg()` is the correct syscall to use here.
## Testing
1. Run a long command in terminal tool (e.g. `sleep 30`)
2. Click Stop button
3. Verify with `ps aux | grep sleep` that the process is actually killed
## Notes
- This fix is Unix-only (Linux, macOS)
- Windows behavior unchanged — may need separate investigation with Job
Objects
## Release Notes
- Fixed terminal Stop button not killing child processes on Unix (Linux,
macOS)
Serhii Melnychuk
created
7e8310a
Add `luaurc` path suffix to JSONC (#46037)
Click to expand commit body
Closes https://github.com/4teapo/zed-luau/issues/31
Luau `.luaurc` config files contain JSON but that allows comments and
trailing commas, making them a perfect fit for JSONC.
Release Notes:
- N/A
teapo
created
e97f7b5
proto: Remove deprecated active view fields from call.proto (#45979)
Click to expand commit body
Release Notes:
- N/A
---------
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Xiaobo Liu
created
bf2151e
buffer_diff: Synchrously emit `DiffChanged` event from `recalculate_diff_sync` (#46077)
Click to expand commit body
Release Notes:
- N/A
Cole Miller
created
ccce05d
language: Fix reparse timeout not actually working (#45347)
Click to expand commit body
We use `block_with_timeout` to give the reparse task a millisecond to
complete, and if it takes longer we put the work off to the background.
The reason for this is that we want tree-sitter based features to feel
snappy.
The reparse task is non-cooperative though, it has no yield points,
giving us no place to actually check for our timeout, meaning we will
always drive it to completion and block for the entire duration.
This kicks out the `block_with_timeout` in favor of using the treesitter
progress callback to handle timeouts instead.
Release Notes:
- Improved responsiveness with very language language files on edits
Lukas Wirth
created
da99237
settings_ui: Fix theme not being configurable in certain scenarios (#46069)
Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/44091
The issue here was that we were missing a proper default for
`ThemeSelection`. This is a disadvantage of not having the defaults in
code but actually in the `default.json`, so this here basically copies
the default from the `default.json` into code for the settings UI to
work properly.
Release Notes:
- Fixed an issue where the theme was not configurable from the settings
UI if no theme was configured prior.
Generates a training or evaluation example from a
chronologically-ordered commit. This is a port from the Python codebase
(except for the reorder_patch.rs, which was originally written in Rust
in).
Release Notes:
- N/A
Oleksiy Syvokon
created
e7474ce
typescript: Use @type instead of @type.builtin in highlights (#46068)
Click to expand commit body
Closes #45251
In https://github.com/zed-industries/zed/pull/44532 the syntax
highlighting of JS/TS was improved, but we only used `type.builtin` for
a specific case. This resulted in less consistent syntax highlighting.
Not all themes have this specific token and we don't use `type.builtin`
in other places either, so while this is a little less specific it is
more consistent.
Release Notes:
- Improved syntax highlighting consistency for builtins in JavaScript
and TypeScript
Gaauwe Rombouts
created
794fa9d
Revert "Revert windows implementation of "Multiple priority scheduler (#44701)"" (#46066)
67fc92d
language: Add support for Tailwind CSS Mode (#45352)
Click to expand commit body
Closes #44904
Adds the Tailwind CSS LSP as suggested here:
https://github.com/zed-industries/zed/pull/39517#issuecomment-3368206678.
This allows users to use the Tailwind CSS LSP for CSS files, to support
Tailwind specific rules.
Docs will be added in a separate PR after this is released
Release Notes:
- Add Tailwind CSS Mode support, for Tailwind specific CSS rules like
`@apply`, `@layer`, and `@theme`.
Gaauwe Rombouts
created
feb3ce3
User buffer column range when adding selection that skips soft wrap (#45594)
Click to expand commit body
When adding selections above/below with `skip_soft_wrap: true`, use
buffer column positions instead of pixel positions. This ensures
selections are placed at the same column offset in the buffer rather
than at the same visual position, which was incorrect for soft-wrapped
lines.
For example, selecting "how" in a wrapped line:
````
1. Very long line to
show [how] a wrapped
line would look
2. Very long line to
show how a wrapped
line would look
````
Now correctly adds a selection at the same buffer column in the next
line:
````
1. Very long line to
show [how] a wrapped
line would look
2. Very long line to
show [how] a wrapped
line would look
````
Closes #42137
Release Notes:
- Improved `editor: add selection above` and `editor: add selection
below` to select at the same text column when skipping soft-wrapped
lines, instead of the same visual position
Dino
created
9cdb986
workspace: Fix read-only pane buttons being clickable even when a no-op (#46065)
Click to expand commit body
The button was clickable for read-only panes even if the underlying item
is not write-toggleable.
Release Notes:
- N/A *or* Added/Fixed/Improved ...
Lukas Wirth
created
e57285f
gpui: Prepaint Div children with image cache (#46039)
Click to expand commit body
Closes #39914
I was able to reproduce the issue on macOS using the same README.
The root cause was that `markdown_preview_view` attaches the image cache
to the root div, and while Div correctly applies that cache during
request_layout and paint, the prepaint phase didn’t have the same
context.
Markdown is rendered through a List, and `List::prepaint` renders its
items using `layout_as_root`. That meant images were getting loaded
during prepaint without the image cache in place. When that happened,
Img fell back to the global asset loader, which retains assets
indefinitely unless explicitly cleaned up.
So every image was loaded twice:
- once during layout/paint via RetainAllImageCache (correctly released
when the preview closed)
- once during prepaint via the global asset system (never released)
The result was doubled memory usage and a leak, since the globally
loaded images stuck around after the preview was closed.
Release Notes:
- Fixed a memory leak when previewing markdown files with images
Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Marco Mihai Condrache
created
e8fbd5b
gpui: Cancel foreground tasks when the app is dropped (#45768)
Click to expand commit body
This is in preparation for removing `Result<T>` from the `AsyncApp`
methods
Refactor machine goes brrrrrr
Plan and tracker for this PR:
https://gist.github.com/mikayla-maki/7dfc0d4907e76de119b5712e24665f02
This PR should be safe to merge, as I cannot observe any changes in
behavior from adding this to our application.
Release Notes:
- N/A
Mikayla Maki
created
88a153c
project_diff: Fix overly large edits being emitted when a diff is recomputed (#46056)
Click to expand commit body
Release Notes:
- N/A
Cole Miller
created
88a0b31
buffer_diff: Ensure that base text has finished parsing before completing update (#46054)
Click to expand commit body
Follow-up to #46001
That initial fix partly addressed the issue for diffs managed by the
`GitStore`, but not for other diffs (e.g. those managed by the
`ActionLog` or `CommitView`). The underlying issue is that we switched
to using a `Buffer` to represent the diff base text, and when updating
the diff we were calling `set_text` on this buffer and not waiting for
reparsing to finish. When the base text was represented by a series of
independent `BufferSnapshot`s, this wasn't an issue because we would
parse the base text in the background as part of computing the diff
update. This PR fixes the issue by waiting on reparsing to finish after
each call to `set_text`.
Release Notes:
- N/A
Cole Miller
created
851aa9e
collab: Remove unused fields from `NewUserResult` (#46051)
Click to expand commit body
This PR removes two unused fields from the `NewUserResult` type.
Release Notes:
- N/A
This PR collapses the adjacent reserved ranges in the RPC protocol.
Release Notes:
- N/A
Marshall Bowers
created
498d651
agent ui: Render docs aside in the correct spot depending on dock position (#46050)
Click to expand commit body
Closes https://github.com/zed-industries/zed/issues/45847
Release Notes:
- agent: Fixed the docs aside placement in selectors (i.e., model and
configuration) depending on the panel dock position.
This PR essentially removes the logic I introduced in
https://github.com/zed-industries/zed/pull/45361 to position workspace
modals based on the pointer click coordinates. All of this code has
become unnecessary given in
https://github.com/zed-industries/zed/pull/45924 we made the remote,
project, and branch modals use popovers when triggered with a pointer,
which already handle all the anchored positioning based on the trigger
(much better).
Release Notes:
- N/A
Danilo Leal
created
8ef900c
git_panel: Add hover state to latest commit button (#46046)
Click to expand commit body
The button for opening the latest commit view didn't have a hover state,
but now it does!
<img width="400" height="548" alt="Screenshot 2026-01-04 at 8 44@2x"
src="https://github.com/user-attachments/assets/6a58fefb-5f3f-4973-b5e8-35c400996e12"
/>
Release Notes:
- N/A
Danilo Leal
created
7d0f23d
collab: Remove unused fields from `User` model (#46045)
Click to expand commit body
This PR removes some unused fields from the `User` model.
Release Notes:
- N/A
Marshall Bowers
created
0a1b798
title_bar: Use popovers for modal anchoring (#45924)
Click to expand commit body
Anchoring fix part of #45853
Before:
https://github.com/user-attachments/assets/abe66049-04e5-4f33-9efb-2e99e63e4cc8
After:
https://github.com/user-attachments/assets/14533bbe-8f46-43b1-9465-11e8d313561f
Release Notes:
- N/A
---------
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Sriman Achanta
and
Danilo Leal
created
d492b48
collab: Remove Supermaven API key issuance (#46044)
Click to expand commit body
This PR removes the ability to retrieve a Supermaven API key from
Collab.
This was staff-gated (at least, on the server), and judging by the logs,
no one is using it.
Release Notes:
- N/A
Marshall Bowers
created
2457264
editor: Add alignment setting to code completion context menu detail text (#45892)
Click to expand commit body
Closes #5154
Release Notes:
- Added a setting (`completion_detail_alignment`) to change the detail
text alignment in code completion context menus.
<table>
<tr>
<td>Right Alignment
<td>Left Alignment
<tr>
<td>
<img width="802" height="427" alt="image"
src="https://github.com/user-attachments/assets/46202f3d-32cc-4431-aebd-aa3c52d84993"
/>
<td>
<img width="783" height="427" alt="image"
src="https://github.com/user-attachments/assets/d26559d2-c433-4bf7-a302-e683bd5fa9f7"
/>
</table>
---------
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>