-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
The open_url tool fails to fetch any URL that contains query parameters. The URL is received by the tool but dropped before any HTTP request (crawl or indexed lookup) is made. URLs without query parameters work fine.
Environment
Version: craft-latest (Docker)
OS: Ubuntu 24.04
Reproduction
Working Example — URL without query params:
"What are today's top stories from this page: https://news.ycombinator.com/front"
Failing Example — URL with query params:
"Summarize the conversation on this page: https://news.ycombinator.com/item?id=46821482"
Both URLs are reachable via curl from the host and from within the container.
Logs (failing case)
INFO open_url_tool.py 449: [API:8TgOKx2N] OpenURL tool called with 1 URLs
INFO open_url_tool.py 457: [API:8TgOKx2N] Resolved 0 URLs to indexed document IDs for parallel retrieval
INFO open_url_tool.py 462: [API:8TgOKx2N] Total unique document requests: 0
INFO open_url_tool.py 794: [API:8TgOKx2N] Merged results: 0 total sections (0 indexed, 0 crawled)
1 URL goes in, 0 document requests come out.
Are query parameters being stripped during URL variant generation?