openclaw - 💡(How to fix) Fix [Bug] 微信插件登录成功但消息不创建会话 [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#63028Fetched 2026-04-09 07:59:18
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants
RAW_BUFFERClick to expand / collapse

问题描述

微信插件扫码登录成功,账号显示 OK,getUpdates API 正常返回消息,但消息未创建会话,bot 无回复。

环境

  • OpenClaw 版本:2026.4.5
  • 插件版本:2.1.7
  • Node 版本:22.22.1
  • 系统:Linux 6.12.30+

复现步骤

  1. 执行 npx -y @tencent-weixin/openclaw-weixin-cli@latest install
  2. 扫码登录成功,账号保存到 ~/.openclaw/openclaw-weixin/accounts/
  3. Gateway 显示 openclaw-weixin ON OK accounts 1/1
  4. 通过 getUpdates API 直接调用可以收到消息,但 gateway 不处理
  5. 手动检查发现 /root/.openclaw/credentials/ 目录不存在,allowFrom 授权文件未生成

根因分析

扫码登录完成后,registerUserInFrameworkStore() 函数应该将用户的 ilink_user_id 写入 credentials/openclaw-weixin-{accountId}-allowFrom.json 文件,但 credentials/ 目录从未被创建,allowFrom 文件也未生成,导致框架层直接拒绝处理消息。

证据

通过直接调用 getUpdates API 确认消息已到达服务器,返回了正常消息内容(你好、在吗等)。

期望行为

扫码登录完成后应自动创建 allowFrom 授权文件,或提供明确的配置说明。

extent analysis

TL;DR

创建 credentials/ 目录并确保 allowFrom 授权文件生成以解决消息未创建会话的问题。

Guidance

  • 检查 registerUserInFrameworkStore() 函数是否正确执行并写入 ilink_user_idcredentials/openclaw-weixin-{accountId}-allowFrom.json 文件。
  • 手动创建 credentials/ 目录以确保授权文件可以生成。
  • 验证 allowFrom 文件是否正确生成并包含必要的授权信息。
  • 检查 OpenClaw 和插件版本是否与 credentials/ 目录和 allowFrom 文件的生成兼容。

Example

无明确的代码示例可提供,因为问题主要与目录和文件生成相关。

Notes

此解决方案假设 registerUserInFrameworkStore() 函数正确实现且 credentials/ 目录的创建是解决问题的关键步骤。实际解决方案可能需要根据具体的 OpenClaw 和插件版本进行调整。

Recommendation

Apply workaround:手动创建 credentials/ 目录并确保 allowFrom 授权文件生成,因为这似乎是解决消息未创建会话问题的直接方法。

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING