Agus Zubiaga
59b5b9af90
assistant2: Suggest current file as context ( #22526 )
...
Suggest adding the current file as context in the new assistant panel.
https://github.com/user-attachments/assets/62bc267b-3dfe-4a3b-a6af-c89af2c779a8
Note: This doesn't include suggesting the current thread in the inline
assistant.
Release Notes:
- N/A
2025-01-02 13:33:47 +00:00
Danilo Leal
56b425fced
assistant2: Show the popover keybinding when context is empty ( #22452 )
...
This PR makes it so we always show the "Add Context {keybinding}" text
when there's no context pills attached. Also, while we haven't fully
implemented the mention system (triggered by typing `@`), we removed the
instruction on the message editor placeholder. Once that's fully in
place, we should return with it!
<img width="800" alt="Screenshot 2024-12-27 at 1 35 56 PM"
src="https://github.com/user-attachments/assets/201cf784-e7ac-420a-adf2-51b6e075c2b6 "
/>
Release Notes:
- N/A
---------
Co-authored-by: Agus Zubiaga <hi@aguz.me>
2024-12-27 16:54:31 +00:00
Danilo Leal
564936e1fe
assistant2: Add stray visual adjusments ( #22386 )
...
This PR adds just some tiny visual clean ups to the assistant2 panel.
Nothing major, honestly.
<img width="800" alt="Screenshot 2024-12-24 at 12 19 46 AM"
src="https://github.com/user-attachments/assets/da22aa7f-8a42-4ff0-9e4c-5e8b60b28802 "
/>
Release Notes:
- N/A
2024-12-24 04:26:13 +00:00
Danilo Leal
dcd21e6f23
assistant2: Use SwitchWithLabel
for the tool toggle ( #22317 )
...
<img width="800" alt="Screenshot 2024-12-20 at 8 52 27 PM"
src="https://github.com/user-attachments/assets/4b4f62a3-eb23-489b-a459-2117baaa37b4 "
/>
Release Notes:
- N/A
2024-12-21 00:15:47 +00:00
Richard Feldman
4ed0e5160f
Inline assistant v2 layout ( #22305 )
...
Makes the inline assistant look like @danilo-leal's prototype.
Also fixes the bug with indent guides that @maxdeviant found!
<img width="1059" alt="Screenshot 2024-12-20 at 4 24 56 PM"
src="https://github.com/user-attachments/assets/5e55a3c2-768a-4e9d-bad5-d4ebbe9db9ce "
/>
Release Notes:
- N/A
2024-12-20 22:00:52 +00:00
Marshall Bowers
fc00eaa161
assistant2: Reduce message editor's maximum height ( #22205 )
...
This PR reduces the message editor's maximum height to 10 lines, after
which point it will scroll.
Release Notes:
- N/A
2024-12-18 16:11:31 -05:00
Marshall Bowers
8b2afab0d3
assistant2: Wire up basic @-mention interaction for context ( #22197 )
...
This PR adds an initial version of using `@` in the message editor to
add context to the thread.
We don't yet insert any sort of reference to it in the message body
itself.
Release Notes:
- N/A
2024-12-18 13:29:39 -05:00
Marshall Bowers
80431e5518
assistant2: Add keybinding to toggle ContextPicker
( #22124 )
...
This PR adds an action and associated keybinding
(<kbd>Cmd+Shift+A</kbd>) to toggle the context picker.
This allows for adding context via the keyboard.
Release Notes:
- N/A
2024-12-16 20:20:32 -05:00
Marshall Bowers
0ca0433912
assistant2: Add keybinding to toggle LanguageModelSelector
( #22122 )
...
This PR adds a keybinding to toggle the `LanguageModelSelector` in
Assistant2.
Release Notes:
- N/A
2024-12-16 19:19:24 -05:00
Marshall Bowers
ccf2a60039
assistant2: Persist model selector changes ( #22116 )
...
This PR makes the language model selector in the Assistant2 panel
persist the model changes to the settings.
Release Notes:
- N/A
2024-12-16 18:00:40 -05:00
Danilo Leal
53c8b48647
assistant2: Add stray visual adjustments ( #22111 )
...
Mostly minor tweaks to make it closer to the prototype. More to come.
| With message | Empty state |
|--------|--------|
| <img width="1420" alt="Screenshot 2024-12-16 at 18 59 40"
src="https://github.com/user-attachments/assets/5df791bf-577a-4f01-9045-80568604099f "
/> | <img width="1420" alt="Screenshot 2024-12-16 at 18 59 33"
src="https://github.com/user-attachments/assets/adbf1673-3040-4b2b-8d65-f8b38a83c1d0 "
/> |
Release Notes:
- N/A
2024-12-16 19:23:42 -03:00
Marshall Bowers
4bf005ef52
assistant2: Wire up context picker with inline assist ( #22106 )
...
This PR wire up the context picker with the inline assist.
UI is not finalized.
Release Notes:
- N/A
---------
Co-authored-by: Richard <richard@zed.dev>
Co-authored-by: Agus <agus@zed.dev>
2024-12-16 15:46:28 -05:00
Marshall Bowers
caefdcd7f1
assistant2: Factor out ContextStrip
( #22096 )
...
This PR factors a `ContextStrip` view out of the `MessageEditor` so that
we can use it in other places.
Release Notes:
- N/A
2024-12-16 12:45:01 -05:00
Marshall Bowers
88f7942f11
assistant2: Add support for referencing other threads as context ( #22092 )
...
This PR adds the ability to reference other threads as context:
<img width="1159" alt="Screenshot 2024-12-16 at 11 29 54 AM"
src="https://github.com/user-attachments/assets/bb8a24ff-56d3-4406-ab8c-6657e65d8c70 "
/>
<img width="1159" alt="Screenshot 2024-12-16 at 11 29 35 AM"
src="https://github.com/user-attachments/assets/7a02ebda-a2f5-40e9-9dd4-1bb029cb1c43 "
/>
Release Notes:
- N/A
2024-12-16 11:50:57 -05:00
Nate Butler
19d6e067af
Toggle & Switch ( #21979 )
...

- Adds the Switch component
- Updates `Selected`, `Selectable` -> `ToggleState`, `Toggleable`
- Adds `checkbox` and `switch` functions to align better with other
elements in our layout system.
We decided not to merge Switch and Checkbox. However, in a followup I'll
introduce a Toggle or AnyToggle enum so we can update
`CheckboxWithLabel` -> `ToggleWithLabel` as this component will work
exactly the same with either a Checkbox or a Switch.
Release Notes:
- N/A
2024-12-13 14:23:02 -05:00
Marshall Bowers
9143fd2924
language_model_selector: Don't recreate the Picker
view each render ( #21939 )
...
While working on Assistant2, I noticed that the `LanguageModelSelector`
was recreating its `Picker` view on every single render.
This PR makes it so we create the view once and hold onto it in the
parent view.
Release Notes:
- N/A
2024-12-12 17:08:48 -05:00
Marshall Bowers
52c0d712a6
assistant2: Add initial support for attaching file context ( #21934 )
...
This PR adds the initial support for attaching files as context to a
thread in Assistant2.
Release Notes:
- N/A
2024-12-12 15:30:17 -05:00
Marshall Bowers
b3ffbea376
assistant2: Allow removing individual context ( #21868 )
...
This PR adds the ability to remove individual pieces of context from the
message editor:
<img width="1159" alt="Screenshot 2024-12-11 at 12 38 45 PM"
src="https://github.com/user-attachments/assets/77d04272-f667-4ebb-a567-84b382afef3d "
/>
Release Notes:
- N/A
2024-12-11 12:51:05 -05:00
Marshall Bowers
c255e55599
assistant2: Sketch in sending file context to model ( #21829 )
...
This PR sketches in support for sending file context attached to a
message to the model.
Right now the context is just mocked.
<img width="1159" alt="Screenshot 2024-12-10 at 4 18 41 PM"
src="https://github.com/user-attachments/assets/3ee4e86a-7893-42dc-98f9-982aa202d310 ">
<img width="1159" alt="Screenshot 2024-12-10 at 4 18 53 PM"
src="https://github.com/user-attachments/assets/8a3c2dd7-a466-4dbf-83ec-1c7d969c1a4b ">
Release Notes:
- N/A
2024-12-10 16:35:53 -05:00
Marshall Bowers
c80ea60860
assistant2: Update to match latest designs ( #21818 )
...
This PR updates the Assistant2 panel to match the latest designs.
<img width="1159" alt="Screenshot 2024-12-10 at 11 49 14 AM"
src="https://github.com/user-attachments/assets/53739709-e7b9-4e35-8a5d-97b6560623ed ">
Release Notes:
- N/A
2024-12-10 12:05:30 -05:00
Marshall Bowers
31796171de
assistant2: Sketch in context picker ( #21560 )
...
This PR sketches in a context picker into the message editor in
Assistant 2. Not functional yet.
<img width="1138" alt="Screenshot 2024-12-04 at 5 45 19 PM"
src="https://github.com/user-attachments/assets/053d6224-de76-4fde-914b-41fe835761eb ">
Release Notes:
- N/A
2024-12-04 18:00:28 -05:00
Marshall Bowers
aca23da971
assistant2: Render messages in the thread using a list
( #21491 )
...
This PR updates the rendering of the messages in the current thread to
use a `gpui::list`.
Release Notes:
- N/A
2024-12-03 16:25:09 -05:00
Marshall Bowers
8f1ec3d11b
assistant2: Add a checkbox to control tool use ( #21215 )
...
This PR adds a checkbox to the `assistant2` message editor to control
whether tools should be used for a given message.
Release Notes:
- N/A
2024-11-26 10:48:48 -05:00
Marshall Bowers
f059b6a24b
assistant2: Add support for using tools ( #21190 )
...
This PR adds rudimentary support for using tools to `assistant2`. There
are currently no visual affordances for tool use.
This is gated behind the `assistant-tool-use` feature flag.
<img width="1079" alt="Screenshot 2024-11-25 at 7 21 31 PM"
src="https://github.com/user-attachments/assets/64d6ca29-c592-4474-8e9d-c344f855bc63 ">
Release Notes:
- N/A
2024-11-25 19:44:34 -05:00
Marshall Bowers
2b9250843c
assistant2: Include previous messages in the thread in the completion request ( #21184 )
...
This PR makes it so previous messages in the thread are included when
constructing the completion request, instead of only sending up the most
recent user message.
Release Notes:
- N/A
2024-11-25 16:51:32 -05:00
Marshall Bowers
e7b0047562
assistant2: Remove unnecessary Pane
( #21183 )
...
This PR removes an unnecessary `Pane` that was copied over from
`assistant::AssistantPanel` to `assistant2::AssistantPanel`.
Release Notes:
- N/A
2024-11-25 16:28:38 -05:00
Marshall Bowers
9ee1aba80a
assistant2: Stream in completion text ( #21182 )
...
This PR makes it so that the completion text streams into the message
list rather than being buffered until the end.
Release Notes:
- N/A
2024-11-25 16:13:27 -05:00
Marshall Bowers
a02684b2f7
assistant2: Add rudimentary chat functionality ( #21178 )
...
This PR adds in rudimentary functionality for sending messages to the
LLM in `assistant2`.
<img width="1079" alt="Screenshot 2024-11-25 at 1 49 11 PM"
src="https://github.com/user-attachments/assets/5accb749-c034-4fb2-bf55-3ae5bc9529ad ">
Release Notes:
- N/A
2024-11-25 14:08:40 -05:00
Nathan Sobo
08b214dfb9
Rename 'chat' to 'thread' in assistant2 ( #21141 )
...
Release Notes:
- N/A
2024-11-25 07:27:35 -05:00