@creatoraris/openclaw-wecom 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -436,8 +436,9 @@ const plugin = {
436
436
 
437
437
  // ── Context reset command ──
438
438
  if (RESET_COMMANDS.includes(text.trim().toLowerCase())) {
439
- const sessionId = chattype === 'group' ? `wecom_group_${chatid}` : `wecom_bot_${from?.userid}`;
440
- const sessionKey = `agent:main:openresponses-user:${sessionId}`;
439
+ const rawSessionId = chattype === 'group' ? `wecom_group_${chatid}` : `wecom_bot_${from?.userid}`;
440
+ // OpenClaw lowercases user IDs internally, so we must match that
441
+ const sessionKey = `agent:main:openresponses-user:${rawSessionId.toLowerCase()}`;
441
442
  let resetMsg = '上下文已重置,开始新的对话。';
442
443
 
443
444
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creatoraris/openclaw-wecom",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Enterprise WeChat (WeCom) channel plugin for OpenClaw - 企业微信智能助手机器人桥接",
5
5
  "main": "index.js",
6
6
  "type": "module",