40b76b9
add head tool
Smit Barmase created
40b76b9
add head tool
Smit Barmase created
6d97b4b
fix max line range size for zed agent
Smit Barmase created
b8081ad
Make it easy to point zeta2 at ollama (#42329)
I wanted to be able to work offline, so I made it a little bit more convenient to point zeta2 at ollama. * For zeta2, don't require that request ids be UUIDs * Add an env var `ZED_ZETA2_OLLAMA` that sets the edit prediction URL and model id to work w/ ollama. Release Notes: - N/A
Max Brunsfeld created
35c5815
git: Fix support for self-hosted Bitbucket (#42002)
Closes #41995 Release Notes: - Fixed support for self-hosted Bitbucket
ᴀᴍᴛᴏᴀᴇʀ created
e025ee6
git: Add base branch support to create_branch (#42151)
Closes [#41674](https://github.com/zed-industries/zed/issues/41674) Description: Creating a branch from a base requires switching to the base branch first, then creating the new branch and checking out to it, which requires multiple operations. Add base_branch parameter to create_branch to allow a new branch from a base branch in one operation which is synonymous to the command `git switch -c <new-branch> <base-branch>`. Below is the video after solving the issue: (`master` branch is the default branch here, and I create a branch `new-branch-2` based off the `master` branch. I also show the error which used to appear before the fix.) [Screencast from 2025-11-07 05-14-32.webm](https://github.com/user-attachments/assets/d37d1b58-af5f-44e8-b867-2aa5d4ef3d90) Release Notes: - Fixed the branch-picking error by replacing multiple sequential switch operations with just one switch operation. Signed-off-by: ayu-ch <ayu.chandekar@gmail.com>
Ayush Chandekar created
c60d31a
git: Track worktree references to resolve stale repository state (#41592)
Closes #35997 Closes #38018 Closes #41516 Release Notes: - Fixes stale git repositories persisting after removal
Mayank Verma created
0bcf607
agent_ui: Always allow to include symbols (#42261)
We can always include symbols, since we either include a ResourceLink to the symbol (when `PromptCapabilities::embedded_context = false`) or a Resource (when `PromptCapabilities::embedded_context = true`) Release Notes: - Fixed an issue where symbols could not be included when using specific ACP agents
Bennet Bo Fenner created
431a195
acp: Fix issue with mentions when `embedded_context` is set to `false` (#42260)
Release Notes: - acp: Fixed an issue where Zed would not respect `PromptCapabilities::embedded_context`
Bennet Bo Fenner created
6db6251
agent_ui: Fix external agent icons in configuration view (#42313)
This PR makes the icons for external agents in the configuration view use `from_external_svg` instead of `from_path`. Release Notes: - N/A
Danilo Leal created
2fb3d59
agent_ui: Add component to standardize the configured LLM card (#42314)
This PR adds a new component to the `language_models` crate called `ConfiguredApiCard`: <img width="500" height="420" alt="Screenshot 2025-11-09 at 2 07@2x" src="https://github.com/user-attachments/assets/655ea941-2df8-4489-a4da-bba34acf33a9" /> We were previously recreating this component from scratch with regular divs in all LLM providers render function, which was redundant as they all essentially looked the same and didn't have any major variations aside from labels. We can clean up a bunch of similar code with this change, which is cool! Release Notes: - N/A
Danilo Leal created
cc1d66b
agent_ui: Improve API key configuration UI display (#42306)
Improve the layout and text display of API key configuration in multiple language model providers to ensure proper text wrapping and ellipsis handling when API URLs are long. Before: <img width="320" alt="image" src="https://github.com/user-attachments/assets/2f89182c-34a0-4f95-a43a-c2be98d34873" /> After: <img width="320" alt="image" src="https://github.com/user-attachments/assets/09bf5cc3-07f0-47bc-b21a-d84b8b1caa67" /> Changes include: - Add proper flex layout with overflow handling - Replace truncate_and_trailoff with CSS text ellipsis - Ensure consistent UI behavior across all providers Release Notes: - Improved API key configuration display in language model settings
chenmi created
5d08c1b
Surpress more rust-analyzer error logs (#42299)
Release Notes: - N/A *or* Added/Fixed/Improved ...
Lukas Wirth created
b7d4d17
diagnostics: Keep diagnostic excerpt ranges properly ordered (#42298)
Fixes ZED-2CQ We were doing the binary search by buffer points, but due to await points within this function we could end up mixing points of differing buffer versions. Release Notes: - N/A *or* Added/Fixed/Improved ...
Lukas Wirth created
81d38d9
Additional Windows keyboard input fixes (#42294)
- Enable Alt+Numpad input
- For this to be effective, the default keybindings for Alt+{Number}
will need to be unbound. This won't be needed once we gain the ability
to differentiate numpad digit keys from alphanumeric digit keys.
- Fixes https://github.com/zed-industries/zed/issues/40699
- Fix a number of edge cases with dead keys
Release Notes:
- N/A
John Tur created
21f73d9
Use ButtonLike and add OpenExcerptsSplit and dispatches on click (#42283)
Closes #42099 Release Notes: - N/A
Matt Miller created
12857a7
agent: Improve `AddSelectionToThread` action display (#42280)
Closes https://github.com/zed-industries/zed/issues/42276 This fixes the fact that the `AddSelectionToThread` action was visible when `disable_ai` was true, as well as it improves its display by making it either disabled or hidden when there are no selections in the editor. I also ended up removing it from the app menu simply because making it observe the `disable_ai` setting would be a bit more complex than I'd like at the moment, so figured that, given I'm also now adding it to the toolbar selection menu, we could do without it over there. Release Notes: - Fixed the `AddSelectionToThread` action showing up when `disable_ai` is true - Improved the `AddSelectionToThread` action display by only making it available when there are selections in the editor
Danilo Leal created
f6be16d
docs: Update text threads page (#42273)
Adding a section clarifying the difference between regular threads vs. text threads. Release Notes: - N/A
Danilo Leal created
94aa643
docs: Update agent tools page (#42271)
Release Notes: - N/A
Danilo Leal created
28a8515
shell_env: Wrap error context in format! where missing (#42267)
Release Notes: - N/A
Jakub Konka created
a2c2c61
Add helix keymap to delete without yanking (#41988)
Added previously missing keymap for helix deleting without yank. Action "editor::Delete" is mapped to "Ald-d" as in https://docs.helix-editor.com/master/keymap.html#changes Release Notes: - N/A
boris.zalman created
77667f4
Remove Markdown CodeBlock metadata and Custom rendering (#42211)
Follow up #40736 Clean up `CodeBlockRenderer::Custom` related rendering per the previous PR [comment](https://github.com/zed-industries/zed/pull/40736#issuecomment-3503074893). Additional note here: 1. The `Custom` variant in the enum `CodeBlockRenderer` will become not useful since cleaning all code related to the custom rendering logic. 2. Need to further review the usage of code block `metadata` field in `MarkdownTag::CodeBlock` enum. I would like to have the team further review my note above so that we can make sure it will be safe to clean it up and will not affect any potential future features will be built on top of it. Thank you! Release Notes: - N/A
Xipeng Jin created
b01a6fb
Fix missing highlight for macro_invocation bang (#41572)
(Not sure if this was left out on purpose, but this makes things feel a bit more consistent since [VS Code parses bang mark as part of the macro name](https://github.com/microsoft/vscode/blob/main/extensions/rust/syntaxes/rust.tmLanguage.json#L889-L905)) Release Notes: - Added the missing highlight for the bang mark in macro invocations. | **Before** | **After** | | :---: | :---: | | <img width="684" height="222" alt="before" src="https://github.com/user-attachments/assets/ae71eda3-76b5-4547-b2df-4e437a07abf5" /> | <img width="646" height="236" alt="fixed" src="https://github.com/user-attachments/assets/500deda5-d6d8-439c-8824-65c2fb0a5daa" /> |
Hyeondong Lee created
44d91c1
docs: Explain what scrollbar marks represent (#42130)
## Summary Adds explanations for what each type of scrollbar indicator visually represents in the editor. ## Description This PR addresses the issue where users didn't understand what the colored marks on the scrollbar mean. The existing documentation explained how to toggle each type of mark on/off, but didn't explain what they actually represent. This adds a brief, clear explanation after each scrollbar indicator setting describing what that indicator shows (e.g., "Git diff indicators appear as colored marks showing lines that have been added, modified, or deleted compared to the git HEAD"). ## Fixes Closes #31794 ## Test Plan - Documentation follows the existing style and format of `docs/src/configuring-zed.md` - Each explanation is concise and immediately follows the setting description - Language is clear and user-friendly Release Notes: - N/A
Roland Rodriguez created
d187cbb
Add comment injection support to remaining languages (#41710)
Release Notes: - Added support for comment language injections for remaining built-in languages and multi-line support for Rust
Donnie Adams created
c241ead
zeta2: Targeted retrieval search (#42240)
Since we removed the filtering step during context gathering, we want
the model to perform more targeted searches. This PR tweaks search tool
schema allowing the model to search within syntax nodes such as `impl`
blocks or methods.
This is what the query schema looks like now:
```rust
/// Search for relevant code by path, syntax hierarchy, and content.
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
pub struct SearchToolQuery {
/// 1. A glob pattern to match file paths in the codebase to search in.
pub glob: String,
/// 2. Regular expressions to match syntax nodes **by their first line** and hierarchy.
///
/// Subsequent regexes match nodes within the full content of the nodes matched by the previous regexes.
///
/// Example: Searching for a `User` class
/// ["class\s+User"]
///
/// Example: Searching for a `get_full_name` method under a `User` class
/// ["class\s+User", "def\sget_full_name"]
///
/// Skip this field to match on content alone.
#[schemars(length(max = 3))]
#[serde(default)]
pub syntax_node: Vec<String>,
/// 3. An optional regular expression to match the final content that should appear in the results.
///
/// - Content will be matched within all lines of the matched syntax nodes.
/// - If syntax node regexes are provided, this field can be skipped to include as much of the node itself as possible.
/// - If no syntax node regexes are provided, the content will be matched within the entire file.
pub content: Option<String>,
}
```
We'll need to keep refining this, but the core implementation is ready.
Release Notes:
- N/A
---------
Co-authored-by: Ben <ben@zed.dev>
Co-authored-by: Max <max@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Agus Zubiaga , Ben , Max , and Max Brunsfeld created
5f82264
Automate settings registration (#42238)
Release Notes: - N/A --------- Co-authored-by: Nia <nia@zed.dev>
Mikayla Maki and Nia created
309947a
editor: Allow clicking on excerpts with alt key to open file path (#42235)
#42021 Made clicking on an excerpt title toggle it. This PR brings back the old behavior if a user is pressing the Alt key when clicking on an excerpt title. Release Notes: - N/A --------- Co-authored-by: Remco Smits <djsmits12@gmail.com>
Anthony Eid and Remco Smits created
0881e54
terminal: Spawn terminal process on main thread on unix (#42234)
Otherwise the terminal will not process the signals correctly Release Notes: - Fixed ctrl+c and friends not working in the terminal on macOS and linux
Lukas Wirth created
4511d11
bundle: Skip sentry upload for local install on macOS (#42231)
This is a follow up to #41482. When running `script/bundle-mac`, it will upload debug symbols to Sentry if you have a `$SENTRY_AUTH_TOKEN` set. I happen to have one set, so this script was trying to generate and upload those. Whoops! This change skips the upload entirely if you're running a local install. Release Notes: - N/A
claytonrcarter created
19d2fdb
Refresh releases page post deploy (#42218)
Release Notes: - N/A
Conrad Irwin created
20953ec
Make nightly bucket objects public (#42229)
Makes it easier to port updates to cloudflare Closes #ISSUE Release Notes: - N/A
Conrad Irwin created
7475bda
debugger: Truncate scope names to avoid text overlapping in variable list (#42230)
Closes #41969 This was caused because scope names weren't being truncated unlike the other type of variable list entries. Release Notes: - debugger: Fix bug where minimizing the width of the variable list would cause scope names to overlap Co-authored-by: Remco Smits <djsmits12@gmail.com>
Anthony Eid and Remco Smits created
8e4c807
Fix duplicated 'the' typo (#42225)
Just found this while reading the docs. Release Notes: - N/A
Dima created
a66dac7
Fix crash during drag-and-drop on Windows (#42227)
The HGLOBAL is itself the HDROP. Do not dereference it. Release Notes: - windows: Fixed crashes during drag-and-drop operations
John Tur created
8a903f9
2025 11 07 update privacy docs (#42226)
Docs update Release Notes: - N/A
morgankrey created
9f9575d
Silence rust-analyzer startup errors (#42222)
When rust-analyzer is still loading the cargo project it tends to error out on most lsp requests with `content modified`. This pollutes our logs. Release Notes: - N/A *or* Added/Fixed/Improved ...
Lukas Wirth created
00898d4
docs: Add docs on extension capabilities (#42223)
This PR adds some initial docs on extension capabilities. Release Notes: - N/A
Marshall Bowers created
bcc3307
Add optional Zed log field to all bug report templates (#42221)
Release Notes: - N/A
Joseph T. Lyons created
8ba33ad
gpui: Do not unwrap in `window_procedure` (#42216)
Technically these should not be possible to hit, but sentry says otherwise. Turning these into errors should give us more information than the abort due to unwinding across ffi boundaries. Fixes ZED-321 Release Notes: - N/A *or* Added/Fixed/Improved ...
Lukas Wirth created
1e63448
docs: Update extension features language (#42215)
This PR updates the language around what features extensions can provide. Release Notes: - N/A
Marshall Bowers created
93f9cff
Remove invalid assertion in editor (#42210)
Release Notes: - N/A
Jakub Konka created
6cafe4a
gpui: Do not panic when unable to find the selected fonts (#42212)
Fixes ZED-329 Release Notes: - N/A *or* Added/Fixed/Improved ...
Lukas Wirth created
585c440
util: Support shell env fetching for git bash (#42208)
Release Notes: - N/A *or* Added/Fixed/Improved ...
Lukas Wirth created
083bd14
util: Fall back to `cmd` if we can't find powershell on the system (#42204)
Closes https://github.com/zed-industries/zed/issues/42165 Release Notes: - Fixed trying to use powershell for commands when its not installed on the system
Lukas Wirth created
9591790
markdown: Add support for `HTML` styling attributes (#42143)
Second take on https://github.com/zed-industries/zed/pull/37765. This PR adds support for styling elements (**b**, **strong**, **em**, **i**, **ins**, **del**), but also allow you to show the styling text inline with the current text. This is done by appending all the up-following text into one text chunk and merge the highlights from both of them into the already existing chunk. If there does not exist a text chunk, we will create one and the next iteration we will use that one to store all the information on. **Before** <img width="483" height="692" alt="Screenshot 2025-11-06 at 22 08 09" src="https://github.com/user-attachments/assets/6158fd3b-066c-4abe-9f8e-bcafae85392e" /> **After** <img width="868" height="300" alt="Screenshot 2025-11-06 at 22 08 21" src="https://github.com/user-attachments/assets/4d5a7a33-d31c-4514-91c8-2b2a2ff43e0e" /> **Code example** ```html <p>some text <b>bold text</b></p> <p>some text <strong>strong text</strong></p> <p>some text <i>italic text</i></p> <p>some text <em>emphasized text</em></p> <p>some text <del>delete text</del></p> <p>some text <ins>insert text</ins></p> <p>Some text <strong>strong text</strong> more text <b>bold text</b> more text <i>italic text</i> more text <em>emphasized text</em> more text <del>deleted text</del> more text <ins>inserted text</ins></p> <p><a href="https://example.com">Link Text</a></p> <p style="text-decoration: underline;">text styled from style attribute</p> ``` cc @bennetbo **TODO** - [x] add tests for styling nested text that should result in one merge Release Notes: - Markdown Preview: Added support for `HTML` styling elements --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Remco Smits and Bennet Bo Fenner created
74bf1a1
recent_projects: Do not try to watch `/etc/ssh/ssh_config` on windows (#42200)
Release Notes: - N/A *or* Added/Fixed/Improved ...
Lukas Wirth created
e72c3bf
agent_ui: Remove `message_editor` module (#42195)
Artefact from agent1 removal Release Notes: - N/A
Bennet Bo Fenner created
160bf91
language_models: Filter out whitespace-only text content parts for OpenAI and OpenAI compatible providers (#40316)
Closes #40097
When multiple files are added sequentially to the agent panel, the
request JSON incorrectly includes "text" elements containing only
spaces. These empty elements cause the Zhipu AI API to return a "text
cannot be empty" error.
The fix filters out any "text" elements that are empty or contain only
whitespaces.
UI state when the error occurs:
<img width="300" alt="Image"
src="https://github.com/user-attachments/assets/c55e5272-3f03-42c0-b412-fa24be2b0043"
/>
Request JSON (causing the error):
```
{
"model": "glm-4.6",
"messages": [
{
"role": "system",
"content": "<<CUT>>"
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "[@1.txt](zed:///agent/file?path=C%3A%5CTemp%5CTest%5C1.txt)"
},
{ "type": "text", "text": " " },
{
"type": "text",
"text": "[@2.txt](zed:///agent/file?path=C%3A%5CTemp%5CTest%5C2.txt)"
},
{ "type": "text", "text": " describe" },
```
Release Notes:
- Fixed an issue when an OpenAI request contained whitespace-only text content
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Maokaman1 and Bennet Bo Fenner created
aff4c25
markdown: Restore horizontal scrollbars for codeblocks (#40736)
### Summary Restore the agent pane’s code-block horizontal scrollbar for easier scrolling without trackpad and preserve individual scroll state across multiple code blocks. ### Motivation Addresses https://github.com/zed-industries/zed/issues/34224, where agent responses with wide code snippets couldn’t be scrolled horizontally in the panel. Previously there is no visual effect for scrollbar to let the user move the code snippet and it was not obviously to use trackpad or hold down `shift` while scrolling. This PR will ensure the user being able to only use their mouse to drag the horizontal scrollbar to show the complete line when the code overflow the width of code block. ### Changes - Support auto-hide horizontal scrollbar for rendering code block in agent panel by adding scrollbar support in markdown.rs - Add `code_block_scroll_handles` cache in _crates/markdown/src/markdown.rs_ to give each code block a persistent `ScrollHandle`. - Wrap rendered code blocks with custom horizontal scrollbars that match the vertical scrollbar styling and track hover visibility. - Retain or clear scroll handles based on whether horizontal overflow is enabled, preventing leaks when the markdown re-renders. ### How to Test 1. Open the agent panel, request code generation, and ensure wide snippets show a horizontal scrollbar on hover. 3. Scroll horizontally, navigate away (e.g., change tabs or trigger a re-render), and confirm the scroll position sticks when returning. 5. Toggle horizontal overflow styling off/on (if applicable) and verify scrollbars appear or disappear appropriately. ### Screenshots / Demos (if UI change) https://github.com/user-attachments/assets/e23f94d9-8fe3-42f5-8f77-81b1005a14c8 ### Notes for Reviewers - This is my first time contribution for `zed`, sorry for any code patten inconsistency. So please let me know if you have any comments and suggestions to make the code pattern consistent and easy to maintain. - For now, the horizontal scrollbar is not configurable from the setting and the style is fixed with the same design as the vertical one. I am happy to readjust this setting to fit the needs. - Please let me know if you think any behaviors or designs need to be changed for the scrollbar. - All changes live inside _crates/markdown/src/markdown.rs_; no API surface changes. Closes #34224 ### Release Notes: - AI: Show horizontal scroll-bars in wide markdown elements
Xipeng Jin created
146e754
URL-encode the image paths in Markdown so that images with filenames (#41788)
Closes https://github.com/zed-industries/zed/issues/41786 Release Notes: - markdown preview: Fixed an issue where path urls would not be parsed correctly when containing URL-encoded characters <img width="1680" height="1126" alt="569415cb-b3e8-4ad6-b31c-a1898ec32085" src="https://github.com/user-attachments/assets/7de8a892-ff01-4e00-a28c-1c5e9206ce3a" />
aohanhongzhi created