[GH-ISSUE #3463] [BUG]: Agent continues to run if request failed (even after /exit) #2233

Closed
opened 2026-02-22 18:28:46 -05:00 by yindo · 2 comments
Owner

Originally created by @scottybo on GitHub (Mar 14, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3463

Originally assigned to: @shatfield4 on GitHub.

How are you running AnythingLLM?

Docker (remote machine)

What happened?

If an agent fails to run (e.g. there was an API error) then it attempts to re-try every minute. However, this sometimes continues to run even after the user has done /exit.

Is there a way to stop all attempts for any retries, or set a limit on the number of retries?

Are there known steps to reproduce?

Create an agent that fails during a request to a remote API. (This is via a custom skill, rather than the agent builder)

Originally created by @scottybo on GitHub (Mar 14, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3463 Originally assigned to: @shatfield4 on GitHub. ### How are you running AnythingLLM? Docker (remote machine) ### What happened? If an agent fails to run (e.g. there was an API error) then it attempts to re-try every minute. However, this sometimes continues to run even after the user has done `/exit`. Is there a way to stop all attempts for any retries, or set a limit on the number of retries? ### Are there known steps to reproduce? Create an agent that fails during a request to a remote API. (This is via a custom skill, rather than the agent builder)
yindo added the needs info / can't replicate label 2026-02-22 18:28:46 -05:00
yindo closed this issue 2026-02-22 18:28:46 -05:00
Author
Owner

@shatfield4 commented on GitHub (Mar 18, 2025):

Can you please provide me with the code for your handler.js that you are using here? I created an agent skill plugin and intentionally made the fetch request fail and the agent session is still terminating properly.

If you can provide me more info on how you are able to replicate this behavior we can get this patched.

@shatfield4 commented on GitHub (Mar 18, 2025): Can you please provide me with the code for your `handler.js` that you are using here? I created an agent skill plugin and intentionally made the fetch request fail and the agent session is still terminating properly. If you can provide me more info on how you are able to replicate this behavior we can get this patched.
Author
Owner

@scottybo commented on GitHub (Apr 8, 2025):

@shatfield4 apologies, I didn't see your request for more information! Looks like its been resolved now though :)

@scottybo commented on GitHub (Apr 8, 2025): @shatfield4 apologies, I didn't see your request for more information! Looks like its been resolved now though :)
yindo changed title from [BUG]: Agent continues to run if request failed (even after /exit) to [GH-ISSUE #3463] [BUG]: Agent continues to run if request failed (even after /exit) 2026-06-05 14:45:21 -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#2233