Skip to content

[Bug]发送主动消息会触发错误回复 #4576

@HunterJuly

Description

@HunterJuly

What happened / 发生了什么

我是在雨云服务器部署QQ平台的astr bot,目前机器人和QQ都更新到最新版本,Nap cat也是。当我在QQ上发送消息给小号的时候,部署在服务器上的QQ小号会直接触发一段错误回复,并体现在黑框上,把机器人和QQ以及napcat都更新到最新版本,都没有解决这个问题。

例如:
随机发送消息,在很快的时间内(超过之前正常使用时大模型的反应时间),Bot直接反馈错误信息。
Error occurred while processing agent request: 2 validation errors for Message
content.str
Input should be a valid string [type=string_type, input_value=[{'text': '<SYSTEM_TRIGGE...动发送的内容>'}], input_type=list]
For further information visit https://errors.pydantic.dev/2.10/v/string_type
content.list[function-plain[validate_content_part()]].0
Value error, Cannot validate {'text': '<SYSTEM_TRIGGER: 此条目为主动对话触发记录,非用户实际发言。AI 于 2026-01-19 23:15:15 主动向用户发起了对话,下方的 assistant 消息即为 AI 主动发送的内容>'} as ContentPart [type=value_error, input_value={'text': '<SYSTEM_TRIGGER...主动发送的内容>'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/value_error

Reproduce / 如何复现?

直接QQ主动发送消息就会触发这个错误回复,但是AstrBot里安装的主动回复插件并不受此影响,依然会定时主动发送信息。
但是在/reset之后会短暂正常回复主动消息。

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

Docker部署,Astrbot和QQ以及napcat都更新到最新版本。

OS

Windows

Logs / 报错日志

Image

图片上是之前的截图。以下消息是今晚在更新软件之后,主动发送消息遇到的情况。

Error occurred while processing agent request: 2 validation errors for Message
content.str
Input should be a valid string [type=string_type, input_value=[{'text': '<SYSTEM_TRIGGE...动发送的内容>'}], input_type=list]
For further information visit https://errors.pydantic.dev/2.10/v/string_type
content.list[function-plain[validate_content_part()]].0
Value error, Cannot validate {'text': '<SYSTEM_TRIGGER: 此条目为主动对话触发记录,非用户实际发言。AI 于 2026-01-19 23:15:15 主动向用户发起了对话,下方的 assistant 消息即为 AI 主动发送的内容>'} as ContentPart [type=value_error, input_value={'text': '<SYSTEM_TRIGGER...主动发送的内容>'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/value_error

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

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.bugSomething isn't workingfeature:pluginThe bug / feature is about AstrBot plugin system.plugin-cate:automationScheduled reminders, notifications, subscriptions, and proactive messages.(only startswith [Plugin])priority: p0will fix asap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions