#7665·FastGPT

在点击停止后,agentV2 通常无法停止

作者: goactiongo创建于 2026年9月5日更新于 2026年9月23日
标签feature

Agent Loop's stop checkpoints: When streaming (stream.ts:44, 128, 202): Check isAborted().() for each chunk to respond quickly. After the tool execution returns (base.ts:651, 679, 685): Check only after the tool is completed. Between iterations (base.ts:685): Check after each round of LLM. Problem: When the agent calls a tool (such as an HTTP request, sandbox execution, sub-application, knowledge base search), the tool execution does not check the stop signal. If the tool execution time is greater than 5 seconds: The Stop API returns completed: false. The workflow continues until the tool is completed. The user sees "stop failed." Code evidence (base.ts:532):

内容来源: labring/FastGPT