ZIm/crates
Conrad Irwin 66d9fb09cc Require confirmation for fetch tool (#36881)
Using prompt injection, the agent may be tricked into making a fetch
request that includes unexpected data from the conversation in the URL.

As agent conversations may contain sensitive information (like private
code, or
potentially even API keys), this seems bad.

The easiest way to prevent this is to require the user to look at the
URL
before the model is allowed to fetch it.

Thanks to @ant4g0nist for bringing this to our attention.

Release Notes:

- agent panel: The fetch tool now requires confirmation.
2025-08-25 13:00:22 -04:00
..
acp_thread acp: Remember following state (#36793) 2025-08-25 12:57:34 -04:00
acp_tools acp: Support launching custom agent servers (#36805) 2025-08-24 14:35:59 -04:00
action_log Enforce style lints which do not have violations (#36580) 2025-08-20 14:07:37 +02:00
activity_indicator Enforce style lints which do not have violations (#36580) 2025-08-20 14:07:37 +02:00
agent acp: Eagerly load all kinds of mentions (#36741) 2025-08-24 14:35:42 -04:00
agent2 Require confirmation for fetch tool (#36881) 2025-08-25 13:00:22 -04:00
agent_servers acp: Support launching custom agent servers (#36805) 2025-08-24 14:35:59 -04:00
agent_settings lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
agent_ui acp: Add Reauthenticate to dropdown (#36878) 2025-08-25 12:57:34 -04:00
ai_onboarding onboarding: Remove accept AI ToS from within Zed (#36612) 2025-08-22 13:09:30 -04:00
anthropic Add Claude Opus 4.1 (#35653) 2025-08-05 18:16:47 +00:00
askpass Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
assets Use IBM Plex Sans / Lilex (#36084) 2025-08-13 13:25:52 -06:00
assistant_context Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
assistant_slash_command lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
assistant_slash_commands Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
assistant_tool Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
assistant_tools Require confirmation for fetch tool (#36881) 2025-08-25 13:00:22 -04:00
audio Add component NotificationFrame & CaptureAudio parts for testing (#36081) 2025-08-15 10:10:52 +00:00
auto_update Fix unnecessary-mut-passed lint (#36490) 2025-08-19 14:20:01 +00:00
auto_update_helper lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
auto_update_ui Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
aws_http_client bedrock: Fix remaining streaming delays (#33931) 2025-07-22 11:55:24 -04:00
bedrock Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
breadcrumbs Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
buffer_diff acp: Fix panic with edit file tool (#36732) 2025-08-22 11:34:27 -04:00
call Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
channel Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
cli Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
client onboarding: Remove accept AI ToS from within Zed (#36612) 2025-08-22 13:09:30 -04:00
clock Add the ability to follow the agent as it makes edits (#29839) 2025-05-04 08:28:39 +00:00
cloud_api_client onboarding: Remove accept AI ToS from within Zed (#36612) 2025-08-22 13:09:30 -04:00
cloud_api_types Establish WebSocket connection to Cloud (#35734) 2025-08-07 01:28:41 +00:00
cloud_llm_client agent2: Add now, grep, and web search tools (#35974) 2025-08-11 15:34:34 +02:00
collab Fix clippy::len_zero lint style violations (#36589) 2025-08-20 14:35:59 +00:00
collab_ui Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
collections Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
command_palette Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
command_palette_hooks Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
component Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
context_server acp: Support calling tools provided by MCP servers (#36752) 2025-08-22 11:35:04 -04:00
copilot Enforce style lints which do not have violations (#36580) 2025-08-20 14:07:37 +02:00
crashes Avoid suspending panicking thread while crashing (#36645) 2025-08-21 11:10:03 -07:00
credentials_provider Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
dap lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
dap_adapters Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
db Silence a bucketload of logs (#36534) 2025-08-19 20:26:56 -06:00
debug_adapter_extension Allow remote loading for DAP-only extensions (#33981) 2025-07-06 14:52:16 +02:00
debugger_tools Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
debugger_ui Fix clippy::len_zero lint style violations (#36589) 2025-08-20 14:35:59 +00:00
deepseek language_models: Emit UsageUpdate events for token usage in DeepSeek and OpenAI (#33242) 2025-06-25 09:42:30 +02:00
diagnostics Fix clippy::len_zero lint style violations (#36589) 2025-08-20 14:35:59 +00:00
docs_preprocessor Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
edit_prediction onboarding: Remove accept AI ToS from within Zed (#36612) 2025-08-22 13:09:30 -04:00
edit_prediction_button onboarding: Remove accept AI ToS from within Zed (#36612) 2025-08-22 13:09:30 -04:00
editor onboarding: Remove accept AI ToS from within Zed (#36612) 2025-08-22 13:09:30 -04:00
eval Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613) 2025-08-20 20:14:30 +02:00
explorer_command_injector Just Zed instead of Zed Editor (#34146) 2025-07-10 21:08:43 +02:00
extension Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
extension_api lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
extension_cli Remove /docs slash command (#36325) 2025-08-16 19:00:31 +00:00
extension_host Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
extensions_ui Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
feature_flags Rename acp flag (#36541) 2025-08-20 02:11:17 +00:00
feedback Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
file_finder Fix clippy::manual_map lint violations (#36584) 2025-08-20 15:17:28 +02:00
file_icons Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
fs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
fsevent Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
fuzzy Prevent out of bounds access in recursive_score_match (#35630) 2025-08-06 10:53:20 +02:00
git Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613) 2025-08-20 20:14:30 +02:00
git_hosting_providers Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
git_ui ai: Auto select user model when there's no default (#36722) 2025-08-22 11:36:49 -04:00
go_to_line Enforce style lints which do not have violations (#36580) 2025-08-20 14:07:37 +02:00
google_ai Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
gpui clippy: println_empty_string & non_minimal_cfg (#36614) 2025-08-20 18:45:40 +00:00
gpui_macros clippy: println_empty_string & non_minimal_cfg (#36614) 2025-08-20 18:45:40 +00:00
gpui_tokio Use Tokio::spawn instead of getting an executor handle (#36701) 2025-08-21 11:09:45 -07:00
html_to_markdown Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
http_client Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
http_client_tls Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
icons thread view: Add more UI improvements (#36750) 2025-08-22 11:44:19 -04:00
image_viewer Option to auto-close deleted files with no unsaved edits (#31920) 2025-06-03 13:18:29 +02:00
inspector_ui Some clippy fixes (#36544) 2025-08-20 03:40:39 +00:00
install_cli Fix clippy::needless_borrow lint violations (#36444) 2025-08-18 21:54:35 +00:00
jj Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
jj_ui editor: Improve code completion filtering to provide fewer and more accurate suggestions (#32928) 2025-06-18 16:01:28 +05:30
journal Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
language Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613) 2025-08-20 20:14:30 +02:00
language_extension Fix clippy::needless_borrow lint violations (#36444) 2025-08-18 21:54:35 +00:00
language_model acp: Support launching custom agent servers (#36805) 2025-08-24 14:35:59 -04:00
language_models acp: Support launching custom agent servers (#36805) 2025-08-24 14:35:59 -04:00
language_selector Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
language_tools Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
languages Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
livekit_api Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
livekit_client Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
lmstudio lmstudio: Propagate actual error message from server (#34538) 2025-07-25 09:36:43 -04:00
lsp lsp: Enable dynamic registration for TextDocumentSyncClientCapabilities post revert (#36494) 2025-08-19 20:30:25 +05:30
markdown thread view: Add a few UI tweaks (#36845) 2025-08-25 12:57:05 -04:00
markdown_preview Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
media Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
menu gpui: Store action documentation (#33809) 2025-07-02 21:14:33 -04:00
migrator Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
mistral language_models: Add thinking to Mistral Provider (#32476) 2025-08-09 15:25:47 -04:00
multi_buffer Fix typo in Excerpt::contains (#36621) 2025-08-20 18:05:26 -04:00
nc Claude experiment (#34577) 2025-07-17 14:25:55 +00:00
net windows: Add support for SSH (#29145) 2025-07-08 14:34:57 +00:00
node_runtime Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
notifications Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
ollama ollama: Add support for gpt-oss (#35648) 2025-08-06 10:44:15 -04:00
onboarding Enforce style lints which do not have violations (#36580) 2025-08-20 14:07:37 +02:00
open_ai Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
open_router Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
outline Remove into SelectionEffects from .change_selections (#33554) 2025-06-27 14:31:31 -06:00
outline_panel Fix more improper uses of the buffer_id field of Anchor (#36636) 2025-08-21 10:48:06 -04:00
panel Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
paths lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
picker Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
prettier Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
project remote: Fix toolchain RPC messages not being handled because of the entity getting dropped (#36665) 2025-08-21 11:51:31 +02:00
project_panel Fix clippy::manual_map lint violations (#36584) 2025-08-20 15:17:28 +02:00
project_symbols Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
prompt_store Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
proto Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
recent_projects Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
refineable Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
release_channel Use shortened SHA when displaying version to install (#31281) 2025-05-23 14:53:53 +00:00
remote remote: Do not leave client hanging on unhandled proto message (#36590) 2025-08-20 13:41:58 +00:00
remote_server remote: Fix toolchain RPC messages not being handled because of the entity getting dropped (#36665) 2025-08-21 11:51:31 +02:00
repl Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
reqwest_client lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
rich_text Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
rope Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
rpc Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
rules_library Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
schema_generator Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
search Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
semantic_index Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
semantic_version Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
session Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
settings Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613) 2025-08-20 20:14:30 +02:00
settings_profile_selector Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
settings_ui Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
snippet Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
snippet_provider Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
snippets_ui Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
sqlez Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
sqlez_macros Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
story Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
storybook Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
streaming_diff Fix clippy::needless_borrow lint violations (#36444) 2025-08-18 21:54:35 +00:00
sum_tree Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
supermaven Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
supermaven_api Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
svg_preview Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
tab_switcher clippy: println_empty_string & non_minimal_cfg (#36614) 2025-08-20 18:45:40 +00:00
task Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
tasks_ui Fix clippy::len_zero lint style violations (#36589) 2025-08-20 14:35:59 +00:00
telemetry Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
telemetry_events Remove old telemetry events and transformation layer (#36263) 2025-08-15 15:37:52 -04:00
terminal Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
terminal_view Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613) 2025-08-20 20:14:30 +02:00
text Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
theme Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
theme_extension Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
theme_importer Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
theme_selector Redesign and clean up all icons across Zed (#35856) 2025-08-08 15:34:36 -03:00
time_format agent: Add date separators to Thread History (#29961) 2025-05-06 10:18:48 +00:00
title_bar Enforce style lints which do not have violations (#36580) 2025-08-20 14:07:37 +02:00
toolchain_selector remote: Fix toolchain RPC messages not being handled because of the entity getting dropped (#36665) 2025-08-21 11:51:31 +02:00
ui thread_view: Adjust empty state and error displays (#36774) 2025-08-24 14:35:10 -04:00
ui_input Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
ui_macros Update syn crate from 1.0.109 to 2.0.101 (#31301) 2025-05-23 19:31:25 +00:00
ui_prompt ui_prompt: Fix prompt dialog is hard to see on large screen (#35348) 2025-07-30 23:03:53 +05:30
util lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
util_macros Remove separator! macro and make path! handle relative paths (#32527) 2025-06-13 06:32:29 +00:00
vercel openai: Don't send prompt_cache_key for OpenAI-compatible models (#36231) 2025-08-15 13:54:24 +03:00
vim Fix clippy::println_empty_string, clippy::while_let_on_iterator, clippy::while_let_on_iterator lint style violations (#36613) 2025-08-20 20:14:30 +02:00
vim_mode_setting vim: Fix escape key switching back to default mode instead of normal mode (#31843) 2025-06-18 21:26:12 +00:00
watch Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
web_search Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
web_search_providers Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
workspace Fix clippy::len_zero lint style violations (#36589) 2025-08-20 14:35:59 +00:00
worktree Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
x_ai lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
zed ACP debug tools pane (#36768) 2025-08-24 14:34:58 -04:00
zed_actions acp: Add Reauthenticate to dropdown (#36878) 2025-08-25 12:57:34 -04:00
zeta onboarding: Remove accept AI ToS from within Zed (#36612) 2025-08-22 13:09:30 -04:00
zeta_cli Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
zlog Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
zlog_settings VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00