Piotr Osiewicz
05fc0c432c
Fix a bunch of other low-hanging style lints ( #36498 )
...
- **Fix a bunch of low hanging style lints like unnecessary-return**
- **Fix single worktree violation**
- **And the rest**
Release Notes:
- N/A
2025-08-19 21:26:17 +02:00
Conrad Irwin
6ba52a3a42
Re-add history entries for native agent threads ( #36500 )
...
Closes #ISSUE
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-19 12:08:11 -06:00
Bennet Bo Fenner
6b6eb11643
agent2: Fix tool schemas for Gemini ( #36507 )
...
Release Notes:
- N/A
---------
Co-authored-by: Agus Zubiaga <agus@zed.dev>
2025-08-19 18:06:09 +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
8f567383e4
Auto-fix clippy::collapsible_if violations ( #36428 )
...
Release Notes:
- N/A
2025-08-19 13:27:24 +00:00
Bennet Bo Fenner
790a2a0cfa
agent2: Support preferred_completion_mode
setting ( #36473 )
...
Release Notes:
- N/A
2025-08-19 10:40:02 +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
Piotr Osiewicz
9e0e233319
Fix clippy::needless_borrow lint violations ( #36444 )
...
Release Notes:
- N/A
2025-08-18 21:54:35 +00:00
Bennet Bo Fenner
5591fc810e
agent: Restore last used agent session on startup ( #36401 )
...
Release Notes:
- N/A
2025-08-18 10:22:00 +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
Ben Brandt
ea828c0c59
agent2: Emit cancellation stop reason on cancel ( #36381 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-18 07:58:30 +00:00
Ben Brandt
332626e582
Allow Permission Request to only require a ToolCallUpdate instead of a full tool call ( #36319 )
...
Release Notes:
- N/A
2025-08-16 15:04:09 +00:00
Bennet Bo Fenner
1e41d86b31
agent2: Set thread_id, prompt_id, temperature on request ( #36246 )
...
Release Notes:
- N/A
2025-08-15 14:23:55 +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
f63036548c
agent2: Implement prompt caching ( #36236 )
...
Release Notes:
- N/A
2025-08-15 15:17:56 +02:00
Bennet Bo Fenner
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
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
Conrad Irwin
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
Antonio Scandurra
b3d048d6dc
Add back DeletePathTool
to agent2 ( #36168 )
...
This was probably removed accidentally as a result of a merge conflict.
Release Notes:
- N/A
2025-08-14 09:11:27 +00:00
Agus Zubiaga
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
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
2b3dbe8815
agent2: Allow tools to be provider specific ( #36111 )
...
Our WebSearch tool requires access to a Zed provider
Release Notes:
- N/A
2025-08-13 13:22:05 +00:00
Ben Brandt
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
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
Agus Zubiaga
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
Antonio Scandurra
2444321756
Support profiles in agent2 ( #36034 )
...
We still need a profile selector.
Release Notes:
- N/A
---------
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
2025-08-12 12:17:48 +00:00
Bennet Bo Fenner
bb6ea22944
agent2: Port more tools ( #35987 )
...
Release Notes:
- N/A
---------
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-11 17:24:48 +00:00
Antonio Scandurra
365b5aa31d
Centralize always_allow
logic when authorizing agent2 tools ( #35988 )
...
Release Notes:
- N/A
---------
Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: Agus Zubiaga <agus@zed.dev>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
2025-08-11 17:22:19 +00:00
Ben Brandt
8dbded46d8
agent2: Add now, grep, and web search tools ( #35974 )
...
Release Notes:
- N/A
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-11 15:34:34 +02:00
Antonio Scandurra
ebcce8730d
Port some more tools to agent2
( #35973 )
...
Release Notes:
- N/A
2025-08-11 15:10:46 +02:00
Antonio Scandurra
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
Ben Brandt
5901aec40a
agent2: Remove model param from Thread::send method ( #35936 )
...
It instead uses the currently selected model
Release Notes:
- N/A
2025-08-09 21:40:44 +00:00
Antonio Scandurra
db901278f2
Lay the groundwork to create terminals in AcpThread
( #35872 )
...
This just prepares the types so that it will be easy later to update a
tool call with a terminal entity. We paused because we realized we want
to simplify how terminals are created in zed, and so that warrants a
dedicated pull request that can be reviewed in isolation.
Release Notes:
- N/A
---------
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
2025-08-08 14:39:40 +00:00
Agus Zubiaga
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
Agus Zubiaga
3d662ee282
agent2: Port read_file tool ( #35840 )
...
Ports the read_file tool from `assistant_tools` to `agent2`.
Note: Image support not implemented.
Release Notes:
- N/A
2025-08-07 20:46:47 -03:00
Ben Brandt
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
Piotr Osiewicz
efba2cbfd3
chore: Bump Rust to 1.89 ( #35788 )
...
Release Notes:
- N/A
---------
Co-authored-by: Julia Ryan <juliaryan3.14@gmail.com>
2025-08-07 15:32:06 +00:00
Antonio Scandurra
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
Antonio Scandurra
ecd182c52f
Drop native agent session when AcpThread
gets released ( #35713 )
...
Release Notes:
- N/A
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
2025-08-06 10:20:40 +00:00
Ben Brandt
eb4b73b88e
ACP champagne ( #35609 )
...
cherry pick changes from #35510 onto latest main
Release Notes:
- N/A
---------
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Lukas Wirth <lukas@zed.dev>
2025-08-06 09:01:06 +00:00