fix(qqbot): add interaction intents (#70143) · openclaw/openclaw@608cfd3
cxyhhhhh
·
2026-04-22
·
via Recent Commits to openclaw:main
File tree
2 files changed
lines changed
extensions/qqbot/src/engine/gateway
2 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|
@@ -49,6 +49,7 @@ Docs: https://docs.openclaw.ai
|
49 | 49 | - CLI sessions: keep provider-owned CLI sessions through implicit daily expiry while preserving explicit reset behavior, and retain Claude CLI binding metadata across gateway agent requests. (#70106) Thanks @obviyus. |
50 | 50 | - fix(config): accept truncateAfterCompaction (#68395). Thanks @MonkeyLeeT |
51 | 51 | - CLI/Claude: keep Claude CLI session bindings stable across OAuth access-token refreshes, so gateway restarts continue the same Claude conversation instead of minting a fresh one. (#70132) Thanks @obviyus. |
| 52 | +- QQBot: add `INTERACTION` intent (`1 << 26`) to the gateway constants and include it in the `FULL_INTENTS` mask so interaction events are received. (#70143) Thanks @cxyhhhhh. |
52 | 53 | |
53 | 54 | ## 2026.4.21 |
54 | 55 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,11 +12,15 @@ const INTENTS = {
|
12 | 12 | PUBLIC_GUILD_MESSAGES: 1 << 30, |
13 | 13 | DIRECT_MESSAGE: 1 << 12, |
14 | 14 | GROUP_AND_C2C: 1 << 25, |
| 15 | +INTERACTION: 1 << 26, |
15 | 16 | } as const; |
16 | 17 | |
17 | | -/** Full intent mask: groups + DMs + channels. */ |
| 18 | +/** Full intent mask: groups + DMs + channels + interaction. */ |
18 | 19 | export const FULL_INTENTS = |
19 | | -INTENTS.PUBLIC_GUILD_MESSAGES | INTENTS.DIRECT_MESSAGE | INTENTS.GROUP_AND_C2C; |
| 20 | +INTENTS.PUBLIC_GUILD_MESSAGES | |
| 21 | +INTENTS.DIRECT_MESSAGE | |
| 22 | +INTENTS.GROUP_AND_C2C | |
| 23 | +INTENTS.INTERACTION; |
20 | 24 | |
21 | 25 | /** Exponential backoff delays for reconnection attempts (ms). */ |
22 | 26 | export const RECONNECT_DELAYS = [1000, 2000, 5000, 10000, 30000, 60000] as const; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。