8a32066
Add support for GPT-4o in Copilot Chat (#16446)
Click to expand commit body
Release Notes: - Added support for GPT-4o for Copilot Chat.
Ryan Hawkins created
8a32066
Add support for GPT-4o in Copilot Chat (#16446)
Release Notes: - Added support for GPT-4o for Copilot Chat.
Ryan Hawkins created
86efde4
Fixed bugs in workflow step preview (#16445)
Release Notes: - N/A
Mikayla Maki created
43e13df
Add a /perplexity slash command in an extension (#16438)
Release Notes: - N/A
Nathan Sobo created
b9176fe
Add custom icon for Anthropic hosted models (#16436)
This commit adds a custom icon for Anthropic hosted models.   - Adding a new SVG icon for Anthropic hosted models. - The new icon is located at: `assets/icons/ai_anthropic_hosted.svg` - Updating the LanguageModel trait to include an optional icon method - Implementing the icon method for CloudModel to return the custom icon for Anthropic hosted models - Updating the UI components to use the model-specific icon when available - Adding a new IconName variant for the Anthropic hosted icon We should change the non-hosted icon in some small way to distinguish it from the hosted version. I duplicated the path for now so we can hopefully add it for the next release. Release Notes: - N/A
Nathan Sobo created
1175391
Add a setting to show time to first window draw and frames per second in status bar (#16422)
I want to showcase Zed's performance via videos, and this seemed like a good way to demonstrate it. https://github.com/user-attachments/assets/f4a5fabc-efe7-4b48-9ba5-719882fdc856 Release Notes: - On macOS, you can now set assign `performance.show_in_status_bar: true` in your settings to show the time to the first window draw on startup and then current FPS of the containing window's renderer. --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Kirill Bulatov <kirill@zed.dev> Co-authored-by: David Soria Parra <167242713+dsp-ant@users.noreply.github.com> Co-authored-by: Danny Hua <danny.hua@hey.com>
Nathan Sobo , Max Brunsfeld , Kirill Bulatov , David Soria Parra , and Danny Hua created
6f93b42
docs: Fix example extension directory structure (#16424)
Add language-specific subdirectory in example directory structure, since that's the requisite structure - see `extensions/languages.md` Release Notes: - N/A
Danny Hua created
10a996c
context_servers: Fix argument handling (#16402)
David Soria Parra created
5e6e465
Show correct number of characters selected (#16420)
Kirill Bulatov created
8841d6f
Avoid redundant newline insertion after file command (#16419)
Release Notes: - Fixed an issue where an extra newline was inserted after running a `/file` command in the assistant.
Max Brunsfeld created
c9c5eef
Improve dev experience for built-in prompts (#16413)
When launching Zed from the CLI via `cargo run`, we'll always prompt load templates from the repo. This restores behavior that I reverted last night in #16403. Also, I've improved the `script/prompts link/unlink` workflow for overriding prompts of your production copy of Zed. Zed now detects when the overrides directory is created or removed, and does the right thing. You can link and unlink repeatedly without restarting Zed. Release Notes: - N/A
Nathan Sobo created
7c268d0
assistant: Remove meta description from quote selection tooltip (#16412)
The original idea was for the keybinding to be within the description, but given it's already inline with the title, I figure we don't need this anymore—cleaning it up a bit! --- Release Notes: - N/A
Danilo Leal created
e4a591d
workflow: Add button to open the step view (#16387)
This PR adds an icon button that appears as you hover over the step header, which allows users to visit the step view. --- Release Notes: - N/A
Danilo Leal created
07d5e22
Revert changes to inline assist indentation logic and prompt (#16403)
This PR reverts #16145 and subsequent changes. This reverts commit a515442a365229155cde3de946e1b3eb244c0d36. We still have issues with our approach to indentation in Python unfortunately, but this feels like a safer equilibrium than where we were. Release Notes: - Returned to our previous prompt for inline assist transformations, since recent changes were introducing issues.
Nathan Sobo created
ebecd7e
Fix issue with fetching users in seed script (#16393)
Release Notes: - N/A
Joseph T. Lyons created
18f0626
Update assistant docs to mention inline works in the terminal
Joseph T Lyons created
3d997e5
collab: Add `is_staff` to spans (#16389)
This PR adds the `is_staff` field to our LLM spans so that we can distinguish between staff and non-staff traffic. Release Notes: - N/A
Marshall Bowers created
1b1070e
Add tracing needed for LLM rate limit dashboards (#16388)
Release Notes: - N/A --------- Co-authored-by: Marshall <marshall@zed.dev>
Max Brunsfeld and Marshall created
9ef3306
Add feature flags to seed script (#16385)
Release Notes: - N/A
Joseph T. Lyons created
0fdc9d0
context_servers: Log errors from detached context server tasks (#16377)
Logged several of the detached tasks that before would silently fail if the context server wasn't in compliance. Release Notes: - N/A
Kyle Kelley created
907d762
Allow display name of custom Anthropic models to be customized (#16376)
Also added some docs for our settings. Release Notes: - N/A
Nathan Sobo created
ae9e6a9
Allow rerunning tasks with unknown termination status (#16374)
Kirill Bulatov created
e36e605
assistant: Fine-tune error toast design (#16373)
Just some super small padding and absolute-positioning tweaks. --- Release Notes: - N/A
Danilo Leal created
35cd397
collab: Allow enabling feature flags for all users (#16372)
This PR adds a new `enabled_for_all` column to the `feature_flags` table to allow enabling a feature flag for all users. Release Notes: - N/A
Marshall Bowers created
2180dbd
assistant: Add action footer and refine slash command popover (#16360)
- [x] Put the slash command popover on the footer - [x] Refine the popover (change it to a picker) - [x] Add more options dropdown on the assistant's toolbar - [x] Add quote selection button on the footer --- Release Notes: - N/A --------- Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Co-authored-by: Nate Butler <iamnbutler@gmail.com> Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
Danilo Leal , Piotr Osiewicz , Nate Butler , and Kirill Bulatov created
23d56a1
Add configuration flow for inline assist button (#16369)
This adds a configuration prompt when using the inline assist button in the editor. Release Notes: - N/A
Mikayla Maki created
a944187
collab: Fix writing LLM rate limit events to Clickhouse (#16367)
This PR fixes the writing of LLM rate limit events to Clickhouse. We had a table in the table name: `llm_rate_limits` instead of `llm_rate_limit_events`. I also extracted a helper function to write to Clickhouse so we can use it anywhere we need to. Release Notes: - N/A
Marshall Bowers created
6cfbb54
Switch icon (#16363)
Updates instances of the `MagicWand` icon to our more recent `Sparkle` / `ZedAssistant` icon in places where we reference inline assist. Before:  After:  Release Notes: - Updated inline assist icon in the editor & terminal.
Nate Butler created
7a5acc0
collab: Rework model name checks (#16365)
This PR reworks how we do checks for model names in the LLM service. We now normalize the model names using the models defined in the database. Release Notes: - N/A
Marshall Bowers created
463ac7f
Correct H1 text for assistant documentation
Joseph T Lyons created
ee27114
Remove redundant assistant content (#16364)
Release Notes: - N/A
Joseph T. Lyons created
ebac9a7
Combine assistant documentation (#16362)
Release Notes: - N/A
Joseph T. Lyons created
4558505
Fix more bugs in files (#16241)
Fixes: - [x] an issue where directories would only match by prefix, causing both a directory and a file to be matched if in the same directory - [x] An issue where you could not continue a file completion when selecting a directory, as `tab` on a file would always run the command. This effectively disabled directory sub queries. - [x] Inconsistent rendering of files and directories in the slash command Release Notes: - N/A --------- Co-authored-by: max <max@zed.dev>
Mikayla Maki and max created
a3a6ebc
Small fixes to content generation prompt (#16359)
Fixed the output format section of the content_prompt.hbs template getting rendered away by handlebars. Also fixed a leftover hardcoded "Rust" in the rewrite section snippet. (follow-up to #16333) Release Notes: - N/A
jvmncs created
b4f5f50
Support 8192 output tokens for Claude Sonnet 3.5 (#16358)
Release Notes: - Added support for 8192 output tokens from Claude Sonnet 3.5 (https://x.com/alexalbert__/status/1812921642143900036)
Roy Williams created
7eab57a
Add a task for running zed in "local release" mode (#16357)
Release Notes: - N/A
Kirill Bulatov created
f1a2638
Do not enable copilot for always read-only editors (#16356)
Release Notes: - N/A
Kirill Bulatov created
0fe22f2
After streaming generation is over, show a regular, batch diff in the file altered (#16350)
Release Notes: - N/A
Kirill Bulatov created
f7f5a25
repl: Apply border for error output on left (#16334)
Kyle Kelley created
40d97fd
windows: Fix missing title bar on `prompt library` (#16302)
Closes #16297 It seems that currently we can't draw custom title bar. I have checked the `title_bar` crate, it seems to be `zed` only. Before:  After:  Release Notes: - N/A
张小白 created
ad44b45
Improve content generation prompt to reduce over-generation (#16333)
I focused on cases where we're inserting doc comments or annotations above symbols. I added 5 new examples to the content generation prompt, covering various scenarios: 1. Inserting documentation for a Rust struct 2. Writing docstrings for a Python class 3. Adding comments to a TypeScript method 4. Adding a derive attribute to a Rust struct 5. Adding a decorator to a Python class These examples demonstrate how to handle different languages and common tasks like adding documentation, attributes, and decorators. To improve context integration, I've made the following changes: 1. Added a `transform_context_range` that includes 3 lines before and after the transform range 2. Introduced `rewrite_section_prefix` and `rewrite_section_suffix` to provide more context around the section being rewritten 3. Updated the prompt template to include this additional context in a separate code snippet Release Notes: - Reduced instances of over-generation when inserting docs or annotations above a symbol.
Nathan Sobo created
bac39d7
assistant: Only push text content if not empty with image content (#16270)
If you submit an image with empty space above it and text below, it will fail with this error:  Now instead it fails with an error about needing a message. <img width="640" alt="image" src="https://github.com/user-attachments/assets/72b267eb-b288-40a5-a829-750121ff16cc"> It will however work with text above and empty text below the image now. Release Notes: - Improved conformance with Anthropic Images in Chat Completions API
Kyle Kelley created
46fb917
Implement Anthropic prompt caching (#16274)
Release Notes: - Adds support for Prompt Caching in Anthropic. For models that support it this can dramatically lower cost while improving performance.
Roy Williams created
09b6e3f
Improve workflow step view (#16329)
* Improve the tab title: give it an icon, and indicate the step index. * Display the line number ranges that the symbols resolve to. * Don't open duplicate tabs for the same step Release Notes: - N/A
Max Brunsfeld created
364a58a
Move context tests into their own file (#16327)
This makes it easier to use the outline view to navigate `context.rs`, and reduces the indentation level of the tests. Release Notes: - N/A
Max Brunsfeld created
c896ff2
Remove workflow inspector, clean up workflow code (#16325)
Now that there's a dedicated, user-facing view for each workflow step, we don't need the inspector functionality. This PR also cleans up some naming around workflow steps and step resolutions. Release Notes: - N/A
Max Brunsfeld created
da2bfbd
repl: Scale the text_style font_size and line_height (#16308)
Replaces #16273. Release Notes: - repl: Fixed scaling of stdout/stderr line heights --------- Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Kyle Kelley , Mikayla , and Nate Butler created
0b40716
Update assistant docs (#16324)
Release Notes: - N/A
Joseph T. Lyons created
b151241
assistant: Improve the empty state for the prompt library (#16320)
This PR improves the empty state of the prompt library. The right-hand side of the library is now dedicated to an empty state that guides the user to create their first prompt. Additionally, the message in the picker now reads "No prompts." when there are no prompts. #### No prompts <img width="1136" alt="Screenshot 2024-08-15 at 6 20 26 PM" src="https://github.com/user-attachments/assets/f9af2b5d-c4d3-4e2c-9ba2-f17e89f19bb7"> #### No prompts that match the search <img width="1136" alt="Screenshot 2024-08-15 at 5 55 07 PM" src="https://github.com/user-attachments/assets/2cd4ff9b-958d-4bd0-90d3-dca62b1a91a0"> Release Notes: - N/A
Marshall Bowers created
f65b2b9
assistant: Fix toggling the model selector via keybind (#16319)
This PR restores the ability to toggle the model selector via a keybind after it was lost in #15693. Release Notes: - Restored the ability to toggle the model selector in the Assistant via a keybinding (Preview only).
Marshall Bowers created
776442f
Add a workflow step resolution view (#16315)
You can now click on a step header (the words `Step 3`, etc) to open a new tab containing a dedicated view for the resolution of that step. This view looks similar to a context editor, and has sections for the step input, the streaming tool output, and the interpreted results. Hitting `cmd-enter` in this view re-resolves the step. https://github.com/user-attachments/assets/64d82cdb-e70f-4204-8697-b30df5a645d5 Release Notes: - N/A --------- Co-authored-by: Nathan <nathan@zed.dev>
Max Brunsfeld and Nathan created