6a9095f
Reapply support for X11 screenshare (#28160)
Click to expand commit body
Reapplies #27807 after [revert due to not building on
ARM](https://github.com/zed-industries/zed/pull/28141) by updating scap
to include [a fix to its build on
ARM](https://github.com/zed-industries/scap/commit/08f0a01417505cc0990b9931a37e5120db92e0d0)
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Michael Sloan
and
Marshall Bowers
created
b969a66
gpui: Use NSOperatingSystemVersion provided by cocoa (#28055)
Click to expand commit body
Use the `NSOperatingSystemVersion` struct provided by the cocoa crate
instead of our own. Additionally we can directly use
`isOperatingSystemAtLeastVersion` instead of manually implementing
version comparison logic.
The `isOperatingSystemAtLeastVersion` instance method has been available
since MacOS 10.10, which released a decade ago.
Documentation for `isOperatingSystemAtLeastVersion `:
https://developer.apple.com/documentation/foundation/nsprocessinfo/1414876-isoperatingsystematleastversion
Release Notes:
- N/A
tidely
created
a86647d
Fix a panic in the git store (cherry-pick #28590) (#28594)
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>
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>
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
23e114f
format: Re-implement support for formatting with code actions that contain commands (cherry-pick #28392) (#28426)
Click to expand commit body
Cherry-picked format: Re-implement support for formatting with code
actions that contain commands (#28392)
Closes #27692
Closes #27935
Release Notes:
- Fixed a regression where code-actions used when formatting on save
were rejected if they contained commands
Co-authored-by: Ben Kunkle <ben@zed.dev>
gcp-cherry-pick-bot[bot]
and
Ben Kunkle
created
4f04f93
git: Always reload current branch after pushing (cherry-pick #28327) (#28394)
Click to expand commit body
Closes #ISSUE
Release Notes:
- Fixed the git panel sometimes failing to update after pushing to a
remote.
Cole Miller
created
ce951e4
Fix panic when a file in a path-based multibuffer excerpt is renamed (cherry-pick #28364) (#28393)
Click to expand commit body
Cherry-picked Fix panic when a file in a path-based multibuffer excerpt
is renamed (#28364)
Closes #ISSUE
Release Notes:
- Fixed a panic that could occur when paths changed in the project diff.
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
gcp-cherry-pick-bot[bot]
,
Cole Miller
, and
Conrad Irwin
created
Cherry-picked project: Workaround invalid code action edits from pyright
(#28354)
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Piotr Osiewicz <piotr@zed.dev>
fixes issue where:
In a two line python file like so
```
Path()
```
If the user asks for code actions on `Path` and they select (`From
pathlib import path`)
the result they get is
```
Pathfrom pathlib import Path
Path()
```
Instead of
```
from pathlib import Path
Path()
```
This is due to a non-lsp-spec-compliant response from pyright below
```json
{"jsonrpc":"2.0","id":40,"result":[{"title":"from pathlib import Path","edit":{"changes":{"file:///Users/neb/Zed/example-project/pyright-project/main.py":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":4}},"newText":"Path"},{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"newText":"from pathlib import Path\n\n\n"}]}},"kind":"quickfix"}]}
```
Release Notes:
- Fixed an issue when using auto-import code actions provided by pyright
(or basedpyright) where the import would be jumbled with the scoped
import resulting in an invalid result
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
Co-authored-by: Ben Kunkle <ben@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
gcp-cherry-pick-bot[bot]
,
Ben Kunkle
,
Max Brunsfeld
, and
Anthony Eid
created
684c765
Tell the model not to act on TODO type comments (#28358)
Click to expand commit body
Release Notes:
- Adjusted system prompt to direct it to never act on TODO-type comments
it encounters, unless the user directly asked it to do so or they relate
to the current task at hand.
Joseph T. Lyons
created
77598f5
Use tree-sitter when returning symbols to the model for a given file (#28352)
Click to expand commit body
This also increases the threshold for when we return an outline during
`read_file`.
Release Notes:
- Fixed an issue that caused the agent to fail reading large files if
the LSP hadn't started yet.
Antonio Scandurra
created
99643ab
Tell the model not to remove tests (#28349)
Click to expand commit body
Release Notes:
- Adjusted system prompt to direct it to never remove tests as a way to
have the test suite pass, unless the user directly asks for test
removal.
Joseph T. Lyons
created
bf1680e
agent: Display "generating" label in the active thread (#28297)
Click to expand commit body
Release Notes:
- N/A
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
The bash tool will now truncate its output to 8192 bytes (or the last
newline before that).
We also added a global limit for any tool that produces a clearly large
output that wouldn't fit the context window.
Release Notes:
- agent: Truncate bash tool output
---------
Co-authored-by: Michael Sloan <mgsloan@gmail.com>
Agus Zubiaga
and
Michael Sloan
created
54f7152
Tell the model not to create .bak files (#28244)
Click to expand commit body
Release Notes:
- Adjusted system prompt to avoid having the agent create backup files
unnecessarily.
Richard Feldman
created
25b7f67
Tell the system prompt not to write incomplete code (#28245)
Click to expand commit body
Sometimes agents do this. I've had some success responding by telling it
not to do this, so trying out having it in the system prompt.
Release Notes:
- Adjusted the system prompt to avoid incomplete code generation.
Richard Feldman
created
f259fb4
Fix local task dropped on the wrong thread (cherry-pick #28290) (#28343)
Click to expand commit body
Cherry-picked Fix local task dropped on the wrong thread (#28290)
Release Notes:
- Fixed a panic during shutdown of the remote server
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
gcp-cherry-pick-bot[bot]
and
Conrad Irwin
created
079b9c3
agent: Navigate to line when clicking on filepath in markdown codeblock (#28329)
Click to expand commit body
Release Notes:
- N/A
Bennet Bo Fenner
created
eb85d23
agent: Add support for Google Gemini 2.5 preview (#28326)
Click to expand commit body
Adds support for the new `gemini-2.5-pro-preview-03-25`
Release Notes:
- Added support for `gemini-2.5-pro-preview-03-25` in the assistant
2a60092
Try to identify dSYMs by UUID not channel (cherry-pick #28268) (#28294)
Click to expand commit body
Cherry-picked Try to identify dSYMs by UUID not channel (#28268)
This should make it possible to more reliably symbolicate crash reports
from nightly, and from users with pending auto-updates.
Release Notes:
- N/A
---------
Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
gcp-cherry-pick-bot[bot]
,
Conrad Irwin
, and
Ben Kunkle
created
bcaa7cb
Properly store editor restoration data (cherry-pick #28296) (#28299)
gcp-cherry-pick-bot[bot]
created
bb1ae36
agent: Add headers for code blocks (#28253)
7230d17
agent: Add the history button back in the toolbar and make it a toggle (#28275)
Click to expand commit body
Release Notes:
- agent: The history view is now more easily accessible via the icon
button in the Agent Panel toolbar.
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Release Notes:
- agent: Copying text in the Agent Panel will now copy it as Markdown.
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Marshall Bowers
and
Antonio Scandurra
created
45fea28
agent: Add a way to go back to thread from settings/history (#28273)
Click to expand commit body
Release Notes:
- N/A
Bennet Bo Fenner
created
08bf1ef
agent: Adjust the thread generation design (#28193)
Click to expand commit body
This PR simplifies the button to send a new message as well as the
"generation" display design.
Release Notes:
- N/A
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Danilo Leal
and
Bennet Bo Fenner
created
0f5184a
markdown: Move `open_url` to the `MarkdownElement` as `on_url_click` (#28269)
Click to expand commit body
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Marshall Bowers
and
Antonio Scandurra
created
45aff05
Fix bad unicode calculations in do_completion (cherry-pick #28259) (#28286)
Click to expand commit body
Cherry-picked Fix bad unicode calculations in do_completion (#28259)
Co-authored-by: João Marcos <marcospb19@hotmail.com>
Release Notes:
- Fixed a panic with completions around non-ASCII code
---------
Co-authored-by: João Marcos <marcospb19@hotmail.com>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: João Marcos <marcospb19@hotmail.com>
gcp-cherry-pick-bot[bot]
,
Conrad Irwin
, and
João Marcos
created
9fd7b19
markdown: Don't retain `MarkdownStyle` in favor of using `MarkdownElement` directly (#28255)
Click to expand commit body
This PR removes the retained `MarkdownStyle` on the `Markdown` entity in
favor of using the `MarkdownElement` directly and passing the
`MarkdownStyle` to it.
This makes it so switching themes will be reflected live in the code
block styles.
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Agus Zubiaga <hi@aguz.me>
Marshall Bowers
,
Antonio Scandurra
, and
Agus Zubiaga
created
cb1b17f
agent: Remove duplicated keybinding for creating new thread in Linux (#28254)
<img width="612" alt="Screenshot 2025-04-06 at 9 59 41 PM"
src="https://github.com/user-attachments/assets/3a996b4a-ef5c-4ca6-bd16-3b180b364a3a"
/>
Release Notes:
- Agent panel now shows links to relevant source code files above code
blocks.
Richard Feldman
created
46280a6
Restore direct use of the input text for Markdown `Text` (#27620)
Click to expand commit body
PR #24388 changed the markdown parsing to copy parsed text in order to
handle markdown escaping, removing the optimization to instead reuse
text from the input.
Another issue with that change was that handling of finding links within
`Text` intermixed use of `text` and `parsed`, relying on the offsets
matching up (which I believe was true in practice).
The solution is to distinguish pulldown_cmark `Text` nodes that share
bytes with the input and those that do not.
Release Notes:
- N/A
28cca25
agent: Refresh UI when context or thread history changes (#28188)
Click to expand commit body
I found a few more cases where the UI wasn't updated immediately after
an interaction.
Release Notes:
- agent: Fixed delay after removing threads from "Past Interactions"
- agent: Fixed delay after adding/remove context via keyboard
Agus Zubiaga
created
3fde499
agent: Refresh UI when sending first message (#28180)
Click to expand commit body
Release Notes:
- Agent Beta: Fixed a delay when sending the first message in a new
thread
Agus Zubiaga
created
f176715
Try to improve behavior when agent is stuck (#28169)
Click to expand commit body
Currently, it's pretty common that when the agent gets stuck, it deletes
whatever it's stuck on and replaces it with a TODO comment, then
cheerfully reports that it has "simpified" the implementation. This is
worse than leaving the broken code, because at least a human could take
over and try to get it across the finish line.
This system prompt adjustment attempts to make the agent do something
more useful when in this situation: report that it's stuck, explain why
it's stuck, and ask the user what to do.
Release Notes:
- N/A
Richard Feldman
created
4a302a2
If file is too big, provide the outline and suggest a follow-up tool (#28158)
Click to expand commit body
<img width="622" alt="Screenshot 2025-04-05 at 5 48 14 PM"
src="https://github.com/user-attachments/assets/24b9c7d4-d3e2-4929-bca8-79db5b4e5748"
/>
Release Notes:
- The `read_files` tool now reads only the symbol outline files above a
certain size, to conserve context window space. Then it suggests that
the agent call `read_files` again with the relevant line ranges it saw
in the outline.
Richard Feldman
created
3154b53
assistant: Fix `assistant: open prompt library` not opening the prompt library (#28156)
Click to expand commit body
This PR fixes the `assistant: open prompt library` action in the command
palette not opening the prompt library when the Assistant Panel did not
have focus.
Fixes https://github.com/zed-industries/zed/issues/28058.
Release Notes:
- assistant: Fixed `assistant: open prompt library` not opening the
prompt library when the Assistant Panel was not focused.
Marshall Bowers
created
959d5f5
bedrock: Add support for tool use, cross-region inference, and Claude 3.7 Thinking (#28137)
Click to expand commit body
Closes #27223
Merges: #27996, #26734, #27949
Release Notes:
- AWS Bedrock: Added advanced authentication strategies with:
- Short lived credentials with Session Tokens
- AWS Named Profile
- EC2 Identity, Pod Identity, Web Identity
- AWS Bedrock: Added Claude 3.7 Thinking support.
- AWS Bedrock: Adding Cross Region Inference for all combinations of
regions and model availability.
- Agent Beta: Added support for AWS Bedrock.
---------
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Shardul Vaidya
and
Marshall Bowers
created
2771623
copilot: Create Copilot directory if it does not exist (cherry-pick #28157) (#28178)
Click to expand commit body
Cherry-picked copilot: Create Copilot directory if it does not exist
(#28157)
Closes https://github.com/zed-industries/zed/issues/27966
Issue:
- Copilot is failing to launch because the copilot directory is missing
<img width="497" alt="image"
src="https://github.com/user-attachments/assets/af35eb66-7e91-4dc6-a862-d1575da33b5b"
/>
<img width="943" alt="image"
src="https://github.com/user-attachments/assets/0b195c8c-52eb-42b9-bf36-40086398cc3f"
/>
Release Notes:
- copilot: Fixed an issue where GitHub Copilot would not install
properly if the directory was not present.
---------
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Co-authored-by: Richard Hao <richard@0xdev.dev>
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
gcp-cherry-pick-bot[bot]
,
Richard Hao
, and
Marshall Bowers
created