惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
Google Developers Blog
S
SegmentFault 最新的问题
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
P
Proofpoint News Feed
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
F
Fortinet All Blogs
C
Check Point Blog
博客园_首页
I
InfoQ
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
Engineering at Meta
Engineering at Meta
美团技术团队
Vercel News
Vercel News
Apple Machine Learning Research
Apple Machine Learning Research

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(discord): prefer latest voice auto-join channel · ope...
steipete · 2026-05-08 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -14,6 +14,7 @@ Docs: https://docs.openclaw.ai

1414

- Slack: route handled top-level channel turns in implicit-conversation channels to thread-scoped sessions when Slack reply threading is enabled, keeping the root turn and later thread replies on one OpenClaw session. (#78522) Thanks @zeroth-blip.

1515

- Telegram: re-probe the primary fetch transport after repeated sticky fallback success so transient IPv4 or pinned-IP fallback promotion can recover without a gateway restart. Fixes #77088. (#77157) Thanks @MkDev11.

1616

- Runtime/install: raise the supported Node 22 floor to `22.16+` so native SQLite query handling can rely on the `node:sqlite` statement metadata API while continuing to recommend Node 24. (#78921)

17+

- Discord/voice: make duplicate same-guild auto-join entries resolve to the last configured channel so moving an agent between voice channels does not keep joining the stale channel.

1718

- Discord/voice: include a bounded one-line STT transcript preview in verbose voice logs so live voice debugging shows what speakers said before the agent reply.

1819

- Codex app-server: pin the managed Codex harness and Codex CLI smoke package to `@openai/codex@0.129.0`, defer OpenClaw integration dynamic tools behind Codex tool search by default, and accept current Codex service-tier values so legacy `fast` settings survive the stable harness upgrade as `priority`.

1920

- Codex app-server: default implicit local stdio app-server permissions to guardian when Codex system requirements disallow the YOLO approval, reviewer, or sandbox value, including hostname-scoped remote sandbox entries, avoiding turn-start failures on managed hosts that permit only reviewed approval or narrower sandboxes.

Original file line numberDiff line numberDiff line change

@@ -1206,6 +1206,7 @@ Notes:

12061206

- Voice transcript turns derive owner status from Discord `allowFrom` (or `dm.allowFrom`); non-owner speakers cannot access owner-only tools (for example `gateway` and `cron`).

12071207

- Discord voice is opt-in for text-only configs; set `channels.discord.voice.enabled=true` (or keep an existing `channels.discord.voice` block) to enable `/vc` commands, the voice runtime, and the `GuildVoiceStates` gateway intent.

12081208

- `channels.discord.intents.voiceStates` can explicitly override voice-state intent subscription. Leave it unset for the intent to follow effective voice enablement.

1209+

- If `voice.autoJoin` has multiple entries for the same guild, OpenClaw joins the last configured channel for that guild.

12091210

- `voice.daveEncryption` and `voice.decryptionFailureTolerance` pass through to `@discordjs/voice` join options.

12101211

- `@discordjs/voice` defaults are `daveEncryption=true` and `decryptionFailureTolerance=24` if unset.

12111212

- `voice.connectTimeoutMs` controls the initial `@discordjs/voice` Ready wait for `/vc join` and auto-join attempts. Default: `30000`.

Original file line numberDiff line numberDiff line change

@@ -389,6 +389,29 @@ describe("DiscordVoiceManager", () => {

389389

expectConnectedStatus(manager, "1001");

390390

});

391391
392+

it("autoJoin uses the last configured channel for duplicate guild entries", async () => {

393+

const manager = createManager({

394+

voice: {

395+

enabled: true,

396+

autoJoin: [

397+

{ guildId: "g1", channelId: "1001" },

398+

{ guildId: "g1", channelId: "1002" },

399+

],

400+

},

401+

});

402+
403+

await manager.autoJoin();

404+
405+

expect(joinVoiceChannelMock).toHaveBeenCalledTimes(1);

406+

expect(joinVoiceChannelMock).toHaveBeenCalledWith(

407+

expect.objectContaining({

408+

guildId: "g1",

409+

channelId: "1002",

410+

}),

411+

);

412+

expectConnectedStatus(manager, "1002");

413+

});

414+
392415

it("does not throw when stale tracked voice connections are already destroyed", async () => {

393416

const staleConnection = createConnectionMock();

394417

staleConnection.state.status = "destroyed";

Original file line numberDiff line numberDiff line change

@@ -134,21 +134,32 @@ export class DiscordVoiceManager {

134134

}

135135

this.autoJoinTask = (async () => {

136136

const entries = this.params.discordConfig.voice?.autoJoin ?? [];

137-

logVoiceVerbose(`autoJoin: ${entries.length} entries`);

138-

const seenGuilds = new Set<string>();

137+

const entriesByGuild = new Map<string, { guildId: string; channelId: string }>();

138+

const duplicateGuilds = new Set<string>();

139139

for (const entry of entries) {

140140

const guildId = entry.guildId.trim();

141-

if (!guildId) {

141+

const channelId = entry.channelId.trim();

142+

if (!guildId || !channelId) {

142143

continue;

143144

}

144-

if (seenGuilds.has(guildId)) {

145+

if (entriesByGuild.has(guildId)) {

146+

duplicateGuilds.add(guildId);

147+

}

148+

entriesByGuild.set(guildId, { guildId, channelId });

149+

}

150+
151+

logVoiceVerbose(`autoJoin: ${entries.length} entries, ${entriesByGuild.size} guilds`);

152+

for (const guildId of duplicateGuilds) {

153+

const selected = entriesByGuild.get(guildId);

154+

if (selected) {

145155

logger.warn(

146-

`discord voice: autoJoin has multiple entries for guild ${guildId}; skipping`,

156+

`discord voice: autoJoin has multiple entries for guild ${guildId}; using channel ${selected.channelId}`,

147157

);

148-

continue;

149158

}

150-

seenGuilds.add(guildId);

151-

logVoiceVerbose(`autoJoin: joining guild ${guildId} channel ${entry.channelId}`);

159+

}

160+
161+

for (const entry of entriesByGuild.values()) {

162+

logVoiceVerbose(`autoJoin: joining guild ${entry.guildId} channel ${entry.channelId}`);

152163

await this.join({

153164

guildId: entry.guildId,

154165

channelId: entry.channelId,