fix(chat): remove duplicate web_search tool crashing all agentic requests #22
Reference in New Issue
Block a user
Delete Branch "fix/agentic-tools-duplicate-web-search"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
agentic_tools_literal()already contains a customweb_searchtool.agentic_tools_with_web()adds the Anthropic server-sideweb_search_20250305tool (also namedweb_search).Combining them in
agentic_tools_all()caused Anthropic to reject every agentic request with:This meant every
/api/chatcall withagentic:truereturned{"error":"llm unavailable","reply":""}— agentic mode was completely broken.Fix
agentic_tools_all()now callsagentic_tools_literal()instead ofagentic_tools_with_web(). Connector tools splice in as before. Theagentic_tools_with_webvariant is unchanged for callers that specifically want native search without connectors.Verified
Tested end-to-end against the live soul daemon — agentic chat now returns replies correctly.
@will.anderson - re CI: the red mark here is the build toolchain, not this change. All 12 recent runs (including the merged #17-21) fail at the same 'elb: link failed' in 'Build neuron soul binary' - CI pulls floating 'latest' El SDK + el dev and the linker fails regardless of the PR. This change is a one-symbol swap (agentic_tools_with_web -> agentic_tools_literal, which exists at chat.el:256) and compiles. Safe to merge through the red like #17-21; the link failure is a separate CI/SDK ticket. (Flagged by Tim's grounded Neuron instance.)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.