Skip to content

fix: correct Zed web search tool name to search_web#1853

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-1850-zed-search-web
Jun 12, 2026
Merged

fix: correct Zed web search tool name to search_web#1853
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-1850-zed-search-web

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Zed's built-in web-search tool is named search_web, not web_search. The Zed permissions adapter mapped the canonical websearch category to web_search, so:

  • a generated agent.tool_permissions.tools.web_search entry was silently ignored by Zed, and
  • a real search_web entry did not round-trip back to websearch on reverse parse.

This changes the mapping in src/features/permissions/zed-permissions.ts to websearch: "search_web". The reverse map is derived automatically, so no other code change is needed.

Verification

Tool name confirmed against Zed's authoritative docs:

The other mappings (bash→terminal, read→read_file, edit→edit_file, webfetch→fetch) were verified correct and left unchanged.

Test

Added a round-trip test asserting websearch ⇄ search_web in zed-permissions.test.ts.

Closes #1850

🤖 Generated with Claude Code

Zed's built-in web-search tool is named search_web, not web_search.
The permissions adapter mapped websearch to web_search, so generated
entries were silently ignored by Zed and real search_web entries did
not round-trip back to websearch.

Closes #1850

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa dyoshikawa merged commit 886f400 into main Jun 12, 2026
9 checks passed
@dyoshikawa dyoshikawa deleted the resolve-scrap-issue-1850-zed-search-web branch June 12, 2026 06:11
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

@dyoshikawa dyoshikawa mentioned this pull request Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow up Zed upstream updates: permissions web-search tool name should be search_web (not web_search)

2 participants