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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
Y
Y Combinator Blog
IT之家
IT之家
博客园 - 聂微东
L
LangChain Blog
爱范儿
爱范儿
H
Help Net Security
GbyAI
GbyAI
F
Fortinet All Blogs
B
Blog
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
D
DataBreaches.Net
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享

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(gateway): respect explicit voicewake session targets ...
longbiaochen · 2026-04-26 · via Recent Commits to openclaw:main

@@ -1634,6 +1634,54 @@ describe("gateway agent handler", () => {

16341634

});

16351635

});

163616361637+

it("does not auto-route voice wake requests with an explicit session key", async () => {

1638+

mocks.loadVoiceWakeRoutingConfig.mockResolvedValue({

1639+

version: 1,

1640+

defaultTarget: { sessionKey: "agent:main:voice" },

1641+

routes: [],

1642+

updatedAtMs: 0,

1643+

});

1644+

mocks.resolveVoiceWakeRouteByTrigger.mockReturnValue({ sessionKey: "agent:main:voice" });

1645+1646+

mocks.loadSessionEntry.mockImplementation((sessionKey: string) => ({

1647+

cfg: {},

1648+

storePath: "/tmp/sessions.json",

1649+

entry: {

1650+

sessionId: "voice-session-id",

1651+

updatedAt: Date.now(),

1652+

},

1653+

canonicalKey: sessionKey,

1654+

}));

1655+

mocks.updateSessionStore.mockResolvedValue(undefined);

1656+

mocks.agentCommand.mockResolvedValue({

1657+

payloads: [{ text: "ok" }],

1658+

meta: { durationMs: 100 },

1659+

});

1660+

mocks.loadVoiceWakeRoutingConfig.mockClear();

1661+

mocks.resolveVoiceWakeRouteByTrigger.mockClear();

1662+1663+

const respond = vi.fn();

1664+

await agentHandlers.agent({

1665+

params: {

1666+

message: "do thing",

1667+

sessionKey: "agent:main:research",

1668+

voiceWakeTrigger: "robot wake",

1669+

idempotencyKey: "test-voice-route-explicit-session",

1670+

},

1671+

respond,

1672+

context: makeContext(),

1673+

req: { type: "req", id: "voice-5", method: "agent" },

1674+

client: null,

1675+

isWebchatConnect: () => false,

1676+

});

1677+1678+

await vi.waitFor(() => expect(mocks.agentCommand).toHaveBeenCalled());

1679+

const callArgs = mocks.agentCommand.mock.calls.at(-1)?.[0] as { sessionKey?: string };

1680+

expect(callArgs.sessionKey).toBe("agent:main:research");

1681+

expect(mocks.loadVoiceWakeRoutingConfig).not.toHaveBeenCalled();

1682+

expect(mocks.resolveVoiceWakeRouteByTrigger).not.toHaveBeenCalled();

1683+

});

1684+16371685

it("treats explicit sessionId as an opt-out for voice wake auto-routing", async () => {

16381686

mocks.loadVoiceWakeRoutingConfig.mockResolvedValue({

16391687

version: 1,

@@ -1657,6 +1705,8 @@ describe("gateway agent handler", () => {

16571705

payloads: [{ text: "ok" }],

16581706

meta: { durationMs: 100 },

16591707

});

1708+

mocks.loadVoiceWakeRoutingConfig.mockClear();

1709+

mocks.resolveVoiceWakeRouteByTrigger.mockClear();

1660171016611711

const respond = vi.fn();

16621712

await agentHandlers.agent({

@@ -1669,7 +1719,7 @@ describe("gateway agent handler", () => {

16691719

},

16701720

respond,

16711721

context: makeContext(),

1672-

req: { type: "req", id: "voice-5", method: "agent" },

1722+

req: { type: "req", id: "voice-6", method: "agent" },

16731723

client: null,

16741724

isWebchatConnect: () => false,

16751725

});

@@ -1681,6 +1731,7 @@ describe("gateway agent handler", () => {

16811731

};

16821732

expect(callArgs.sessionId).toBe("caller-selected-session-id");

16831733

expect(callArgs.sessionKey).toBe("agent:main:main");

1734+

expect(mocks.loadVoiceWakeRoutingConfig).not.toHaveBeenCalled();

16841735

expect(mocks.resolveVoiceWakeRouteByTrigger).not.toHaveBeenCalled();

16851736

});

16861737