Commit log

e884d00 docs: Fix links in assistant-panel.md (#16529)

Click to expand commit body
Release Notes:

- N/A

Bennet Bo Fenner created

0c980cd docs: Cleanup assistant configuration documentation (#16526)

Click to expand commit body
Release Notes:

- N/A

Bennet Bo Fenner created

9951df7 Update some docs keybindings to new format (#16524)

Click to expand commit body
Updates some of the docs pages to the new keybinding format.

Release Notes:

- N/A

Nate Butler created

936466e docs: Reword "Extensibility" section of slash command docs (#16521)

Click to expand commit body
This PR rewords the "Extensibility" section of the slash command docs.

Release Notes:

- N/A

Marshall Bowers created

1eb1e16 docs: Fix possessive "its" typos (#16516)

Click to expand commit body
This PR fixes a number of typos where possessive "its" wasn't being used
properly.

Release Notes:

- N/A

Marshall Bowers created

b674043 workspace: Improve error handling when dropping a file that cannot be opened into the workspace pane (#15613)

Click to expand commit body
This PR can improve the UX when dropping a file that cannot be opened
into the workspace pane. Previously, nothing happened without any
messages when such error occurred, which could be awkward for users.
Additionally the pane was being split even though the file failed to
open.

Here's a screen recording demonstrating the previous/updated behavior:


https://github.com/user-attachments/assets/cfdf3488-9464-4568-b16a-9b87718bd729

Changes:

- It now displays an error message if a file cannot be opened.
- Updated the logic to first try to open the file. The pane splits only
if the file opening process is successful.

Release Notes:

- Improved error handling when opening files in the workspace pane. An
error message will now be displayed if the file cannot be opened.
- Fixed an issue where unnecessary pane splitting occurred when a file
fails to open.

Suhun Han created

c251a50 assistant: Update docs (#16515)

Click to expand commit body
- Fix links on assistant page to subpages
- Mention the configuration view in the `configuration.md` and document
more settings

Release Notes:

- N/A

---------

Co-authored-by: Piotr <piotr@zed.dev>

Bennet Bo Fenner and Piotr created

e482fcd Fall back to FindAllReferences if GoToDefinition have not navigated (#16512)

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

Release Notes:

- N/A

---------

Co-authored-by: Alex Kladov <aleksey.kladov@gmail.com>

Kirill Bulatov and Alex Kladov created

f185269 repl: Upgrade runtimelib (#16499)

Click to expand commit body
Upgrades runtimelib to bring in some fixes from
https://github.com/runtimed/runtimed/pull/114 and
https://github.com/runtimed/runtimed/pull/113 that work towards
addressing issues interfacing with the Julia kernel.

Release Notes:

- N/A

Kyle Kelley created

1f0dc8b Expand assistant docs (#16501)

Click to expand commit body
This PR significantly expands the assistant documentation, breaking it
out into sections, adding examples and further documenting features.

This PR introduces a convention in docs for swapping keybindings for mac
vs linux:

`<kbd>cmd-enter|ctrl-enter</kbd>`

In the above example, the first will be shown for mac, the second for
linux or windows.

TODO:

- [ ] Fix table style (for `/assistant/configuration`)
- [x] Add script to swap keybindings based on platform
- It should take in this format: [`cmd-n` (mac)|`ctrl-n`(linux)] and
return just the correct binding for the viewer's platform.
- [ ] Add image/video assets (non-blocking)

Release Notes:

- Updated assistant documentation

Nate Butler created

395a681 Add Postgrest to Docker Compose (#16498)

Click to expand commit body
This PR adds two Postgrest containers—one for the app database and one
for the LLM database—to the Docker Compose cluster.

Also fixed an issue where `postgres_app.conf` and `postgres_llm.conf`
had been switched.

Release Notes:

- N/A

Marshall Bowers created

77c08fa elixir: Bump to v0.0.8 (#16495)

Click to expand commit body
This PR bumps the Elixir extension to v0.0.8.

Changes:

- #16382

Release Notes:

- N/A

Marshall Bowers created

f7f7cd5 repl: Don't prefix free variables with `_` (#16494)

Click to expand commit body
This PR is a small refactor to remove the leading `_` for some free
variables, as this unintentionally marks them as unused to the compiler.

While the fields on the struct _are_ unused, the free variables should
participate in usage tracking, as we want to make sure they get stored
on the struct.

Release Notes:

- N/A

Marshall Bowers created

6f56746 assistant: Set default provider to zed.dev (#16454)

Click to expand commit body
Do NOT merge until tomorrow

Release Notes:

- N/A

---------

Co-authored-by: Thorsten <thorsten@zed.dev>

Bennet Bo Fenner and Thorsten created

8993a9f elixir: Make two more files required by lexical executable (#16382)

Click to expand commit body
I still haven't fixed building dev extensions with rust managed by nix,
so I'd appreciate testing this for me

Release Notes:

- N/A

Stanislav Alekseev created

9f66f12 v0.151.x dev

Joseph T Lyons created

3eb5488 Update Terms and Conditions (#16478)

Click to expand commit body
- Update Zed Terms of Use:
  - Rename from 'EULA' / 'Terms and Conditions'
  - Rename 'Zed Network Based Service' to 'Zed Service'
  - 3.3.2 Usage Data (formerly Telemetry Data)
    - Add examples of 'Usage Data'
- Add link to https://zed.dev/docs/telemetry - Explain 'telemetry ID' and user linkage
- 3.3.5 Privacy Policy - Add privacy policy reference - Add link to https://zed.dev/privacy-policy/
  - 5. OWNERSHIP
- Move "You retain all right, title and interest..." from 3.3 Customer Data
    - Additional note that customers retain Intellectual Property rights
- 9. Third Party Services - Add link to https://zed.dev/third-party-terms
- Add Privacy Policy
- Add Subprocessors
- Add Third Party Terms
- Update script/terms/terms.rtf for DMG bundle

Peter Tripp created

30bfa56 Avoid double message header in new contexts, don't expand default prompt (#16490)

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

* Don't expand the default prompt by default, since it looks strange in
the expanded state
* Don't create two `You` headers by default. Just insert a blank line
after the default prompt.

Release Notes:

- N/A

Max Brunsfeld created

0042c24 Simplify logic & add UI affordances to show model cache status (#16395)

Click to expand commit body
Release Notes:

- Adds UI affordances to the assistant panel to show which messages have
been cached
- Migrate cache invalidation to be based on `has_edits_since_in_range`
to be smarter and more selective about when to invalidate the cache and
when to fetch.

<img width="310" alt="Screenshot 2024-08-16 at 11 19 23 PM"
src="https://github.com/user-attachments/assets/4ee2d111-2f55-4b0e-b944-50c4f78afc42">

<img width="580" alt="Screenshot 2024-08-18 at 10 05 16 PM"
src="https://github.com/user-attachments/assets/17630a60-7b78-421c-ae39-425246638a12">


I had originally added the lightening bolt on every message and only
added the tooltip warning about editing prior messages on the first
anchor, but thought it looked too busy, so I settled on just annotating
the last anchor.

Roy Williams created

971db5c ci: Set the `ZED_CLOUD_PROVIDER_ADDITIONAL_MODELS_JSON` for builds (#16486)

Click to expand commit body
This PR updates the various GitHub Actions that build Zed binaries to
set the `ZED_CLOUD_PROVIDER_ADDITIONAL_MODELS_JSON` environment variable
from the corresponding secret.

Release Notes:

- N/A

Marshall Bowers created

b5bd8a5 Add logic for closed beta LLM models (#16482)

Click to expand commit body
Release Notes:

- N/A

---------

Co-authored-by: Marshall <marshall@zed.dev>

Max Brunsfeld and Marshall created

41fc6d0 Make providers more clear in model selector (#16480)

Click to expand commit body
Make providers more clear in model selector

Before:

![CleanShot 2024-08-19 at 13 20
36@2x](https://github.com/user-attachments/assets/5b43fa27-4aca-446a-a035-bc8bcb0d9b0e)

After:

![CleanShot 2024-08-19 at 13 20
05@2x](https://github.com/user-attachments/assets/cb961405-b573-42fe-80e1-f3c2ce828ea4)


Release Notes:

- N/A

Nate Butler created

9089770 assistant: Add imports in a single area when using workflows (#16355)

Click to expand commit body
Co-Authored-by: Kirill <kirill@zed.dev>

Release Notes:

- N/A

---------

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

Bennet Bo Fenner , Kirill , and Thorsten created

7fbea39 ui: Dismiss popovers when clicking on trigger button (#16476)

Click to expand commit body
Release Notes:

- Clicking on an already-deployed popover menu trigger now hides the
popover menu.

Piotr Osiewicz created

037cf13 assistant: Undo workflow step when buffer is discarded (#16465)

Click to expand commit body
This fixes a weird bug:

1. Use `/workflow` in assistant
2. Have it generate a step that modifies a file
3. Either (a) select the step in the assistant and have it auto-insert
newlines (b) select "Transform" to have the step applied
4. Close the modified file in the editor ("Discard")
5. Re-open the file
6. BUG: the changes made by assistant are still there!

The reason for the bug is that the assistant keeps references to buffers
and they're not closed/reloaded when closed/reopened.

To fix the bug we now rollback the applied workflow steps when
discarding a buffer.

(This does *not* yet fix the issue where a workflow step inserts a new
buffer into the project/worktree that does not show up on the file
system yet but in `/file` and hangs around until Zed is closed.)


Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>

Thorsten Ball and Bennet created

69aae20 Display default prompts more elaborately (#16471)

Click to expand commit body
Show them under `User` role instead of a `System` one, and insert them
expanded.

Release Notes:

- N/A

Kirill Bulatov created

bac8e81 assistant: Add the "create your command" item (#16467)

Click to expand commit body
This PR adds an extra item to the slash command picker that links users to the doc that teaches how to create a custom one.

Release Notes:

- N/A

---------

Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>

Piotr Osiewicz and Danilo Leal created

0bea4d5 theme: Change autocomplete value for `ui_font_features` and `buffer_font_features` (#16466)

Click to expand commit body
This PR changes the default value used when autocompleting the
`ui_font_features` and `ui_font_features` settings from `null` to `{}`.

Release Notes:

- N/A

Marshall Bowers created

4dec780 Update Rust crate heed to v0.20.5 (#16464)

Click to expand commit body
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [heed](https://togithub.com/Kerollmops/heed) | workspace.dependencies
| patch | `0.20.4` -> `0.20.5` |

---

### Release Notes

<details>
<summary>Kerollmops/heed (heed)</summary>

###
[`v0.20.5`](https://togithub.com/meilisearch/heed/releases/tag/v0.20.5):
🛁

[Compare
Source](https://togithub.com/Kerollmops/heed/compare/v0.20.4...v0.20.5)

<p align="center"><img width="280px"
src="https://raw.githubusercontent.com/meilisearch/heed/main/assets/heed-pigeon-logo.png"></a></p>
<h1 align="center" >heed</h1>

##### What's Changed
* fix function docs (clippy warnings) by
@&#8203;antonil[https://github.com/meilisearch/heed/pull/273](https://togithub.com/meilisearch/heed/pull/273)ll/273
* fix custom_key_cmp_wrapper being able to unwind to C code (ub) by
@&#8203;antonil[https://github.com/meilisearch/heed/pull/275](https://togithub.com/meilisearch/heed/pull/275)ll/275

##### New Contributors
* @&#8203;antonilol made their first
contributi[https://github.com/meilisearch/heed/pull/273](https://togithub.com/meilisearch/heed/pull/273)ll/273

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone
America/New_York, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

Release Notes:

- N/A

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

renovate[bot] and renovate[bot] created

de41c15 collab: Add `is_staff` to upstream rate limit spans (#16463)

Click to expand commit body
This PR adds the `is_staff` field to the `upstream rate limit` spans.

Since we use different API keys for staff vs non-staff, it will be
useful to break down the rate limits accordingly.

Release Notes:

- N/A

Marshall Bowers created

56f1ab9 assistant: Remove "Resolving" text for step resolution and use Transform instead (#16461)

Click to expand commit body
That way, user can click on "Transform" straight away and get it applied
immediately when it's resolved.



https://github.com/user-attachments/assets/08c99804-3841-4eba-a5eb-7066a9f45b47


TODO:
- [x] Tie "Send" button at the bottom into the same behavior

Release Notes:

- N/A

Piotr Osiewicz created

911112d assistant: Fix toggling slash command menu from toolbar menu (#16459)

Click to expand commit body
Release Notes:

- N/A

Piotr Osiewicz created

e68b2d5 assistant panel: Disable send button on config error (#16455)

Click to expand commit body
Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>

Thorsten Ball and Bennet created

f651333 assistant panel: Show if env var with API key is set (#16453)

Click to expand commit body
This makes it easier to debug why resetting a key doesn't work. We now
show when the key is set via an env var and if so, we disable the
reset-key button and instead give instructions.

![screenshot-2024-08-19-11 22
05@2x](https://github.com/user-attachments/assets/6c75dc82-cb61-4661-9647-f77fca8fdf41)


Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>

Thorsten Ball and Bennet created

14fa4ab assistant: Fix edge case where "Open new context" button would do nothing (#16452)

Click to expand commit body
Co-Authored-by: Thorsten <thorsten@zed.dev>

Release Notes:

- N/A

Co-authored-by: Thorsten <thorsten@zed.dev>

Bennet Bo Fenner and Thorsten created

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

86efde4 Fixed bugs in workflow step preview (#16445)

Click to expand commit body
Release Notes:

- N/A

Mikayla Maki created

43e13df Add a /perplexity slash command in an extension (#16438)

Click to expand commit body
Release Notes:

- N/A

Nathan Sobo created

b9176fe Add custom icon for Anthropic hosted models (#16436)

Click to expand commit body
This commit adds a custom icon for Anthropic hosted models.


![CleanShot 2024-08-18 at 15 40
38@2x](https://github.com/user-attachments/assets/d467ccab-9628-4258-89fc-782e0d4a48d4)
![CleanShot 2024-08-18 at 15 40
34@2x](https://github.com/user-attachments/assets/7efaff9c-6a58-47ba-87ea-e0fe0586fedc)


- 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)

Click to expand commit body
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)

Click to expand commit body
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)

Click to expand commit body
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)

Click to expand commit body
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)

Click to expand commit body
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)

Click to expand commit body
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)

Click to expand commit body
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)

Click to expand commit body
Release Notes:

- N/A

Joseph T. Lyons created

18f0626 Update assistant docs to mention inline works in the terminal

Joseph T Lyons created