mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Got empty response intermittently from LLM using Agent Node #886
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @Pandaaaa906 on GitHub (Dec 19, 2025).
Self Checks
Dify version
1.10.0
Plugin version
0.0.25(0.2.4 for mcp_see_agent)
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
my flow setup like this, with ReAct strategy

it will get "I am thinking about how to help you" from time to time,
it's turn out that LLM response empty response

i modify the plugin to let it retry in next iteration when this happen,
https://github.com/Pandaaaa906/dify-plugin-agent-mcp_sse/tree/fix-retry-llm-false-format
the llm's response will be normal again,
but in the next iteration step it will empty response again....
Models i test:
volcengine: kimi-k2-thinking bad, in another level
volcengine: kimi-k2 always bad
volcengine: Qwen/Qwen2.5-32B always bad
siliconflow: moonshotai/Kimi-K2-Instruct good
siliconflow: deepseek-ai/DeekSeek-R1 bad
moonshotai: kimi-k2-thinking good but real slow
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Dec 19, 2025):
This is a known issue in Dify when using Agent Node with the ReAct strategy—intermittent empty LLM responses (often surfacing as "I am thinking about how to help you") have been reported by multiple users across versions, especially with certain models and in flows involving tool calls or loops. The root causes include agent strategy failures, tool/plugin output quirks, model API inconsistencies, and lack of defensive checks or retries in the core agent and ReAct code. Some models and plugins (like Qwen/Tongyi or kimi-k2) are more prone to this due to schema or output format issues, while others (like moonshotai/Kimi-K2-Instruct) perform better in this context example.
There is no universal fix yet, but these steps can help reduce the frequency or impact:
The core Dify Agent Node and ReAct strategy currently do not retry or filter empty LLM responses—they surface them as-is, so plugin-level workarounds (like your retry patch) are the most effective mitigation for now reference.
If you want to debug further, enable detailed logs, isolate which models/tools trigger the issue most, and try reducing flow complexity. If you can consistently reproduce the problem with a specific model or plugin version, sharing those details (and any error logs) will help maintainers prioritize a more robust fix.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@Pandaaaa906 commented on GitHub (Dec 19, 2025):
here r some related issues
https://github.com/langgenius/dify/issues/20499
https://github.com/langgenius/dify/issues/26464
@pr-maia commented on GitHub (Dec 19, 2025):
It'd be great to have this fixed or gain the ability to configure retries for the agent ndoe
@Pandaaaa906 commented on GitHub (Dec 19, 2025):
@pr-maia i've created a pull request that could retry when LLM got empty response or false format in the unofficial agent plugin
@dosubot[bot] commented on GitHub (Jan 4, 2026):
Hi, @Pandaaaa906. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and valuable contribution!