Cole Miller
1444cd9839
Fix Windows test failures not being detected in CI ( #36446 )
...
Bug introduced in #35926
Release Notes:
- N/A
2025-08-19 14:53:10 +00:00
Antonio Scandurra
6c255c1973
Lay the groundwork to support history in agent2 ( #36483 )
...
This pull request introduces title generation and history replaying. We
still need to wire up the rest of the history but this gets us very
close. I extracted a lot of this code from `agent2-history` because that
branch was starting to get long-lived and there were lots of changes
since we started.
Release Notes:
- N/A
2025-08-19 14:24:23 +00:00
Piotr Osiewicz
c4083b9b63
Fix unnecessary-mut-passed lint ( #36490 )
...
Release Notes:
- N/A
2025-08-19 14:20:01 +00:00
Piotr Osiewicz
8f567383e4
Auto-fix clippy::collapsible_if violations ( #36428 )
...
Release Notes:
- N/A
2025-08-19 13:27:24 +00:00
Bennet Bo Fenner
0ea0d466d2
agent2: Port retry logic ( #36421 )
...
Release Notes:
- N/A
2025-08-19 09:41:55 +00:00
Bennet Bo Fenner
b8ddb0141c
agent2: Port rules UI ( #36429 )
...
Release Notes:
- N/A
2025-08-19 11:12:57 +02:00
Cole Miller
d30b017d1f
Prevent sending slash commands in CC threads ( #36453 )
...
Highlight them as errors in the editor, and add a leading space when
sending them so users don't hit the odd behavior when sending these
commands to the SDK.
Release Notes:
- N/A
2025-08-19 02:00:41 -04:00
Cole Miller
7bcea7dc2c
agent2: Support directories in @file mentions ( #36416 )
...
Release Notes:
- N/A
2025-08-19 04:09:43 +00:00
Cole Miller
821e97a392
agent2: Add hover preview for image creases ( #36427 )
...
Note that (at least for now) this only works for creases in the "new
message" editor, not when editing past messages. That's because we don't
have the original image available when putting together the creases for
past messages, only the base64-encoded language model content.
Release Notes:
- N/A
2025-08-19 03:26:15 +00:00
Danilo Leal
b7edc89a87
agent: Improve error and warnings display ( #36425 )
...
This PR refactors the callout component and improves how we display
errors and warnings in the agent panel, along with improvements for
specific cases (e.g., you have `zed.dev` as your LLM provider and is
signed out).
Still a work in progress, though, wrapping up some details.
Release Notes:
- N/A
2025-08-18 21:44:07 -03:00
Piotr Osiewicz
9e0e233319
Fix clippy::needless_borrow lint violations ( #36444 )
...
Release Notes:
- N/A
2025-08-18 21:54:35 +00:00
Agus Zubiaga
8b89ea1a80
Handle auth for claude ( #36442 )
...
We'll now use the anthropic provider to get credentials for `claude` and
embed its configuration view in the panel when they are not present.
Release Notes:
- N/A
2025-08-18 20:40:59 +00:00
Agus Zubiaga and Danilo
48fed866e6
acp: Have AcpThread handle all interrupting ( #36417 )
...
The view was cancelling the generation, but `AcpThread` already handles
that, so we removed that extra code and fixed a bug where an update from
the first user message would appear after the second one.
Release Notes:
- N/A
Co-authored-by: Danilo <danilo@zed.dev >
2025-08-18 12:34:27 -03:00
Agus Zubiaga
db31fa67f3
acp: Stay in edit mode when current completion ends ( #36413 )
...
When a turn ends and the checkpoint is updated, `AcpThread` emits
`EntryUpdated` with the index of the user message. This was causing the
message editor to be recreated and, therefore, lose focus.
Release Notes:
- N/A
2025-08-18 11:37:28 -03:00
Danilo Leal
6bf666958c
agent2: Allow to interrupt and send a new message ( #36185 )
...
Release Notes:
- N/A
2025-08-18 10:49:17 -03:00
Agus Zubiaga and Danilo Leal
e2db434920
acp thread view: Floating editing message controls ( #36283 )
...
Prevents layout shift when focusing the editor
Release Notes:
- N/A
---------
Co-authored-by: Danilo Leal <daniloleal09@gmail.com >
2025-08-18 12:50:29 +00:00
Bennet Bo Fenner
57198f33c4
agent2: Show Zed AI onboarding ( #36406 )
...
Release Notes:
- N/A
2025-08-18 11:12:17 +00:00
Bennet Bo Fenner
2eadd5a396
agent2: Make model of Thread optional ( #36395 )
...
Related to #36394
Release Notes:
- N/A
2025-08-18 09:56:02 +00:00
Cole Miller
2dbc951058
agent2: Start loading mentioned threads and text threads as soon as they're added ( #36374 )
...
Release Notes:
- N/A *or* Added/Fixed/Improved ...
2025-08-17 20:38:07 +00:00
Ben Brandt
5895fac377
Refactor ToolCallStatus enum to flat variants ( #36356 )
...
Replace nested Allowed variant with distinct statuses for clearer status
handling.
Release Notes:
- N/A
2025-08-17 13:05:23 +00:00
Cole Miller
bf34e185d5
Move MentionSet to message_editor module ( #36281 )
...
This is a more natural place for it than its current home next to the
completion provider.
Release Notes:
- N/A
2025-08-15 18:47:36 -04:00
Cole Miller
3d77ad7e1a
thread_view: Start loading images as soon as they're added ( #36276 )
...
Release Notes:
- N/A
2025-08-15 17:39:33 -04:00
Agus Zubiaga
9eb1ff2726
acp thread view: Always use editors for user messages ( #36256 )
...
This means the cursor will be at the position you clicked:
https://github.com/user-attachments/assets/0693950d-7513-4d90-88e2-55817df7213a
Release Notes:
- N/A
2025-08-15 21:03:36 +00:00
Cole Miller and Conrad Irwin
1931889759
thread_view: Move handlers for confirmed completions to the MessageEditor ( #36214 )
...
Release Notes:
- N/A
---------
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com >
2025-08-15 18:55:34 +00:00
Bennet Bo Fenner
10a2426a58
agent2: Port profile selector ( #36244 )
...
Release Notes:
- N/A
2025-08-15 14:06:56 +00:00
Bennet Bo Fenner and Antonio Scandurra
6f3cd42411
agent2: Port Zed AI features ( #36172 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2025-08-15 11:17:17 +00:00
Cole Miller and Conrad Irwin
b1e806442a
Support images in agent2 threads ( #36152 )
...
- Support adding ImageContent to messages through copy/paste and through
path completions
- Ensure images are fully converted to LanguageModelImageContent before
sending them to the model
- Update ACP crate to v0.0.24 to enable passing image paths through the
protocol
Release Notes:
- N/A
---------
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com >
2025-08-14 21:31:14 +00:00
Agus Zubiaga
43ee604179
acp: Clean up entry views on rewind ( #36197 )
...
We were leaking diffs and terminals on rewind, we'll now clean them up.
This PR also introduces a refactor of how we mantain the entry view
state to use a `Vec` that's kept in sync with the thread entries.
Release Notes:
- N/A
2025-08-14 18:30:18 +00:00
e5402d5464
Allow editing Agent2 messages ( #36155 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com >
Co-authored-by: Agus Zubiaga <agus@zed.dev >
2025-08-14 13:39:33 +00:00
Conrad Irwin and Antonio Scandurra
ab9fa03d55
UI for checkpointing ( #36124 )
...
Co-authored-by: Antonio Scandurra <me@as-cii.com >
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2025-08-13 22:24:47 -06:00
Agus Zubiaga and Cole Miller
389d24d7e5
Fully support all mention kinds ( #36134 )
...
Feature parity with the agent1 @mention kinds:
- File
- Symbols
- Selections
- Threads
- Rules
- Fetch
Release Notes:
- N/A
---------
Co-authored-by: Cole Miller <cole@zed.dev >
2025-08-13 20:11:32 +00:00
Ben Brandt and Antonio Scandurra
23cd5b59b2
agent2: Initial infra for checkpoints and message editing ( #36120 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2025-08-13 15:46:28 +00:00
Ben Brandt and Bennet Bo Fenner
db497ac867
Agent2 Model Selector ( #36028 )
...
Release Notes:
- N/A
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de >
2025-08-13 09:01:02 +00:00
Cole Miller and Conrad
1957e1f642
Add locations to native agent tool calls, and wire them up to UI ( #36058 )
...
Release Notes:
- N/A
---------
Co-authored-by: Conrad <conrad@zed.dev >
2025-08-13 01:48:28 +00:00
Danilo Leal
628b1058be
agent2: Fix some UI glitches ( #36067 )
...
Release Notes:
- N/A
2025-08-12 16:31:54 -03:00
Danilo Leal and Agus Zubiaga
b105028c05
agent2: Add custom UI for resource link content blocks ( #36005 )
...
Release Notes:
- N/A
---------
Co-authored-by: Agus Zubiaga <agus@zed.dev >
2025-08-12 12:39:27 -03:00
Agus Zubiaga and Cole Miller
44953375cc
Include mention context in acp-based native agent ( #36006 )
...
Also adds data-layer support for symbols, thread, and rules.
Release Notes:
- N/A
---------
Co-authored-by: Cole Miller <cole@zed.dev >
2025-08-12 13:12:58 +00:00
Danilo Leal
094e878ccf
agent2: Refine terminal tool call display ( #35984 )
...
Release Notes:
- N/A
2025-08-11 17:50:47 -03:00
Cole Miller
42bf5a17b9
Delay rendering tool call diff editor until it has a revealed range ( #35901 )
...
Release Notes:
- N/A
2025-08-11 12:49:46 -04:00
Antonio Scandurra and Ben Brandt
086ea3c619
Port terminal tool to agent2 ( #35918 )
...
Release Notes:
- N/A
---------
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com >
2025-08-11 10:31:13 +00:00
Ben Brandt
308cb9e537
Pull action_log into its own crate ( #35959 )
...
Release Notes:
- N/A
2025-08-10 21:57:55 +00:00
Cole Miller
c053923015
thread_view: Trim only trailing whitespace from last chunk of user message ( #35902 )
...
This fixes internal whitespace after the last @mention going missing
from the user message as displayed in history.
Release Notes:
- N/A
2025-08-08 23:50:59 +00:00
Cole Miller
f3a58b50c4
Handle drag and drop in new agent threads ( #35879 )
...
This is a bit simpler than for the original agent thread view, since we
don't have to deal with opening buffers or a context store.
Release Notes:
- N/A
2025-08-08 15:03:50 -04:00
Danilo Leal
2cde6da5ff
Redesign and clean up all icons across Zed ( #35856 )
...
- [x] Clean up unused and old icons
- [x] Swap SVG for all in-use icons with the redesigned version
- [x] Document guidelines
Release Notes:
- N/A
2025-08-08 15:34:36 -03:00
2526dcb5a5
agent2: Port edit_file tool ( #35844 )
...
TODO:
- [x] Authorization
- [x] Restore tests
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com >
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com >
2025-08-08 12:43:53 +00:00
Ben Brandt and Antonio Scandurra
90fa921756
Wire up find_path tool in agent2 ( #35799 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com >
2025-08-07 22:21:26 +00:00
Cole Miller
e6dc6faccf
Don't insert resource links for @mentions that have been removed from the message editor ( #35831 )
...
Release Notes:
- N/A
2025-08-07 22:10:29 +00:00
Cole Miller
a1080a0411
Update diff editor font size when agent_font_size setting changes ( #35834 )
...
Release Notes:
- N/A
2025-08-07 21:31:30 +00:00
03876d076e
Add system prompt and tool permission to agent2 ( #35781 )
...
Release Notes:
- N/A
---------
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com >
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2025-08-07 13:40:12 +00:00
Danilo Leal
8e290b446e
thread view: Add UI refinements ( #35754 )
...
More notably around how we render tool calls. Nothing too drastic,
though.
Release Notes:
- N/A
2025-08-06 20:31:11 -03:00