Skip to content

[Bug] MaxKB 智能体循环节点在对话中中断错误 #5091

@songyss

Description

@songyss

Contact Information

bowei.song@fit2cloud.com

MaxKB Version

MaxKB v2.7.1

Problem Description

在 MaxKB 的智能体循环节点中,如果设定循环事件,在后续对话中点击停止后,仅前端会停止输出,控制台网络依然会不断输出执行,在停止后一分钟内(不同设备响应时间不同),bot聊天框会从原本未执行完毕的输出结果变为TypeError: network error,此时后台真正停止输出

Steps to Reproduce

Image

The expected correct result

后端应该立即停止执行?

Related log output

2026-04-10 18:18:08 [workflow_manage ERROR] Exception: Exceeding the maximum number of cycles
Traceback (most recent call last):
  File "/opt/maxkb-app/community/apps/application/flow/workflow_manage.py", line 427, in hand_event_node_result
  File "/opt/maxkb-app/community/apps/application/flow/step_node/loop_node/impl/base_loop_node.py", line 149, in loop
Exception: Exceeding the maximum number of cycles

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions