Commit log

94b9628 Revert "Sign out upon receiving an Unauthorized response when acquiring an LLM token (#49661) (#49669)

Click to expand commit body
This PR reverts #49661, as the Collab tests are failing (but were not
caught in CI).

This reverts commit 2f9350bb6bc4abe10530fc42bb262493e1525bfb.

Release Notes:

- N/A

Marshall Bowers created

2f9350b Sign out upon receiving an Unauthorized response when acquiring an LLM token (#49661)

Click to expand commit body
This PR makes it so the user gets signed out upon receiving an
Unauthorized response when acquiring an LLM token.

Closes CLO-324.

Release Notes:

- N/A

Marshall Bowers created

41c007f Fix subagent card buttons getting clipped by long titles (#49648)

Click to expand commit body
When a subagent title is long, the header buttons (expand/collapse,
maximize, stop) were pushed out of view because the title area grew
unconstrained.

## Fix

- Add `min_w_0()` and `overflow_hidden()` to the title container so it
can shrink below its content width
- Add `truncate()` to the title label so it shows an ellipsis when
clipped
- Add `flex_shrink_0()` to the buttons container so it never gets
squeezed out
- Add a tooltip on the title area showing the full text on hover

Release Notes:

- N/A

Eric Holk created

90d8c26 Fix visual test screenshot functionality (#49649)

Click to expand commit body
After #49277 was merged, all visual tests failed to run with the error
"FAILED - render_to_image not implemented for this platform".

Release Notes:

- N/A

claire created

be26e1a editor: Fix relative line numbering with deleted blocks present (#49656)

Click to expand commit body
This tackles another issue where we would incorrectly show two absolute
line numbers with relative line numbering enabled when it really should
only have been the current active line number.

Sadly, no tests rn for this as we would need a better test infra for
that to properly catch/test this bug. But with the refactored logic, I
think this is easier to understand at glance, so at least theres that

Release Notes:

- Fixed an issue with relative line numbers where some rows would be
missing their relative line number with deleted hunks showing.

Finn Evers created

6a9d259 gpui_linux: Fix headless build (#49652)

Click to expand commit body
Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [ ] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A

Piotr Osiewicz created

62af5b8 Allow using Zeta through an arbitrary OpenAI-compatible self-hosted API (#49554)

Click to expand commit body
Release Notes:

- Added the ability to use a self-hosted OpenAI-compatible server for
edit predictions.

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>

Max Brunsfeld , Ben Kunkle , and Zed Zippy created

e07d0ba Add telemetry for stack trace view (#49642)

Click to expand commit body
Release Notes:

- N/A

Cole Miller created

04bdd17 Fix JS syntax error in docs_suggestions cherry-pick job (#49643)

Click to expand commit body
## Summary

Fixes the `SyntaxError: Unexpected identifier 'gemini'` error in the
cherry-pick documentation suggestions workflow.

## Problem

The 'Post suggestions as PR comment' step was directly interpolating
markdown content into a JavaScript template literal:

```javascript
const suggestions = `${{ steps.analyze.outputs.suggestions }}`;
```

When the suggestions contained backticks, `${}` sequences, or other
special characters (like the `gemini-3.1-pro-preview` model name in
markdown code blocks), it broke the JavaScript syntax.

## Solution

Write suggestions to a file in `$RUNNER_TEMP` and read it using
`fs.readFileSync()` in the script step. This avoids all GitHub Actions
template interpolation and JavaScript string parsing issues.

## Testing

This should fix the failed run:
https://github.com/zed-industries/zed/actions/runs/22194396124/job/64190762087

Release Notes:

- N/A

morgankrey created

1e847c1 Fix panic involving growing and shrinking selections while buffer size changes (#48898)

Click to expand commit body
Repro steps:

1. Make a Rust file and check it in to git
2. Delete a lot of the file
3. Expand all the diffs (cmd+")
4. Select larger syntax node (ctrl+cmd+right)
5. Collapse all the diffs
6. Select smaller syntax node (ctrl+cmd+left)
7. Panic!

The problem was we were using byte offsets instead of anchors so after
we shrank the buffer by collapsing diffs we'd be pointing past the end
of it.

Release notes:
- N/A

Eric Holk created

32f05ac Add Gemini 3.1 Pro to model documentation (#49640)

Click to expand commit body
## Summary

- Added Gemini 3.1 Pro to the pricing table, context windows table, and
page metadata in `docs/src/ai/models.md`
- Listed alongside existing Gemini 3 Pro (both remain available)

Release Notes:

- N/A

morgankrey created

17abde7 Add gemini-3.1-pro-preview model (#49622)

Click to expand commit body
Closes AI-48

Release Notes:

- Added support for Gemini 3.1 Pro

Richard Feldman created

85c23d0 agent: Improve the subagent task structure (#49629)

Click to expand commit body
Removes tool filtering since this was throwing off certain models, and
also allows for more generic task prompts that don't always require
summaries. Since the models usually provide a wrap-up message, we don't
have to wait for another turn.

This also sets us up to allow the agent to re-interact with an existing
subagent thread.

Release Notes:

- N/A

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>

Ben Brandt and Jakub Konka created

bc31ad4 gpui: Extract gpui_platform out of gpui (#49277)

Click to expand commit body
#2874 on steroids

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [ ] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A

---------

Co-authored-by: Eric Holk <eric@zed.dev>

Piotr Osiewicz and Eric Holk created

da7b8f2 Fix font weight in multiple elements (#49539)

Click to expand commit body
* Update the font weight used in the Agent Panel's editor to respect the
`buffer_font_weight` setting.
* Update the font weight used in the Command Palette to use the
`ui_font_weight` setting value, seeing as the command palette is using
the `ui_font` settings for the font family and features
* Update the font weight used in the popovers to match the
`buffer_font_weight`, as it's also using the buffer font family and
features
* Update the `LabelLike.buffer_font` method in order to correctly set
the font weight, which fixes the font weight used in the file header
when displaying a multibuffer editor

Release Notes:

- Fixed incorrect font weight in the Command Pallete input
- Fixed missing font weight the Agent Panel's buffer
- Fixed missing font weight the Hover Popover
- Fixed missing font weight in Markdown's code block and inline code

---------

Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>

Dino and Zed Zippy created

037add0 editor: Fix bracket colorization discoloring pure deletion diff hunks (#49618)

Click to expand commit body
Release Notes:

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

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

Lukas Wirth created

3bd1b0f Temporarily disabling codeowners to resolve noisy routing (#49623)

Click to expand commit body
Just a procedural change to codeowners, no other items affected.

Release Notes:

- N/A

John D. Swanson created

e8d4537 Revert "Enable type on search by default for the project search (#49374)" (#49619)

Click to expand commit body
This reverts commit 1d66bbe06f6e02008560064302c44a57ed4cff41.

Needs 2 more fixes:

* enter does not move to the first excerpt anymore
* there could be situations when a narrowed search does not decrease the
excerpt enough to see the result onscreen

Release Notes:

- N/A

Kirill Bulatov created

8815573 buffer_search: Don’t hide UI icons if search query is too large (#49493)

Click to expand commit body
Remove tracking of editor width in buffer search, removing the behavior
where the UI icons used in the search bar would be hidden if the search
query need to fill the whole element's width.

Closes #49446.

Release Notes:

- Don’t hide UI icons in buffer search if search query is too large

Co-authored-by: dino <dinojoaocosta@gmail.com>

Kunall Banerjee and dino created

712914a go: split definition and call highlights for functions, methods, and types (#49120)

Click to expand commit body
This allows definitions to use a different highlight than function
calls.

Release Notes:

- go: Add definition highlights for functions, methods, and types

Tomas Virgl created

3a1c375 ep: Fix pull examples query (#49610)

Click to expand commit body
Release Notes:

- N/A

Oleksiy Syvokon created

d8b3f47 Fix the panic when trying to interact with editor-like not-editors (#49608)

Click to expand commit body
For example, LSP log view is not a real editor but can pretend to be
one.

Release Notes:

- Fixed dev highlights view panicking when interacting with editor-like
not-editors

Kirill Bulatov created

4efd07b zlog: Broaden filter for usvg parser warnings (#49607)

Click to expand commit body
Noticed this while looking into #49595

Release Notes:

- N/A

Finn Evers created

2a0a304 Seperate throttles for jump and edit based predictions (#49499)

Click to expand commit body
Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [ ] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

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

---------

Co-authored-by: Zed Zippy <234243425+zed-zippy[bot]@users.noreply.github.com>

Ben Kunkle and Zed Zippy created

aaa87a2 auto_update_ui: Add announcement toast component (#49543)

Click to expand commit body
This PR adds the `AnnouncementToast` component that we can use whenever
a new version introduces a new and special feature that's worthy of a
flashier announcement. We can pick the specific version we want to
target, and instead of showing the regular "View Release Notes" toast,
we'd show this new one instead.

For now, everything is turned off as we're not sure yet which version we
will be targeting for an upcoming release.

<img width="550" height="1964" alt="Screenshot 2026-02-18 at 9  06@2x"
src="https://github.com/user-attachments/assets/19930b15-261b-416f-992e-6e28447beb27"
/>

Release Notes:

- N/A

Danilo Leal created

24a81d4 git_ui: Remove dependency on agent crates (#49599)

Click to expand commit body
Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [ ] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A

Bennet Bo Fenner created

3129d7e ep: Parse "user accepted prediction" markers in evals (#49598)

Click to expand commit body
Also:
- Add two evals
- Remove duplicated Example 6 from the teacher prompt 

Release Notes:

- N/A

Oleksiy Syvokon created

b6cd147 Add retry logic to docs_suggestions workflow for transient Factory API failures (#49594)

Click to expand commit body
Add exponential backoff retry logic (3 attempts with 5s/10s/15s delays)
to the Droid CLI installation and
docs-suggest script execution steps in both the batch-suggestions and
cherry-pick-suggestions jobs.

This handles intermittent Factory API authentication issues that can
cause workflow failures when the API is temporarily unavailable or
rate-limited.

Release Notes:

- N/A

morgankrey created

bad3df6 vim: Apply linked edits for delete/change/substitute (#48458)

Click to expand commit body
Ensure that editing one tag in a linked pair correctly mirrors the change 
to the other tag for Vim delete/change/substitute commands, visual 
mode operations, and the standard editor delete action.

Extract a `LinkedEdits` struct to deduplicate linked edit collection and
application across `handle_input`, `replace_selections`, `do_completion`,
`backspace`, and `delete`. Introduce `linked_edits_for_selections` as a
shared helper for building linked edits from the current selections.

Closes #35941

Release Notes:
- Fixed linked edits for delete/change/substitute commands so tag pairs
stay in sync.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>

Patrik Levák and dino created

9d77987 editor: Remove duplicate method (#49592)

Click to expand commit body
`highlight_background` and `highlight_background_key` currently have the
same implementation

Release Notes:

- N/A

Marco Mihai Condrache created

6652c5f agent: Remove `MAX_PARALLEL_SUBAGENTS` (#49593)

Click to expand commit body
Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Requests will be rate-limited by our internal logic, but it will "just"
work.

Release Notes:

- N/A

Bennet Bo Fenner created

d6c0d3c project: Block less in `Respository::paths_changed` (#49584)

Click to expand commit body
Release Notes:

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

Lukas Wirth created

9a26eab buffer_diff: Reduce number of entity clones in base_text_buffer (#49573)

Click to expand commit body
Release Notes:

- Improved split performance by reducing number of entity clones for
very large pre-loaded multibuffers.

Jakub Konka created

1ad5ec6 Support profiling remote server in the miniprofiler (#49582)

Click to expand commit body
Release Notes:

- The `zed: open performance profiler` action can now display profiling
data from the remote server.

John Tur created

fc79a6f gpui: Remove some unnecessay heap allocations in entity handling (#49579)

Click to expand commit body
Release Notes:

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

Lukas Wirth created

2786d36 editor: Yield less frequently in `WrapSnapshot::update` (#49497)

Click to expand commit body
Every yield will cause the background task to get rescheduled causing
additional thread/context switching, so doing so for every wrapped row
is a bit excessive

Release Notes:

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

Lukas Wirth created

dace3ab project: Log errors when notifying JSON language server (#49480)

Click to expand commit body
Release Notes:

- N/A

---------

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Co-authored-by: Kirill Bulatov <kirill@zed.dev>

Xiaobo Liu and Kirill Bulatov created

37d54d8 multi_buffer: Bring `update_path_excerpts` ordering workaround back (#49563)

Click to expand commit body
cc https://github.com/zed-industries/zed/pull/49290

Release Notes:

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

Lukas Wirth created

0341609 bedrock: Add Claude Sonnet 4.6 (#49439)

Click to expand commit body
Release Notes:

- Added support for Anthropic Claude Sonnet 4.6

Co-authored-by: Ona <no-reply@ona.com>

Shardul Vaidya and Ona created

2132c54 Fix gh auth conflict when GH_TOKEN is already set (#49556)

Click to expand commit body
Fixes the workflow failure where `gh auth login --with-token` fails
because `GH_TOKEN` is already set in the environment.

The error was:
```
The value of the GH_TOKEN environment variable is being used for authentication.
To have GitHub CLI store credentials instead, first clear the value from the environment.
```

The fix uses a subshell to unset `GH_TOKEN` before calling `gh auth
login`:
```bash
echo "$GH_TOKEN" | (unset GH_TOKEN && gh auth login --with-token)
```

Release Notes:

- N/A

morgankrey created

09cd340 Update CODEOWNERS (includes suggested entries) (#49552)

Click to expand commit body
This PR updates the CODEOWNERS file based on the current
team-membership-rules.yml in the codeowner-coordinator repo.

**Coverage:** 100% - all paths have an owner.

## ⚠️ Suggested Entries - Review Required

The following paths were assigned based on git blame analysis of team
members.
**Please verify these assignments are correct before merging.**

| Path | Suggested Team | Based On | Commits |
|------|---------------|----------|---------|
| `crates/git_graph` | developer-tools-team | Anthony Eid | 4 |
| `crates/open_path_prompt` | zed-dev-team | Joseph T. Lyons | 1 |
| `crates/platform_title_bar` | platform-team | Finn Evers | 1 |
| `crates/remote_connection` | ecosystem-team | Piotr Osiewicz | 1 |
| `crates/shell_command_parser` | ai-team | Richard Feldman | 2 |
| `crates/sidebar` | platform-team | Finn Evers | 2 |

These entries are marked with `# SUGGESTED` comments in the CODEOWNERS
file.
If incorrect, update `team-membership-rules.yml` in the
codeowner-coordinator repo.

Release Notes:

- N/A

---
_This PR was auto-generated by the
[codeowner-coordinator](https://github.com/zed-industries/codeowner-coordinator)
workflow._

Co-authored-by: swannysec <11968319+swannysec@users.noreply.github.com>

Zed Bot and swannysec created

157a02e Fix `OpenFiles` action not respecting `use_system_path_prompts` setting (#47027)

Click to expand commit body
The OpenFiles action was always using the system file picker dialog,
ignoring the use_system_path_prompts setting. This adds a
workspace-level handler that calls prompt_for_open_path, which respects
the setting, instead of falling through to the global handler.

Closes #46386

Release Notes:

- Fixed "workspace: open files" not respecting "use_system_path_prompts"
setting

---------

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

Austin Cummings and Kirill Bulatov created

d5d6936 git: Mitigate panic in split diff (#49546)

Click to expand commit body
Release Notes:

- N/A

Cole Miller created

9b07658 Fix crash: vim paste panics on editor-copied entire-line selections (#49134)

Click to expand commit body
When clipboard data was produced by the editor's copy/cut with multiple
entire-line selections, vim's paste would panic with `byte index N is
out of bounds`.

The editor's `do_copy` and `cut_common` skip the `\n` separator between
clipboard selections when the previous selection was an entire-line
selection (because the text already ends with `\n`). However, vim's
paste code unconditionally did `start_offset = end_offset + 1`, always
assuming a `\n` separator exists between every pair of selections. This
caused the accumulated offset to exceed the text length, resulting in a
string slicing panic.

The fix checks `clipboard_selection.is_entire_line` to decide whether to
skip the separator, matching the behavior of the editor's own `do_paste`
method. The same fix is applied to both the vim and helix paste
implementations.

Release Notes:

- Fixed a crash when using vim paste on clipboard data copied with the
editor's copy command containing multiple entire-line selections.

Eric Holk created

4491c2c collab: Remove unused `AccessToken` model (#49542)

Click to expand commit body
This PR removes the `AccessToken` database model and its related
queries, as they are no longer used.

Closes CLO-306.

Release Notes:

- N/A

Marshall Bowers created

f07cec5 collab: Validate access tokens through Cloud (#49535)

Click to expand commit body
This PR updates Collab to make it validate access tokens through Cloud
instead of doing it in-house.

We're reusing the `GET /client/users/me` endpoint—which is what we also
call on the client—to validate the user's access token.

We only need to do this when establishing a WebSocket connection, so the
increased latency of a network hop shouldn't be a problem.

Closes CLO-308.

Release Notes:

- N/A

Marshall Bowers created

af050fc Fix git auth conflict in background_agent_mvp workflow (#49537)

Click to expand commit body
Fix git auth conflict in background_agent_mvp workflow

The workflow was manually configuring git authentication with:
```bash
git config --local http.https://github.com/.extraheader "AUTHORIZATION: bearer ..."
```

This conflicted with the authentication already set up by
`actions/checkout@v4`, which uses `AUTHORIZATION: basic ...`.

The conflict caused all crash pipeline runs to fail with:
```
fatal: could not read Username for 'https://github.com'
```

This morning's run (22147984206) failed for all 15 crash candidates
(ZED-4VS, ZED-202, etc.) with this error.

Remove the redundant git config since actions/checkout already handles
authentication properly.

Release Notes:

- N/A

morgankrey created

d3fe7d9 Revert the gutter width limitation for multi buffers (#49536)

Click to expand commit body
Follow-up of https://github.com/zed-industries/zed/pull/49374

This looks really bad when Zed zooms in and then out.

- N/A

Kirill Bulatov created

045b740 Fix shell quoting and gh auth in docs suggestions workflow (#49518)

Click to expand commit body
Fixes two issues in the documentation suggestions workflow:

1. **Shell quoting bug**: PR titles containing quotes (e.g., `agent_ui:
Add the ability to undo "reject all"`) were breaking the shell script
because the title was substituted directly into the script. Moved
`PR_TITLE`, `PR_NUM`, and `OUTPUT_FILE` to environment variables where
special characters are handled safely.

2. **GH CLI auth issue**: The `gh` CLI sometimes fails to auto-detect
`GH_TOKEN` in the environment, causing `gh pr view` and `gh pr diff` to
fail with "Bad credentials". Added explicit `gh auth login --with-token`
in both the batch-suggestions and cherry-pick-suggestions jobs.

Release Notes:

- N/A

morgankrey created

5b0a3de Add agent worktree directory setting + worktree info persistence (#49139)

Click to expand commit body
Add `agent_worktree_directory` to `GitSettings` for configuring where
agent worktrees are stored (default: Zed data dir). Remove `Copy` derive
from `GitSettings`/`GitContentSettings` (incompatible with String field)
and fix downstream `.as_ref().unwrap()` call sites.

Define `AgentGitWorktreeInfo` (branch, worktree_path, base_ref) and add
it to `DbThread` + `DbThreadMetadata` for persistence and session list
display.

Closes AI-33

Release Notes:

- N/A

Richard Feldman created