Commit graph

23996 commits

Author SHA1 Message Date
Lukas Wirth
bd35ffb501
collab_ui: Fix channel text bleeding through buttons on hover (#36710)
Release Notes:

- N/A
2025-08-23 10:39:30 -04:00
Dave Waggoner
8bf02b222c
Add terminal view path like target tests (#35422)
Part of 
- #28238

This PR refactors `Event::NewNavigationTarget` and `Event::Open`
handling of `PathLikeTarget` and associated code in `terminal_view.rs`
into its own file, `terminal_path_like_target.rs` for improved
testability, and adds tests which cover cases from:
  - #28339
  - #28407
  - #33498 
  - #34027
  - #34078

Release Notes:

- N/A
2025-08-23 10:39:30 -04:00
Julia Ryan
925bbeec58
Use Tokio::spawn instead of getting an executor handle (#36701)
This was causing panics due to the handles being dropped out of order.
It doesn't seem possible to guarantee the correct drop ordering given
that we're holding them over await points, so lets just spawn on the
tokio executor itself which gives us access to the state we needed those
handles for in the first place.

Fixes: ZED-1R

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
2025-08-23 10:39:29 -04:00
Lukas Wirth
a891f9fbe9
remote: Fetch shell on ssh remote to use for preparing commands (#36690)
Prerequisite for https://github.com/zed-industries/zed/pull/36576 to
allow us to differentiate the shell in a remote.

Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
Julia Ryan
1ccce49456
Upload telemetry event on crashes (#36695)
This will let us track crashes-per-launch using the new minidump-based
crash reporting.

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
2025-08-23 10:39:29 -04:00
Antonio Scandurra
b070a4165d
acp: Refactor agent2 send to have a clearer control flow (#36689)
Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
Piotr Osiewicz
55f46337db
lsp: Add basic test for server tree toolchain use (#36692)
Closes #ISSUE

Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
Agus Zubiaga
36fc0f4a17
acp: Use ResourceLink for agents that don't support embedded context (#36687)
The completion provider was already limiting the mention kinds according
to `acp::PromptCapabilities`. However, it was still using
`ContentBlock::EmbeddedResource` when
`acp::PromptCapabilities::embedded_context` was `false`. We will now use
`ResourceLink` in that case making it more complaint with the
specification.

Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
Ryan Drew
a31bc0f767
editor: Use editorconfig's max_line_length for hard wrap (#36426)
PR #20198, "Do not alter soft wrap based on .editorconfig contents"
removed support for setting line lengths for both soft and hard wrap,
not just soft wrap. This causes the `max_line_length` property within a
`.editorconfig` file to be ignored by Zed. This commit restores allowing
for hard wrap limits to be set using `max_line_length` without impacting
soft wrap limits. This is done by merging the `max_line_length` property
from an editorconfig file into Zed's `preferred_line_length` property.

Release Notes:

- Added support for .editorconfig's `max_line_length` property

Signed-off-by: Ryan Drew <git@ry4n.me>
2025-08-23 10:39:29 -04:00
Smit Barmase
532616bbc9
Fix issue where renaming a file would not update imports in related files if they are not open (#36681)
Closes #34445

Now we open a multi-buffer consisting of buffers that have updated,
renamed file imports.

Only local is handled, for now.

Release Notes:

- Fixed an issue where renaming a file would not update imports in
related files if they are not already open.
2025-08-23 10:39:29 -04:00
Conrad Irwin
4056fcac5b
acp: Detect gemini auth errors and show a button (#36641)
Closes #ISSUE

Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
Conrad Irwin
3ce3e85f98
acp: Hide history unless in native agent (#36644)
Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
Bennet Bo Fenner
205f76c925
acp: Use file icons for edit tool cards when ToolCallLocation is known (#36684)
Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
Marshall Bowers
c1ac2b8ecd
collab: Add Orb subscription status and period to billing_subscriptions table (#36682)
This PR adds the following new columns to the `billing_subscriptions`
table:

- `orb_subscription_status`
- `orb_current_billing_period_start_date`
- `orb_current_billing_period_end_date`

Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
David Kleingeld
f2be94578a
Add Rodio audio pipeline as alternative to current LiveKit pipeline (#36607)
Rodio parts are well tested and need less configuration then the livekit
parts. I suspect there is a bug in the livekit configuration regarding
resampling. Rather then investigate that it seemed faster & easier to
swap in Rodio.

This opens the door to using other Rodio parts like:
 - Decibel based volume control
 - Limiter (prevents sound from becoming too loud)
 - Automatic gain control

To use this add to settings:
```
  "audio": {
    "experimental.rodio_audio": true
  }
```

Release Notes:

- N/A

Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-23 10:39:29 -04:00
Cole Miller
2f40b893d7
Fix more improper uses of the buffer_id field of Anchor (#36636)
Follow-up to #36524 

Release Notes:

- N/A
2025-08-23 10:39:29 -04:00
Cole Miller
0bb87bcbb1
Show excerpt dividers in without_headers multibuffers (#36647)
Release Notes:

- Fixed diff cards in agent threads not showing dividers between
disjoint edited regions.
2025-08-23 10:39:28 -04:00
Bennet Bo Fenner
cd8e507d84
acp: Allow collapsing edit file tool calls (#36675)
Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Antonio Scandurra
7c05136c28
acp: Use unstaged style for diffs (#36674)
Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Julia Ryan
16b36a6a0f
Avoid suspending panicking thread while crashing (#36645)
On the latest build @maxbrunsfeld got a panic that hung zed. It appeared
that the hang occured after the minidump had been successfully written,
so our theory on what happened is that the `suspend_all_other_threads`
call in the crash handler suspended the panicking thread (due to the
signal from simulate_exception being received on a different thread),
and then when the crash handler returned everything was suspended so the
panic hook never made it to the `process::abort`.

This change makes the crash handler avoid _both_ the current and the
panicking thread which should avoid that scenario.

Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Piotr Osiewicz
005c8dc4f6
remote: Fix toolchain RPC messages not being handled because of the entity getting dropped (#36665)
Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Bennet Bo Fenner
097dec4bc4
agent2: Allow expanding terminals individually (#36670)
Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Antonio Scandurra
61e44b15c3
Fix @-mentioning threads when their summary isn't ready yet (#36664)
Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Kirill Bulatov
7dafc34ccd
Fix overlooked Clippy lints (#36659)
Follow-up of https://github.com/zed-industries/zed/pull/36557 that is
needed after https://github.com/zed-industries/zed/pull/36652

Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Sachith Shetty
f23ff53302
editor: Use highlight_text to highlight matching brackets, fix unnecessary inlay hint highlighting (#36540)
Closes #35981

Release Notes:

- Fixed bracket highlights overly including parts of inlays when
highlighting

Before -
<img width="1480" height="602" alt="Screenshot from 2025-08-19 17-15-06"
src="https://github.com/user-attachments/assets/8e6b5ed8-f133-4867-8352-ed93441fbd8b"
/>

After -
<img width="1480" height="602" alt="Screenshot from 2025-08-19 17-24-26"
src="https://github.com/user-attachments/assets/1314e54e-ecf9-4280-9d53-eed6e96e393f"
/>
2025-08-23 10:39:28 -04:00
Kirill Bulatov
dcf16b7abe
Stop waiting for part of LSP responses on remote Collab clients' part (#36557)
Instead of holding a connection for potentially long LSP queries (e.g.
rust-analyzer might take minutes to look up a definition), disconnect
right after sending the initial request and handle the follow-up
responses later.

As a bonus, this allows to cancel previously sent request on the local
Collab clients' side due to this, as instead of holding and serving the
old connection, local clients now can stop previous requests, if needed.

Current PR does not convert all LSP requests to the new paradigm, but
the problematic ones, deprecating `MultiLspQuery` and moving all its
requests to the new paradigm.

Release Notes:

- Improved resource usage when querying LSP over Collab

---------

Co-authored-by: David Kleingeld <git@davidsk.dev>
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
Co-authored-by: David Kleingeld <davidsk@zed.dev>
2025-08-23 10:39:28 -04:00
Agus Zubiaga
75805fa38d
acp: Suggest upgrading to preview instead of latest (#36648)
A previous PR changed the install command from `@latest` to `@preview`,
but the upgrade command kept suggesting `@latest`.

Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Ben Brandt
d46039cb92
acp: Add e2e test support for NativeAgent (#36635)
Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
Agus Zubiaga
7465f5c714
acp: Update to 0.0.30 (#36643)
See: https://github.com/zed-industries/agent-client-protocol/pull/20

Release Notes:

- N/A
2025-08-23 10:39:28 -04:00
张小白
a23108d477
windows: Fix RevealInFileManager (#36592)
Closes #36314

This PR takes inspiration from [Electron’s
implementation](dd54e84a58/shell/common/platform_util_win.cc (L268-L314)).

Before and after:



https://github.com/user-attachments/assets/53eec5d3-23c7-4ee1-8477-e524b0538f60



Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Ben Kunkle
f0bc1e8584
docs: Add table of all actions (#36642)
Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
2025-08-23 10:39:27 -04:00
Agus Zubiaga
6c08e32f49
acp: Reliably suppress gemini abort error (#36640)
https://github.com/zed-industries/zed/pull/36633 relied on the prompt
request responding before cancel, but that's not guaranteed


Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Marshall Bowers
b73cffd621
agent_ui: Fix signed-in check in Zed provider configuration (#36639)
This PR fixes the check for if the user is signed in in the Agent panel
configuration.

Supersedes https://github.com/zed-industries/zed/pull/36634.

Release Notes:

- Fixed the user's plan badge near the Zed provider in the Agent panel
not showing despite being signed in.
2025-08-23 10:39:27 -04:00
Agus Zubiaga
5afd4312b0
acp: Supress gemini aborted errors (#36633)
This PR adds a temporary workaround to supress "Aborted" errors from
Gemini when cancelling generation. This won't be needed once
https://github.com/google-gemini/gemini-cli/pull/6656 is generally
available.

Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Conrad Irwin
d5fd836982
acp: Handle Gemini Auth Better (#36631)
Release Notes:

- N/A

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
2025-08-23 10:39:27 -04:00
Agus Zubiaga
6b2c472e31
acp: Hide feedback buttons for external agents (#36630)
Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Cole Miller
baa9b5422e
acp: Rename assistant::QuoteSelection and support it in agent2 threads (#36628)
Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Agus Zubiaga
970bf4aeae
acp: Suggest installing gemini@preview instead of latest (#36629)
Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Danilo Leal
ecbe17b42a
thread_view: Add recent history entries & adjust empty state (#36625)
Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Agus Zubiaga
7aada52ca5
acp thread view: Do not go into editing mode if unsupported (#36623)
Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Joseph T. Lyons
d98d4d448c
Bump Zed to v0.202 (#36622)
Release Notes:

-N/A
2025-08-23 10:39:27 -04:00
Cole Miller
8ec838cf05
Fix typo in Excerpt::contains (#36621)
Follow-up to #36524 

Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Ben Brandt
4ff7e6cee4
agent2: Clean up tool descriptions (#36619)
schemars was passing along the newlines from the doc comments. This
should make these closer to the markdown file versions we had in the old
agent.

Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Agus Zubiaga
ab3353b555
message editor: Only allow types of content the agent can handle (#36616)
Uses the new
[`acp::PromptCapabilities`](a39b7f635d/rust/agent.rs (L194-L215))
to disable non-file mentions and images for agents that don't support
them.

Release Notes:

- N/A
2025-08-23 10:39:27 -04:00
Piotr Osiewicz
249ff38cdd
clippy: println_empty_string & non_minimal_cfg (#36614)
- **clippy: Fix println-empty-string**
- **clippy: non-minimal-cfg**

Related to #36577

Release Notes:
- N/A
2025-08-23 10:39:27 -04:00
Cole Miller
c317dfc531
Remove special case for singleton buffers from MultiBufferSnapshot::anchor_at (#36524)
This may be responsible for a panic that we've been seeing with
increased frequency in agent2 threads.

Release Notes:

- N/A

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2025-08-23 10:39:26 -04:00
Umesh Yadav
0f076b98f5
Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613)
Related: #36577

Release Notes:

- N/A
2025-08-23 10:39:26 -04:00
Cole Miller
4569857994
Add tracked buffers for agent2 mentions (#36608)
Release Notes:

- N/A
2025-08-23 10:39:26 -04:00
Bennet Bo Fenner
c11c971c44
agent2: Port feedback (#36603)
Release Notes:

- N/A

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
2025-08-23 10:39:26 -04:00
Antonio Scandurra
4dcd0b59d2
Fix scrollbar flicker when streaming agent2 response (#36606)
This was caused by calling `list_state.splice` on updated entries. We
don't need to splice the entry, as we'll recompute its measurements
automatically when we render it.

Release Notes:

- N/A
2025-08-23 10:39:26 -04:00