Skip to content

[Bug]SubAgent 编排无法正常使用 #5669

@lzcangel

Description

@lzcangel

What happened / 发生了什么

按照说明创建SubAgent ,点击保存,会报如下错误:

Image

Reproduce / 如何复现?

按照说明创建SubAgent ,点击保存。

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

v4.18.3

OS

Windows

Logs / 报错日志

[17:22:35.406] [Core] [ERRO] [v4.18.3] [routes.subagent:87]: Traceback (most recent call last):
File "C:\agent\AstrBot\astrbot\dashboard\routes\subagent.py", line 83, in update_config
await orch.reload_from_config(data)
File "C:\agent\AstrBot\astrbot\core\subagent_orchestrator.py", line 49, in reload_from_config
persona_data = await self._persona_mgr.get_persona(persona_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\agent\AstrBot\astrbot\core\persona_mgr.py", line 42, in get_persona
raise ValueError(f"Persona with ID {persona_id} does not exist.")
ValueError: Persona with ID default does not exist.

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendbugSomething isn't workingfeature:personaThe bug / feature is about astrbot AI persona system (system prompt)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions