Commit Graph
43 Commits
Author SHA1 Message Date
Antonio Scandurra 457eb69cb7 Allow pressing escape to cancel the current assistant generation (#10987)
If the assistant has already emitted some text, we will leave the
assistant message but maintain the cursor on the previous user message,
so that the user can easily discard the message by submitting again.

If no output was emitted yet, we simply delete the empty assistant
message.

Release Notes:

- N/A
2024-04-25 15:12:58 +02:00
Antonio Scandurra 22db381c87 Fix autoscroll in the new assistant (#10928)
This removes the manual calls to `scroll_to_reveal_item` in the new
assistant, as they are superseded by the new autoscrolling behavior of
the `List` when the editor requests one.

Release Notes:

- N/A
2024-04-24 14:12:44 +02:00
Kyle Kelley 1bcec14826 Include root schema as parameters for tool calling (#10914)
Allows `LanguageModelTool`s to include nested structures, by exposing
the definitions section of their JSON Schema.

Release Notes:

- N/A
2024-04-23 20:49:29 -07:00
33fde84623 New revision of the Assistant Panel (#10870)
This is a crate only addition of a new version of the AssistantPanel.
We'll be putting this behind a feature flag while we iron out the new
experience.

Release Notes:

- N/A

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Conrad Irwin <conrad@zed.dev>
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Co-authored-by: Antonio Scandurra <antonio@zed.dev>
Co-authored-by: Nate Butler <nate@zed.dev>
Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Max <max@zed.dev>
2024-04-23 16:23:26 -07:00
Max BrunsfeldandMikayla 74e6eb908f Remove 2 suffix for assistant, journal
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 11:14:01 -08:00
Max BrunsfeldandMikayla a13a885d6b Remove 2 suffix for workspace
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 11:08:51 -08:00
Max BrunsfeldandMikayla dcfa67d7dc Remove 2 suffix for multi_buffer, outline, copilot
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 11:01:58 -08:00
Max BrunsfeldandMikayla 602d158320 Remove 2 suffix for editor
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 10:58:57 -08:00
Max BrunsfeldandMikayla 8a45a99477 Remove 2 suffix for language_tools, search, terminal_view, auto_update
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 10:52:40 -08:00
Piotr Osiewicz f6d74c931f Merge branch 'main' into refine-render-traits 2024-01-03 12:27:42 +01:00
Julia beef49f17d Add icon_tooltip for panel buttons rather than using persistent name 2024-01-02 17:56:19 -05:00
Nathan Sobo 30b34bdb4a Return impl IntoElement from Render::render trait 2024-01-02 10:09:05 -07:00
Nathan Sobo 5e93c10cf2 Rename build_view to new_view and build_model to new_model
The word "new" is shorter and blends in with `new` constructors that are common
in Rust. Been meaning to do this for a while.
2024-01-01 17:42:01 -07:00
Nathan Sobo 5a75996184 Attempt to return impl Element from render. 3 errors. 2024-01-01 14:23:02 +01:00
Antonio Scandurra 587a6fafcd Use Pixels instead of f32 for panel size 2023-12-22 18:26:33 +01:00
Marshall Bowers c0ceb4c0dd Increase inline assistant editor's line height (#3757)
This PR increases the line height for the inline assistant editor.

This fixes an issue where descenders were being clipped.

Release Notes:

- N/A
2023-12-21 10:56:52 -05:00
Antonio Scandurra dee2603e1b Use existing AnyElement::draw 2023-12-21 15:32:05 +01:00
Antonio Scandurra 7ca4f7ebed Fix warnings 2023-12-21 15:27:08 +01:00
Antonio Scandurra 83a0359593 Allow scrolling saved conversations 2023-12-21 15:22:49 +01:00
Marshall Bowers d5b97db646 Fix typo in "Quote Selection" tooltip (#3721)
This PR fixes a typo in the "Quote Selection" tooltip.

Release Notes:

- N/A
2023-12-19 16:21:58 -05:00
Nate Butler e041bb3df7 Update assistant editor 2023-12-19 12:04:01 -05:00
Nate Butler 0741529559 Update assistant panel message header, model switcher 2023-12-19 11:58:20 -05:00
Nate Butler 07a35fcbee Update imports, tab height const 2023-12-19 11:03:08 -05:00
Nate Butler 7c25a38772 Update assistant header 2023-12-19 10:57:36 -05:00
Nate Butler ce3d873a3b Style assistant header, update icons 2023-12-19 10:30:46 -05:00
Nate Butler e9d938e4f0 Remove red border 2023-12-19 10:03:59 -05:00
Nate Butler 937d6f8152 Ensure conversation items fill the container 2023-12-19 10:03:26 -05:00
Nate Butler aef05e5466 Update conversation item rendering 2023-12-19 09:56:29 -05:00
Conrad Irwin 9befa3f9ca Restore namespace parameter to actions!
This does not yet fix `derive(Action)`, but will conflict with a lot so
wanted to merge quickly.
2023-12-09 15:18:31 -07:00
Max BrunsfeldandNathan 0991a4296b Start work on chat panel and non-uniform list
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-08 12:30:49 -08:00
Antonio Scandurra 75c456997f Use the correct icons in AssistantPanel header 2023-12-07 10:53:24 +01:00
Antonio Scandurra 0ab459a950 Simplify focus management in AssistantPanel 2023-12-07 10:38:00 +01:00
Antonio Scandurra 070da1be20 Ensure editor gets focused when selecting conversation 2023-12-07 10:27:25 +01:00
Marshall Bowers d43165a04f Update inline assist styles 2023-12-06 13:52:38 -05:00
Antonio ScandurraandMarshall 4aab4c5411 Use a handler instead of an action for clicks
This prevents dispatching actions on buttons that were not the target of the click.

Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-06 19:12:01 +01:00
Antonio ScandurraandMarshall 5f331ddbb8 Move assistant actions to the top of the crate
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-06 18:39:50 +01:00
Antonio ScandurraandMarshall 6ff7f2e035 Add key context to ConversationEditor
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-06 17:56:05 +01:00
Antonio Scandurra df706bd855 WIP 2023-12-06 16:34:07 +01:00
Antonio Scandurra 2be86deeaf Start wiring up assistant2 2023-12-06 12:51:25 +01:00
Antonio Scandurra 13b51ae787 WIP 2023-12-06 12:12:28 +01:00
Antonio Scandurra 50ff26b06d WIP 2023-12-05 19:27:15 +01:00
Antonio Scandurra 304dbed62b WIP 2023-12-05 18:14:24 +01:00
Antonio Scandurra 6688546075 WIP 2023-12-05 16:49:36 +01:00