fix(core): enable global session and persistent approval for web_fetch (#23295)

Co-authored-by: Spencer <spencertang@google.com>
This commit is contained in:
N. Taylor Mullen
2026-03-21 10:32:07 -07:00
committed by GitHub
parent 0df9498674
commit 4a3d9414ef
5 changed files with 35 additions and 19 deletions
+3 -4
View File
@@ -155,14 +155,13 @@ export const LS_TOOL_NAME_LEGACY = 'list_directory'; // Just to be safe if anyth
export const EDIT_TOOL_NAMES = new Set([EDIT_TOOL_NAME, WRITE_FILE_TOOL_NAME]);
/**
* Tools that can access local files or remote resources and should be
* treated with extra caution when updating policies.
* Tools that require mandatory argument narrowing (e.g., file paths, command prefixes)
* when granting persistent or session-wide approval.
*/
export const SENSITIVE_TOOLS = new Set([
export const TOOLS_REQUIRING_NARROWING = new Set([
GLOB_TOOL_NAME,
GREP_TOOL_NAME,
READ_MANY_FILES_TOOL_NAME,
WEB_FETCH_TOOL_NAME,
READ_FILE_TOOL_NAME,
LS_TOOL_NAME,
WRITE_FILE_TOOL_NAME,