fix(runtime): preserve case in web fetch throttle keys

This commit is contained in:
Shuhan Si authored and Xubin Ren committed 2026-10-03 20:21:09 +08:00
1 parent 5e54043492
commit 9136fe364e
2 files changed
+14 -5

No files matched your search

+2 -1
View File
@@ -98,7 +98,8 @@ def external_lookup_signature(tool_name: str, arguments: Any) -> str | None:
if tool_name == "web_fetch":
url = str(arguments.get("url") or "").strip()
if url:
return f"web_fetch:{url.lower()}"
# URL paths and query values can identify different resources by case.
return f"web_fetch:{url}"
if tool_name == "web_search":
query = str(arguments.get("query") or arguments.get("search_term") or "").strip()
if query: