Skip to content

[Bug] #6846

@had77guai

Description

@had77guai

What happened / 发生了什么

我使用的是kook适配器,并使用了WebSocket 连接模式,且已经确认在kook平台没有屏蔽任何信息,并给予了机器人所有权限
不知道为什么,机器人对/help、/sid等内置指令有正常反应,而当我用/(某个消息)试图进行AI聊天时,机器人就无法回复我了。我的唤醒词就是“/”,发送"/贝尔法斯特"后,进入日志查看后发现如下文第一段

而这个AI配置中我使用了另一个人格,但在一小时前kook和机器人私聊时(这个时候能触发AI聊天操作),其使用的人格却是默认人格而不是我设置的人格(我确定不是)……哦抱歉,在试图复现的时候,我发送了“111”和“/111”,然后我发现私聊也无法触发AI聊天了,日志如下文第二段

我不知道发生了什么,之前我还试图通过@机器人来使用聊天功能,结果我发现机器人根本无法收到@机器人的消息,随后就使用唤醒词进行,但毫无作用,直接频道里发送/new确实能够开启新对话,但根本无法进行聊天

我在进行kook平台机器人操作前,我去飞书也创建了机器人,并且在飞书上运转良好(至少能够进行AI聊天),而当我发现飞书上机器人无法查看到机器人的消息后,我选择换到kook上,但kook这里并不能进行AI聊天,让我非常受挫,我最初使用astrbot的目的就是为了让多个AI能够相互沟通

Reproduce / 如何复现?

我并不知道该bug是如何发生的——就和我也不知道机器人不能识别到@机器人的消息,我只能说我是在astrbot里弄一个kook机器人,完全按照官网文档操作后发生的

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

Windows Docker Desktop,使用的是kook消息平台适配器,使用的deepseek

Image

OS

Windows

Logs / 报错日志

频道中消息
[2026-03-23 18:44:46.589] [Core] [INFO] [core.event_bus:61]: [default] [kook(kook)] 10086/1234567890: [At:987654321] /贝尔法斯特
[2026-03-23 18:44:46.589] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot - on_message
[2026-03-23 18:44:46.589] [Core] [DBUG] [pipeline.scheduler:93]: pipeline 执行完毕。
[2026-03-23 18:44:46.590] [Core] [DBUG] [waking_check.stage:157]: enabled_plugins_name: ['*']
[2026-03-23 18:44:46.593] [Core] [DBUG] [method.star_request:44]: plugin -> session_controller - handle_session_control_agent
[2026-03-23 18:44:46.593] [Core] [DBUG] [method.star_request:44]: plugin -> session_controller - handle_empty_mention
[2026-03-23 18:44:46.593] [Core] [DBUG] [method.star_request:44]: plugin -> astrbot - on_message
[2026-03-23 18:44:46.594] [Core] [DBUG] [agent_sub_stages.internal:166]: ready to request llm provider
[2026-03-23 18:44:46.594] [Core] [DBUG] [agent_sub_stages.internal:185]: acquired session lock for llm request
[2026-03-23 18:44:46.629] [Core] [DBUG] [core.astr_main_agent_resources:450]: [知识库] 使用全局配置,知识库数量: 0
[2026-03-23 18:44:46.629] [Core] [DBUG] [core.astr_main_agent:682]: Provider <astrbot.core.provider.sources.openai_source.ProviderOpenAIOfficial object at 0x0000023A1B1BBE90> does not support tool_use, clearing tools.
[2026-03-23 18:44:46.629] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot - decorate_llm_req
[2026-03-23 18:44:46.629] [Core] [DBUG] [pipeline.context_utils:95]: hook(OnLLMRequestEvent) -> astrbot-web-searcher - edit_web_search_tools
[2026-03-23 18:44:46.630] [Core] [INFO] [respond.stage:184]: Prepare to send - 10086/1234567890:
[2026-03-23 18:44:46.630] [Core] [INFO] [respond.stage:200]: 应用流式输出(kook)
[2026-03-23 18:44:46.630] [Core] [DBUG] [pipeline.scheduler:93]: pipeline 执行完毕。

私聊中消息
[2026-03-23 18:49:37.002] [Core] [INFO] [respond.stage:184]: Prepare to send - 10086/1234567890:
[2026-03-23 18:49:37.003] [Core] [INFO] [respond.stage:200]: 应用流式输出(kook)
[2026-03-23 18:49:37.003] [Core] [DBUG] [pipeline.scheduler:93]: pipeline 执行完毕。

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 working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions