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

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
T
The Blog of Author Tim Ferriss
V
Visual Studio Blog
GbyAI
GbyAI
B
Blog RSS Feed
H
Help Net Security
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The Cloudflare Blog
Security Latest
Security Latest
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
P
Privacy & Cybersecurity Law Blog
J
Java Code Geeks
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threatpost
Schneier on Security
Schneier on Security
T
Tenable Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Latest news
Latest news
P
Proofpoint News Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
W
WeLiveSecurity
G
GRAHAM CLULEY
P
Palo Alto Networks Blog
The Hacker News
The Hacker News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
Recent Commits to openclaw:main
Recent Commits to openclaw:main
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V2EX - 技术
V2EX - 技术
MongoDB | Blog
MongoDB | Blog
博客园_首页
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Threat Research - Cisco Blogs
T
Tor Project blog
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Hacker News - Newest:
Hacker News - Newest: "LLM"
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
月光博客
月光博客

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix: stabilize Discord realtime voice proxy · openclaw/openclaw@6a2260e
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -892,14 +892,34 @@ describe("DiscordVoiceManager", () => {

892892

const bridgeParams = createRealtimeVoiceBridgeSessionMock.mock.calls.at(-1)?.[0] as

893893

| {

894894

autoRespondToAudio?: boolean;

895-

tools?: unknown[];

896-

onTranscript?: (role: "user" | "assistant", text: string, isFinal: boolean) => void;

895+

instructions?: string;

896+

tools?: Array<{ name: string }>;

897+

onToolCall?: (

898+

event: {

899+

itemId: string;

900+

callId: string;

901+

name: string;

902+

args: unknown;

903+

},

904+

session: typeof realtimeSessionMock,

905+

) => void;

897906

}

898907

| undefined;

899-

expect(bridgeParams?.autoRespondToAudio).toBe(false);

900-

expect(bridgeParams?.tools).toStrictEqual([]);

908+

expect(bridgeParams?.autoRespondToAudio).toBe(true);

909+

expect(bridgeParams?.instructions).toContain("same OpenClaw agent");

910+

expect(bridgeParams?.tools?.map((tool) => tool.name)).toContain("openclaw_agent_consult");

901911902-

bridgeParams?.onTranscript?.("user", "what did I ask?", true);

912+

bridgeParams?.onToolCall?.(

913+

{

914+

itemId: "item-1",

915+

callId: "call-1",

916+

name: "openclaw_agent_consult",

917+

args: { question: "what did I ask?" },

918+

},

919+

realtimeSessionMock,

920+

);

921+

await Promise.resolve();

922+

await Promise.resolve();

903923

await new Promise((resolve) => setTimeout(resolve, 20));

904924905925

expect(agentCommandMock).toHaveBeenCalledWith(

@@ -910,9 +930,76 @@ describe("DiscordVoiceManager", () => {

910930

}),

911931

expect.anything(),

912932

);

913-

expect(realtimeSessionMock.sendUserMessage).toHaveBeenCalledWith(

914-

expect.stringContaining("agent proxy answer"),

933+

expect(realtimeSessionMock.submitToolResult).toHaveBeenCalledWith(

934+

"call-1",

935+

expect.objectContaining({ status: "working" }),

936+

{ willContinue: true },

915937

);

938+

expect(realtimeSessionMock.submitToolResult).toHaveBeenCalledWith("call-1", {

939+

text: "agent proxy answer",

940+

});

941+

});

942+943+

it("does not require speaker context for internal exact-speech consults", async () => {

944+

const manager = createManager({

945+

groupPolicy: "open",

946+

voice: {

947+

enabled: true,

948+

mode: "agent-proxy",

949+

realtime: { provider: "openai" },

950+

},

951+

});

952+953+

await manager.join({ guildId: "g1", channelId: "1001" });

954+

const bridgeParams = createRealtimeVoiceBridgeSessionMock.mock.calls.at(-1)?.[0] as

955+

| {

956+

onToolCall?: (

957+

event: {

958+

itemId: string;

959+

callId: string;

960+

name: string;

961+

args: unknown;

962+

},

963+

session: typeof realtimeSessionMock,

964+

) => void;

965+

}

966+

| undefined;

967+968+

bridgeParams?.onToolCall?.(

969+

{

970+

itemId: "item-exact",

971+

callId: "call-exact",

972+

name: "openclaw_agent_consult",

973+

args: {

974+

question: "Speak the provided exact answer verbatim to the Discord voice channel.",

975+

context: 'Provided answer text: "already answered"\\nSpoken style: verbatim only',

976+

},

977+

},

978+

realtimeSessionMock,

979+

);

980+

bridgeParams?.onToolCall?.(

981+

{

982+

itemId: "item-internal",

983+

callId: "call-internal",

984+

name: "openclaw_agent_consult",

985+

args: {

986+

question: [

987+

"Speak this exact OpenClaw answer to the Discord voice channel, without adding, removing, or rephrasing words.",

988+

'Answer: "direct internal answer"',

989+

].join("\n"),

990+

},

991+

},

992+

realtimeSessionMock,

993+

);

994+995+

expect(agentCommandMock).not.toHaveBeenCalled();

996+

expect(realtimeSessionMock.submitToolResult).toHaveBeenCalledTimes(2);

997+

expect(realtimeSessionMock.submitToolResult).toHaveBeenCalledWith("call-exact", {

998+

text: "already answered",

999+

});

1000+

expect(realtimeSessionMock.submitToolResult).toHaveBeenCalledWith("call-internal", {

1001+

text: "direct internal answer",

1002+

});

9161003

});

91710049181005

it("creates a fresh realtime output stream after the Discord player idles", async () => {

@@ -1018,26 +1105,189 @@ describe("DiscordVoiceManager", () => {

10181105

"u-guest",

10191106

);

10201107

nonOwnerTurn?.sendInputAudio(Buffer.alloc(8));

1108+1109+

const bridgeParams = createRealtimeVoiceBridgeSessionMock.mock.calls.at(-1)?.[0] as

1110+

| {

1111+

onTranscript?: (role: "user" | "assistant", text: string, isFinal: boolean) => void;

1112+

}

1113+

| undefined;

1114+

bridgeParams?.onTranscript?.("user", "non-owner question", true);

10211115

const ownerTurn = entry?.realtime?.beginSpeakerTurn(

10221116

{ extraSystemPrompt: undefined, senderIsOwner: true, speakerLabel: "Owner" },

10231117

"u-owner",

10241118

);

10251119

ownerTurn?.sendInputAudio(Buffer.alloc(8));

1120+

await new Promise((resolve) => setTimeout(resolve, 260));

1121+1122+

expect(agentCommandMock).toHaveBeenCalledWith(

1123+

expect.objectContaining({

1124+

senderIsOwner: false,

1125+

}),

1126+

expect.anything(),

1127+

);

1128+

expect(realtimeSessionMock.handleBargeIn).toHaveBeenCalledWith({

1129+

audioPlaybackActive: true,

1130+

force: true,

1131+

});

1132+

expect(realtimeSessionMock.sendUserMessage).toHaveBeenCalledWith(

1133+

expect.stringContaining("non-owner answer"),

1134+

);

1135+

});

102611361137+

it("keeps separate forced agent-proxy fallback timers for rapid transcripts", async () => {

1138+

agentCommandMock

1139+

.mockResolvedValueOnce({ payloads: [{ text: "guest answer" }] })

1140+

.mockResolvedValueOnce({ payloads: [{ text: "owner answer" }] });

1141+

const manager = createManager({

1142+

groupPolicy: "open",

1143+

voice: {

1144+

enabled: true,

1145+

mode: "agent-proxy",

1146+

realtime: { provider: "openai" },

1147+

},

1148+

});

1149+1150+

await manager.join({ guildId: "g1", channelId: "1001" });

1151+

const entry = getSessionEntry(manager) as {

1152+

realtime?: {

1153+

beginSpeakerTurn: (

1154+

context: { extraSystemPrompt?: string; senderIsOwner: boolean; speakerLabel: string },

1155+

userId: string,

1156+

) => { close: () => void; sendInputAudio: (audio: Buffer) => void };

1157+

};

1158+

};

10271159

const bridgeParams = createRealtimeVoiceBridgeSessionMock.mock.calls.at(-1)?.[0] as

10281160

| {

10291161

onTranscript?: (role: "user" | "assistant", text: string, isFinal: boolean) => void;

10301162

}

10311163

| undefined;

1032-

bridgeParams?.onTranscript?.("user", "non-owner question", true);

1033-

await new Promise((resolve) => setTimeout(resolve, 20));

103411641035-

expect(agentCommandMock).toHaveBeenCalledWith(

1165+

const guestTurn = entry.realtime?.beginSpeakerTurn(

1166+

{ extraSystemPrompt: undefined, senderIsOwner: false, speakerLabel: "Guest" },

1167+

"u-guest",

1168+

);

1169+

guestTurn?.sendInputAudio(Buffer.alloc(8));

1170+

bridgeParams?.onTranscript?.("user", "guest question", true);

1171+1172+

const ownerTurn = entry.realtime?.beginSpeakerTurn(

1173+

{ extraSystemPrompt: undefined, senderIsOwner: true, speakerLabel: "Owner" },

1174+

"u-owner",

1175+

);

1176+

ownerTurn?.sendInputAudio(Buffer.alloc(8));

1177+

bridgeParams?.onTranscript?.("user", "owner question", true);

1178+1179+

await new Promise((resolve) => setTimeout(resolve, 260));

1180+1181+

expect(agentCommandMock).toHaveBeenNthCalledWith(

1182+

1,

1183+

expect.objectContaining({

1184+

message: expect.stringContaining("guest question"),

1185+

senderIsOwner: false,

1186+

}),

1187+

expect.anything(),

1188+

);

1189+

expect(agentCommandMock).toHaveBeenNthCalledWith(

1190+

2,

1191+

expect.objectContaining({

1192+

message: expect.stringContaining("owner question"),

1193+

senderIsOwner: true,

1194+

}),

1195+

expect.anything(),

1196+

);

1197+

expect(realtimeSessionMock.sendUserMessage).toHaveBeenCalledWith(

1198+

expect.stringContaining("guest answer"),

1199+

);

1200+

expect(realtimeSessionMock.sendUserMessage).toHaveBeenCalledWith(

1201+

expect.stringContaining("owner answer"),

1202+

);

1203+

});

1204+1205+

it("matches agent-proxy consult tool calls to the pending transcript", async () => {

1206+

agentCommandMock

1207+

.mockResolvedValueOnce({ payloads: [{ text: "owner answer" }] })

1208+

.mockResolvedValueOnce({ payloads: [{ text: "guest fallback answer" }] });

1209+

const manager = createManager({

1210+

groupPolicy: "open",

1211+

voice: {

1212+

enabled: true,

1213+

mode: "agent-proxy",

1214+

realtime: { provider: "openai" },

1215+

},

1216+

});

1217+1218+

await manager.join({ guildId: "g1", channelId: "1001" });

1219+

const entry = getSessionEntry(manager) as {

1220+

realtime?: {

1221+

beginSpeakerTurn: (

1222+

context: { extraSystemPrompt?: string; senderIsOwner: boolean; speakerLabel: string },

1223+

userId: string,

1224+

) => { close: () => void; sendInputAudio: (audio: Buffer) => void };

1225+

};

1226+

};

1227+

const bridgeParams = createRealtimeVoiceBridgeSessionMock.mock.calls.at(-1)?.[0] as

1228+

| {

1229+

onToolCall?: (

1230+

event: {

1231+

itemId: string;

1232+

callId: string;

1233+

name: string;

1234+

args: unknown;

1235+

},

1236+

session: typeof realtimeSessionMock,

1237+

) => void;

1238+

onTranscript?: (role: "user" | "assistant", text: string, isFinal: boolean) => void;

1239+

}

1240+

| undefined;

1241+1242+

const guestTurn = entry.realtime?.beginSpeakerTurn(

1243+

{ extraSystemPrompt: undefined, senderIsOwner: false, speakerLabel: "Guest" },

1244+

"u-guest",

1245+

);

1246+

guestTurn?.sendInputAudio(Buffer.alloc(8));

1247+

bridgeParams?.onTranscript?.("user", "guest question", true);

1248+1249+

const ownerTurn = entry.realtime?.beginSpeakerTurn(

1250+

{ extraSystemPrompt: undefined, senderIsOwner: true, speakerLabel: "Owner" },

1251+

"u-owner",

1252+

);

1253+

ownerTurn?.sendInputAudio(Buffer.alloc(8));

1254+

bridgeParams?.onTranscript?.("user", "owner question", true);

1255+1256+

bridgeParams?.onToolCall?.(

1257+

{

1258+

itemId: "item-owner",

1259+

callId: "call-owner",

1260+

name: "openclaw_agent_consult",

1261+

args: { question: "owner question" },

1262+

},

1263+

realtimeSessionMock,

1264+

);

1265+

await Promise.resolve();

1266+

await Promise.resolve();

1267+

await new Promise((resolve) => setTimeout(resolve, 260));

1268+1269+

expect(agentCommandMock).toHaveBeenNthCalledWith(

1270+

1,

1271+

expect.objectContaining({

1272+

message: expect.stringContaining("owner question"),

1273+

senderIsOwner: true,

1274+

}),

1275+

expect.anything(),

1276+

);

1277+

expect(agentCommandMock).toHaveBeenNthCalledWith(

1278+

2,

10361279

expect.objectContaining({

1280+

message: expect.stringContaining("guest question"),

10371281

senderIsOwner: false,

10381282

}),

10391283

expect.anything(),

10401284

);

1285+

expect(realtimeSessionMock.submitToolResult).toHaveBeenCalledWith("call-owner", {

1286+

text: "owner answer",

1287+

});

1288+

expect(realtimeSessionMock.sendUserMessage).toHaveBeenCalledWith(

1289+

expect.stringContaining("guest fallback answer"),

1290+

);

10411291

});

1042129210431293

it("expires closed agent-proxy turns before later speaker audio", async () => {

@@ -1078,14 +1328,17 @@ describe("DiscordVoiceManager", () => {

10781328

}

10791329

| undefined;

10801330

bridgeParams?.onTranscript?.("user", "guest question", true);

1081-

await new Promise((resolve) => setTimeout(resolve, 20));

1331+

await new Promise((resolve) => setTimeout(resolve, 260));

1082133210831333

expect(agentCommandMock).toHaveBeenCalledWith(

10841334

expect.objectContaining({

10851335

senderIsOwner: false,

10861336

}),

10871337

expect.anything(),

10881338

);

1339+

expect(realtimeSessionMock.sendUserMessage).toHaveBeenCalledWith(

1340+

expect.stringContaining("guest answer"),

1341+

);

10891342

});

1090134310911344

it("starts Discord realtime voice in bidi mode with the consult tool", async () => {