Skip to content

[Feature] 增强对未来任务拉起的Agent的管理能力 #9476

Description

@Baneik

Description / 描述

当前实现中,用户无法通过 IM 会话终止一个已经开始执行的未来任务 Agent。
IM 里的 /stop 只认识普通消息管道注册的 Agent。未来任务创建的 Agent 绕过了这套注册和停止机制。

用户操作 能否停止正在运行的未来任务
IM 发送/stop、 /reset、/new 不能;只能操作普通Agent
让 Agent 删除未来任务 不能停止当前执行;只能阻止后续触发
WebUI 禁用或删除任务 不能停止当前执行;只能移除未来调度
WebUI 聊天页面点击“停止” 不能;只操作 WebChat 会话注册表
重启 AstrBot 或终止进程 可以;是目前最可靠的紧急停止方式
等待任务自动结束 最多执行 30 个 Agent step,

也就是说,
如果未来任务拉起的Agent出错,并且正在造成损害时,你能做的只有重启astrbot,或者立刻拔掉服务器电源XD

Use Case / 使用场景

No response

Willing to Submit PR? / 是否愿意提交PR?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions