mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:10:45 +00:00
fix(qqbot): add interaction intents (#70143)
* feat(qqbot): add intents interaction * fix(qqbot): add interaction intents (#70143) (thanks @cxyhhhhh) --------- Co-authored-by: sliverp <870080352@qq.com>
This commit is contained in:
@@ -49,6 +49,7 @@ Docs: https://docs.openclaw.ai
|
||||
- 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.
|
||||
- fix(config): accept truncateAfterCompaction (#68395). Thanks @MonkeyLeeT
|
||||
- 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.
|
||||
- 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.
|
||||
|
||||
## 2026.4.21
|
||||
|
||||
|
||||
@@ -12,11 +12,15 @@ const INTENTS = {
|
||||
PUBLIC_GUILD_MESSAGES: 1 << 30,
|
||||
DIRECT_MESSAGE: 1 << 12,
|
||||
GROUP_AND_C2C: 1 << 25,
|
||||
INTERACTION: 1 << 26,
|
||||
} as const;
|
||||
|
||||
/** Full intent mask: groups + DMs + channels. */
|
||||
/** Full intent mask: groups + DMs + channels + interaction. */
|
||||
export const FULL_INTENTS =
|
||||
INTENTS.PUBLIC_GUILD_MESSAGES | INTENTS.DIRECT_MESSAGE | INTENTS.GROUP_AND_C2C;
|
||||
INTENTS.PUBLIC_GUILD_MESSAGES |
|
||||
INTENTS.DIRECT_MESSAGE |
|
||||
INTENTS.GROUP_AND_C2C |
|
||||
INTENTS.INTERACTION;
|
||||
|
||||
/** Exponential backoff delays for reconnection attempts (ms). */
|
||||
export const RECONNECT_DELAYS = [1000, 2000, 5000, 10000, 30000, 60000] as const;
|
||||
|
||||
Reference in New Issue
Block a user