[GH-ISSUE #5250] [BUG]: If agent web search is not setup at ALLM level, the system goes into infinite loop. #4985

Closed
opened 2026-06-05 14:51:18 -04:00 by yindo · 2 comments
Owner

Originally created by @bulrush15 on GitHub (Mar 22, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5250

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

  • My system: HP Omen GT13-1xxx desktop PC with Windows 11, 16GBM RAM, UEFI
  • CPU: AMD Ryzen 5 5600G with Radeon Graphics, 6 cores
  • Video card: Nvidia GeForce RTX 3060 with 12GBM VRAM

The agent should fail gracefully. It should check to see 1) if the web search (or other agent tool) is on and then 2) Check to see if a web search provider was given in the system setup, or workspace setup.

In AnythingLLM Desktop v1.11.2 I didn't have my agent web search on or set up.

Are there known steps to reproduce?

  1. Install a fresh version of AnythingLLM without setting up the web search tool for agents.
  2. I typed "@agent find the top 8 articles about AI and search the web. List the articles one per bullet and have a clickable link in each bullet for the source".

The agent seemed to start but never stopped eventually using over 80% of my memory. When I stopped ALLM via Task Manager the memory was never freed. I had to reboot the PC.

Originally created by @bulrush15 on GitHub (Mar 22, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5250 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? * My system: HP Omen GT13-1xxx desktop PC with Windows 11, 16GBM RAM, UEFI * CPU: AMD Ryzen 5 5600G with Radeon Graphics, 6 cores * Video card: Nvidia GeForce RTX 3060 with 12GBM VRAM The agent should fail gracefully. It should check to see 1) if the web search (or other agent tool) is on and then 2) Check to see if a web search provider was given in the system setup, or workspace setup. In AnythingLLM Desktop v1.11.2 I didn't have my agent web search on or set up. ### Are there known steps to reproduce? 1. Install a fresh version of AnythingLLM without setting up the web search tool for agents. 2. I typed "@agent find the top 8 articles about AI and search the web. List the articles one per bullet and have a clickable link in each bullet for the source". The agent seemed to start but never stopped eventually using over 80% of my memory. When I stopped ALLM via Task Manager the memory was never freed. I had to reboot the PC.
yindo added the possible bugneeds info / can't replicate labels 2026-06-05 14:51:18 -04:00
yindo closed this issue 2026-06-05 14:51:19 -04:00
Author
Owner

@timothycarambat commented on GitHub (Mar 23, 2026):

The agent seemed to start but never stopped eventually using over 80% of my memory. When I stopped ALLM via Task Manager the memory was never freed. I had to reboot the PC.

I dont know what llm provider you are using but killing AnythingLLM would indeed kill the child llm.exe that was associated with the parent process.

We have a max tool call stack to prevent exactly this with small models that are not "smart" enough to know when to stop calling tools - which is common for some providers who do not support native tool calling.

Are you using the default llm provider and what specific model are you on?

<!-- gh-comment-id:4111990505 --> @timothycarambat commented on GitHub (Mar 23, 2026): > The agent seemed to start but never stopped eventually using over 80% of my memory. When I stopped ALLM via Task Manager the memory was never freed. I had to reboot the PC. I dont know what llm provider you are using but killing AnythingLLM would indeed kill the child `llm.exe` that was associated with the parent process. We have a max tool call stack to prevent exactly this with small models that are not "smart" enough to know when to stop calling tools - which is common for some providers who do not support native tool calling. Are you using the default llm provider and what specific model are you on?
Author
Owner

@bulrush15 commented on GitHub (Mar 25, 2026):

That workspace is using llama3.2:3b. I didn't realize this could be a model issue. There was no timeout, the ALLM app just ran and ran with no message at all.

<!-- gh-comment-id:4125758878 --> @bulrush15 commented on GitHub (Mar 25, 2026): That workspace is using llama3.2:3b. I didn't realize this could be a model issue. There was no timeout, the ALLM app just ran and ran with no message at all.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4985