lemonai icon indicating copy to clipboard operation
lemonai copied to clipboard

有时会执行阻塞线程的bash,导致流程卡住(Sometimes, a blocking Bash command is executed, which causes the process to get stuck.)

Open lzcangel opened this issue 1 year ago • 1 comments

Image

lzcangel avatar Oct 15 '25 10:10 lzcangel

Hello, thanks for bringing this to our attention.

You are correct; sometimes, due to the variability across different LLMs, certain models can generate blocking Bash commands that cause the execution flow to hang or get stuck.

Optimization Note: We have indeed implemented optimizations for this specific issue in future versions (specifically, our current closed-source release).

For the open-source version, our recommended workaround is to add specific experience/guidance to your Agent to prevent the generation of such commands.

Suggested Action:

Please add an experience entry to your Agent with the following configuration:

Type: execution

Content: "Do not generate code that requires indefinite waiting or blocks the thread, such as 'python3 -m http.server 8000'."

This experience will guide the model away from generating blocking commands.

Let us know if this helps!

HexdoAI avatar Nov 04 '25 09:11 HexdoAI