[GH-ISSUE #5102] [BUG]: 'Generate & save files' skill downloads files multiple times instead of once #4917

Closed
opened 2026-06-05 14:50:51 -04:00 by yindo · 1 comment
Owner

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

How are you running AnythingLLM?

Docker (local)

What happened?

My Issue

When I type '@agent' and ask to generate and save a PDF file to my PC with the native 'Generate & save files' skill, it repeatedly tries to download the file to my PC (once you confirm the location to save the file, it downloads and another window asking the location opens, and so on).

Automatic downloads are allowed by my browser (Chrome).

What I expected to happen

Download a single file to my PC when the tool is called with '@agent'.

More Info

I'm on Docker with ministral-3b-latest model.

Maybe it's the model being too 'dumb', but the tool might not be explicit enough about the fact it has succesfully been executed and thus gets executed an infinite amount of times (just speculating here).

Thanks. Ask me if you need more info.

Are there known steps to reproduce?

Ask the LLM '@agent create a PDF with this information' or similar in the same conditions as described above (Docker, similar model). The 'Generate & save files' skill must be enabled.

Originally created by @LudoE11 on GitHub (Mar 2, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5102 ### How are you running AnythingLLM? Docker (local) ### What happened? ### My Issue When I type '@agent' and ask to generate and save a PDF file to my PC with the native 'Generate & save files' skill, it repeatedly tries to download the file to my PC (once you confirm the location to save the file, it downloads and another window asking the location opens, and so on). Automatic downloads are allowed by my browser (Chrome). ### What I expected to happen Download a single file to my PC when the tool is called with '@agent'. ### More Info I'm on Docker with ministral-3b-latest model. Maybe it's the model being too 'dumb', but the tool might not be explicit enough about the fact it has succesfully been executed and thus gets executed an infinite amount of times (just speculating here). Thanks. Ask me if you need more info. ### Are there known steps to reproduce? Ask the LLM '@agent create a PDF with this information' or similar in the same conditions as described above (Docker, similar model). The 'Generate & save files' skill must be enabled.
yindo added the possible bug label 2026-06-05 14:50:51 -04:00
yindo closed this issue 2026-06-05 14:50:51 -04:00
Author
Owner

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

This is a model behavior indeed. We do return a "This was saved successfully" to the model so it should stop, but it very very much depends on the model.

Depending on the provider you use, we just added native tool calling (#5071_ - which will help a ton with preventing this.

<!-- gh-comment-id:3985135825 --> @timothycarambat commented on GitHub (Mar 2, 2026): This is a model behavior indeed. We do return a "This was saved successfully" to the model so it _should_ stop, but it very very much depends on the model. Depending on the provider you use, we just added native tool calling (#5071_ - which will help a ton with preventing this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4917