Conrad Irwin
6ec4b80b7b
Rebuild recently opened threads for ACP ( #36531 )
...
Closes #ISSUE
Release Notes:
- N/A
2025-08-23 10:39:24 -04:00
Bennet Bo Fenner
5c9ccc390b
agent2: Token count ( #36496 )
...
Release Notes:
- N/A
---------
Co-authored-by: Agus Zubiaga <agus@zed.dev>
2025-08-23 10:39:23 -04:00
Piotr Osiewicz
0d2f70ee8c
Another batch of lint fixes ( #36521 )
...
- **Enable a bunch of extra lints**
- **First batch of fixes**
- **More fixes**
Release Notes:
- N/A
2025-08-23 10:39:23 -04:00
Piotr Osiewicz
f61482151a
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-23 10:39:23 -04:00
Conrad Irwin
a73802242a
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-23 10:39:23 -04:00
Bennet Bo Fenner
4ab3d5d1d0
agent2: Fix tool schemas for Gemini ( #36507 )
...
Release Notes:
- N/A
---------
Co-authored-by: Agus Zubiaga <agus@zed.dev>
2025-08-23 10:39:23 -04:00
Antonio Scandurra
c65d113f5b
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-23 10:39:22 -04:00
Piotr Osiewicz
780d5c7d35
Auto-fix clippy::collapsible_if violations ( #36428 )
...
Release Notes:
- N/A
2025-08-23 10:39:22 -04:00
Bennet Bo Fenner
711fcb24e0
agent2: Support preferred_completion_mode
setting ( #36473 )
...
Release Notes:
- N/A
2025-08-23 10:39:22 -04:00
Bennet Bo Fenner
0155488955
agent2: Port retry logic ( #36421 )
...
Release Notes:
- N/A
2025-08-23 10:39:21 -04:00
Bennet Bo Fenner
3235b97e8c
agent2: Port rules UI ( #36429 )
...
Release Notes:
- N/A
2025-08-23 10:39:21 -04:00
Cole Miller
226eed8f53
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-23 10:39:21 -04:00
Cole Miller
4af757d578
agent2: Support directories in @file mentions ( #36416 )
...
Release Notes:
- N/A
2025-08-23 10:39:21 -04:00
Piotr Osiewicz
455a95c81d
Fix clippy::needless_borrow lint violations ( #36444 )
...
Release Notes:
- N/A
2025-08-23 10:39:20 -04:00
Bennet Bo Fenner
5a34510bcd
agent: Restore last used agent session on startup ( #36401 )
...
Release Notes:
- N/A
2025-08-23 10:39:18 -04:00
Bennet Bo Fenner
410781328d
agent2: Make model
of Thread
optional ( #36395 )
...
Related to #36394
Release Notes:
- N/A
2025-08-23 10:39:18 -04:00
Ben Brandt
b0ceaefd0d
agent2: Emit cancellation stop reason on cancel ( #36381 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-23 10:39:18 -04:00
Ben Brandt
de3f7abfb0
Allow Permission Request to only require a ToolCallUpdate instead of a full tool call ( #36319 )
...
Release Notes:
- N/A
2025-08-23 10:39:17 -04:00
Bennet Bo Fenner
22978f9414
agent2: Set thread_id, prompt_id, temperature on request ( #36246 )
...
Release Notes:
- N/A
2025-08-23 10:39:15 -04:00
Bennet Bo Fenner
2ef508967e
agent2: Port profile selector ( #36244 )
...
Release Notes:
- N/A
2025-08-23 10:39:15 -04:00
Bennet Bo Fenner
082501c523
agent2: Implement prompt caching ( #36236 )
...
Release Notes:
- N/A
2025-08-23 10:39:15 -04:00
Bennet Bo Fenner
eb1e6e6b73
agent2: Port Zed AI features ( #36172 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-23 10:39:15 -04:00
Agus Zubiaga
03efb2ac3c
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-23 10:39:14 -04:00
Conrad Irwin
3b47c99785
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-23 10:39:14 -04:00
Antonio Scandurra
5bbefe0239
Add back DeletePathTool
to agent2 ( #36168 )
...
This was probably removed accidentally as a result of a merge conflict.
Release Notes:
- N/A
2025-08-23 10:39:13 -04:00
Agus Zubiaga
b8887257f5
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-23 10:38:50 -04:00
Ben Brandt
971738b49e
agent2: Initial infra for checkpoints and message editing ( #36120 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-23 10:38:45 -04:00
Ben Brandt
ea89bc3c65
agent2: Allow tools to be provider specific ( #36111 )
...
Our WebSearch tool requires access to a Zed provider
Release Notes:
- N/A
2025-08-23 10:38:45 -04:00
Ben Brandt
797dab40aa
Agent2 Model Selector ( #36028 )
...
Release Notes:
- N/A
---------
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
2025-08-23 10:38:45 -04:00
Cole Miller
65f0dc7b7c
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-23 10:38:41 -04:00
Agus Zubiaga
5913bb8fc3
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-23 10:38:40 -04:00
Antonio Scandurra
4679c43789
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-23 10:38:40 -04:00
Bennet Bo Fenner
6b6f0812c8
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-23 10:38:39 -04:00
Antonio Scandurra
2e6408489b
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-23 10:38:19 -04:00
Ben Brandt
312b461eeb
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-23 10:38:19 -04:00
Antonio Scandurra
e3378bf8f4
Port some more tools to agent2
( #35973 )
...
Release Notes:
- N/A
2025-08-23 10:38:19 -04:00
Antonio Scandurra
d6d28a53ce
Port terminal
tool to agent2 ( #35918 )
...
Release Notes:
- N/A
---------
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
2025-08-23 10:38:18 -04:00
Ben Brandt
6532d82d32
Pull action_log into its own crate ( #35959 )
...
Release Notes:
- N/A
2025-08-23 10:38:18 -04:00
Ben Brandt
b918fa5381
agent2: Remove model param from Thread::send method ( #35936 )
...
It instead uses the currently selected model
Release Notes:
- N/A
2025-08-23 10:38:18 -04:00
Antonio Scandurra
581cbc3458
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-23 10:38:16 -04:00
Agus Zubiaga
37187940e9
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-23 10:38:15 -04:00
Agus Zubiaga
5285e1d038
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-23 10:38:14 -04:00
Ben Brandt
a646f94565
Wire up find_path tool in agent2 ( #35799 )
...
Release Notes:
- N/A
---------
Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-08-23 10:38:14 -04:00
Piotr Osiewicz
6e22724678
chore: Bump Rust to 1.89 ( #35788 )
...
Release Notes:
- N/A
---------
Co-authored-by: Julia Ryan <juliaryan3.14@gmail.com>
2025-08-23 10:38:12 -04:00
Antonio Scandurra
948fd9c540
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-23 10:38:11 -04:00
Antonio Scandurra
e4db599ed2
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-23 10:38:09 -04:00
Ben Brandt
3cd60e81a1
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-23 10:38:09 -04:00