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

推荐订阅源

J
Java Code Geeks
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
WordPress大学
WordPress大学
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
C
Check Point Blog
P
Proofpoint News Feed
H
Help Net Security
月光博客
月光博客
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
U
Unit 42
美团技术团队
I
InfoQ
A
About on SuperTechFans

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: allow route bindings to override DM session scope (#...
Poo-Squirry · 2026-04-26 · via Recent Commits to openclaw:main

@@ -138,6 +138,109 @@ describe("resolveAgentRoute", () => {

138138

});

139139

});

140140141+

test("route binding session dmScope isolates selected direct peers without changing agent", () => {

142+

const cfg: OpenClawConfig = {

143+

session: { dmScope: "main" },

144+

bindings: [

145+

{

146+

type: "route",

147+

agentId: "main",

148+

match: {

149+

channel: "discord",

150+

accountId: "default",

151+

peer: { kind: "direct", id: "1497598990336790559" },

152+

},

153+

session: { dmScope: "per-account-channel-peer" },

154+

},

155+

{

156+

type: "route",

157+

agentId: "main",

158+

match: {

159+

channel: "discord",

160+

accountId: "default",

161+

peer: { kind: "direct", id: "389224669418618880" },

162+

},

163+

session: { dmScope: "per-account-channel-peer" },

164+

},

165+

],

166+

};

167+168+

expectResolvedRoute(

169+

resolveAgentRoute({

170+

cfg,

171+

channel: "discord",

172+

accountId: "default",

173+

peer: { kind: "direct", id: "358611388488351744" },

174+

}),

175+

{

176+

agentId: "main",

177+

sessionKey: "agent:main:main",

178+

matchedBy: "default",

179+

lastRoutePolicy: "main",

180+

},

181+

);

182+183+

expectResolvedRoute(

184+

resolveAgentRoute({

185+

cfg,

186+

channel: "discord",

187+

accountId: "default",

188+

peer: { kind: "direct", id: "1497598990336790559" },

189+

}),

190+

{

191+

agentId: "main",

192+

sessionKey: "agent:main:discord:default:direct:1497598990336790559",

193+

matchedBy: "binding.peer",

194+

lastRoutePolicy: "session",

195+

},

196+

);

197+198+

expectResolvedRoute(

199+

resolveAgentRoute({

200+

cfg,

201+

channel: "discord",

202+

accountId: "default",

203+

peer: { kind: "direct", id: "389224669418618880" },

204+

}),

205+

{

206+

agentId: "main",

207+

sessionKey: "agent:main:discord:default:direct:389224669418618880",

208+

matchedBy: "binding.peer",

209+

lastRoutePolicy: "session",

210+

},

211+

);

212+213+

expectResolvedRoute(

214+

resolveAgentRoute({

215+

cfg,

216+

channel: "discord",

217+

accountId: "default",

218+

peer: { kind: "channel", id: "1494710434396110868" },

219+

}),

220+

{

221+

agentId: "main",

222+

sessionKey: "agent:main:discord:channel:1494710434396110868",

223+

matchedBy: "default",

224+

lastRoutePolicy: "session",

225+

},

226+

);

227+228+

expectResolvedRoute(

229+

resolveAgentRoute({

230+

cfg,

231+

channel: "webchat",

232+

accountId: null,

233+

peer: null,

234+

}),

235+

{

236+

agentId: "main",

237+

sessionKey: "agent:main:main",

238+

matchedBy: "default",

239+

lastRoutePolicy: "main",

240+

},

241+

);

242+

});

243+141244

test.each([

142245

{

143246

name: "collapses inbound last-route session keys to main when policy is main",