[GH-ISSUE #4520] [BUG]: Agent web-browsing tool dedupes itself then stalls (no output) on 1.8.5 headless #2874

Closed
opened 2026-02-22 18:31:37 -05:00 by yindo · 1 comment
Owner

Originally created by @sirrrella on GitHub (Oct 9, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4520

How are you running AnythingLLM?

Local development

What happened?

Env

  • AnythingLLM: v1.8.5 (server/headless)
  • OS: Linux x86_64
  • LLM: LMDeploy at http://localhost:23333/v1
  • Model: Qwen2.5-7B-Instruct-AWQ (chat completions OK)
  • Search: SearXNG at http://localhost:53380 (JSON OK)

From: Web UI thread (standard chat). Errors show in the A-LLM server log (backend log file).

Expected

  • @agent with Web Search enabled should call SearXNG once and return links/citations.

Actual

  • Agent decides to run web-browsing, then reports it already ran with the same args, produces no reply, and the UI stalls for a few seconds.

Log snippet (A-LLM server log)

[AgentHandler] Attached web-browsing plugin to Agent cluster
[AgentLLM - /...Qwen--Qwen2.5-7B-Instruct-AWQ] Valid tool call found - running web-browsing.
[AgentHandler] [debug]: @agent is attempting to call `web-browsing` tool
[AgentLLM - /...] Function tool with exact arguments has already been called this stack.
[AgentLLM - /...] Will assume chat completion without tool call inputs.
Client took too long to respond, chat thread is dead after 300000ms

(There is no GET http://localhost:53380/search?format=json... in the log for that turn.)

Notes
Looks like the agent planner proposes the same tool call twice in one turn; the runner dedupes it and doesn’t fall back, leaving the turn with no output.

Ask
On dedupe, either use the first tool result or gracefully fall back to a normal completion (no stall).

Are there known steps to reproduce?

Repro (Web UI thread)

  1. Workspace → Agent → Web Search ON (Base URL http://localhost:53380), Web Scraping OFF.
  2. In the thread, send:
    @agent search the web for "acme search phrase" from this week and list 3 links
  3. Observe: dedupe message, no SearXNG call, no output.
Originally created by @sirrrella on GitHub (Oct 9, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4520 ### How are you running AnythingLLM? Local development ### What happened? **Env** * AnythingLLM: **v1.8.5 (server/headless)** * OS: Linux x86_64 * LLM: **LMDeploy** at `http://localhost:23333/v1` * Model: `Qwen2.5-7B-Instruct-AWQ` (chat completions OK) * Search: **SearXNG** at `http://localhost:53380` (JSON OK) **From:** Web UI thread (standard chat). Errors show in the A-LLM **server log** (backend log file). **Expected** * `@agent` with Web Search enabled should call SearXNG once and return links/citations. **Actual** * Agent decides to run `web-browsing`, then reports it already ran with the same args, produces no reply, and the UI stalls for a few seconds. **Log snippet (A-LLM server log)** ``` [AgentHandler] Attached web-browsing plugin to Agent cluster [AgentLLM - /...Qwen--Qwen2.5-7B-Instruct-AWQ] Valid tool call found - running web-browsing. [AgentHandler] [debug]: @agent is attempting to call `web-browsing` tool [AgentLLM - /...] Function tool with exact arguments has already been called this stack. [AgentLLM - /...] Will assume chat completion without tool call inputs. Client took too long to respond, chat thread is dead after 300000ms ``` (There is **no** `GET http://localhost:53380/search?format=json...` in the log for that turn.) **Notes** Looks like the agent planner proposes the same tool call twice in one turn; the runner dedupes it and doesn’t fall back, leaving the turn with no output. **Ask** On dedupe, either use the first tool result or gracefully fall back to a normal completion (no stall). ### Are there known steps to reproduce? **Repro (Web UI thread)** 1. Workspace → Agent → **Web Search ON** (Base URL `http://localhost:53380`), **Web Scraping OFF**. 2. In the thread, send: `@agent search the web for "acme search phrase" from this week and list 3 links` 3. Observe: dedupe message, no SearXNG call, no output.
yindo added the possible bug label 2026-02-22 18:31:37 -05:00
yindo closed this issue 2026-02-22 18:31:37 -05:00
Author
Owner

@timothycarambat commented on GitHub (Oct 10, 2025):

If this was being called successfully, we would expect to see this line

In the frontend, we would then see this error if SearXNG was unreachable/undefined:
https://github.com/Mintplex-Labs/anything-llm/blob/6270a0a189d34153d5e9e6b255a6d797bf8d3096/server/utils/agents/aibitat/plugins/web-browsing.js#L455

In local development, is your server/.env have AGENT_SEARXNG_API_URL set to http://localhost:53380?

Looks like it called, failed, then tried again - got deduped out of the tool stack. You see nothing in the frontend reflecting that error?

@timothycarambat commented on GitHub (Oct 10, 2025): If this was being called successfully, we would expect to see [this line](https://github.com/Mintplex-Labs/anything-llm/blob/6270a0a189d34153d5e9e6b255a6d797bf8d3096/server/utils/agents/aibitat/plugins/web-browsing.js#L466) In the frontend, we would then see this error if SearXNG was unreachable/undefined: https://github.com/Mintplex-Labs/anything-llm/blob/6270a0a189d34153d5e9e6b255a6d797bf8d3096/server/utils/agents/aibitat/plugins/web-browsing.js#L455 In local development, is your `server/.env` have `AGENT_SEARXNG_API_URL` set to `http://localhost:53380`? Looks like it called, failed, then tried again - got deduped out of the tool stack. You see nothing in the frontend reflecting that error?
yindo changed title from [BUG]: Agent web-browsing tool dedupes itself then stalls (no output) on 1.8.5 headless to [GH-ISSUE #4520] [BUG]: Agent web-browsing tool dedupes itself then stalls (no output) on 1.8.5 headless 2026-06-05 14:49:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2874