Files
zed/crates/acp_thread
Ben Brandt d36a706614 acp: Support background work in ACP v2 (#66446)
Implements the background work additions to the ACP v2 spec
([RFD](https://agentclientprotocol.com/rfds/v2/background-work)).

- **`paused` tool calls:** `paused` is now its own `ToolCallStatus`. The
tool call card shows a pause icon with no spinner. Before this, `paused`
displayed as in progress.
- **Background list:** `AcpThread::background_work()` returns the
`background` list from the agent's latest state update. If the update
leaves it out, background work is unknown rather than empty. While the
session is idle and the agent reports background work, the label next to
the message editor shows "N tasks in background".
- **Stopping one tool call:** while a tool call advertises
`capabilities.cancel` and hasn't finished, its card has a Stop button
that sends `tool_call/cancel`. `AcpThread::cancel_tool_call` refuses
locally otherwise, because Clients must not send it unadvertised.
- **Stopping an agent-run terminal:** the terminal card's Stop button
also appears for agent-run terminals that advertise cancel and haven't
exited. It sends `terminal/cancel`, and its tooltip says the output
stays available.

Release Notes:

- N/A
2026-11-03 11:36:55 +00:00
..