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

推荐订阅源

月光博客
月光博客
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
博客园 - Franky
V
V2EX
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Jina AI
Jina AI
博客园 - 叶小钗
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
D
Docker
博客园 - 【当耐特】
阮一峰的网络日志
阮一峰的网络日志

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: tighten thread-aware route assertions · openclaw/op...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -28,10 +28,12 @@ describe("buildThreadAwareOutboundSessionRoute", () => {

2828

currentSessionKey: "agent:main:workspace:channel:c123:thread:current-1",

2929

});

303031-

expect(route).toMatchObject({

32-

sessionKey: "agent:main:workspace:channel:c123:thread:reply-1",

33-

threadId: "reply-1",

34-

});

31+

expect(route).toEqual(

32+

baseRoute({

33+

sessionKey: "agent:main:workspace:channel:c123:thread:reply-1",

34+

threadId: "reply-1",

35+

}),

36+

);

3537

});

36383739

it("supports provider-specific threadId-first precedence", () => {

@@ -42,10 +44,12 @@ describe("buildThreadAwareOutboundSessionRoute", () => {

4244

precedence: ["threadId", "replyToId", "currentSession"],

4345

});

444645-

expect(route).toMatchObject({

46-

sessionKey: "agent:main:workspace:channel:c123:thread:thread-1",

47-

threadId: "thread-1",

48-

});

47+

expect(route).toEqual(

48+

baseRoute({

49+

sessionKey: "agent:main:workspace:channel:c123:thread:thread-1",

50+

threadId: "thread-1",

51+

}),

52+

);

4953

});

50545155

it("keeps numeric delivery thread ids on the route while stringifying the session suffix", () => {

@@ -54,10 +58,12 @@ describe("buildThreadAwareOutboundSessionRoute", () => {

5458

threadId: 99,

5559

});

566057-

expect(route).toMatchObject({

58-

sessionKey: "agent:main:workspace:channel:c123:thread:99",

59-

threadId: 99,

60-

});

61+

expect(route).toEqual(

62+

baseRoute({

63+

sessionKey: "agent:main:workspace:channel:c123:thread:99",

64+

threadId: 99,

65+

}),

66+

);

6167

});

62686369

it("recovers a current-session thread only when the base session matches", () => {

@@ -82,10 +88,11 @@ describe("buildThreadAwareOutboundSessionRoute", () => {

8288

canRecoverCurrentThread: () => false,

8389

});

849085-

expect(route).toMatchObject({

86-

sessionKey: "agent:main:workspace:channel:c123",

87-

});

88-

expect(route.threadId).toBeUndefined();

91+

expect(route).toEqual(

92+

baseRoute({

93+

sessionKey: "agent:main:workspace:channel:c123",

94+

}),

95+

);

8996

});

90979198

it("preserves provider-specific thread case when requested", () => {

@@ -95,10 +102,12 @@ describe("buildThreadAwareOutboundSessionRoute", () => {

95102

normalizeThreadId: (threadId) => threadId,

96103

});

9710498-

expect(route).toMatchObject({

99-

sessionKey: "agent:main:workspace:channel:c123:thread:$EventID:Example.Org",

100-

threadId: "$EventID:Example.Org",

101-

});

105+

expect(route).toEqual(

106+

baseRoute({

107+

sessionKey: "agent:main:workspace:channel:c123:thread:$EventID:Example.Org",

108+

threadId: "$EventID:Example.Org",

109+

}),

110+

);

102111

});

103112104113

it("can carry a delivery thread without adding a session suffix", () => {

@@ -108,9 +117,11 @@ describe("buildThreadAwareOutboundSessionRoute", () => {

108117

useSuffix: false,

109118

});

110119111-

expect(route).toMatchObject({

112-

sessionKey: "agent:main:workspace:channel:c123",

113-

threadId: "thread-1",

114-

});

120+

expect(route).toEqual(

121+

baseRoute({

122+

sessionKey: "agent:main:workspace:channel:c123",

123+

threadId: "thread-1",

124+

}),

125+

);

115126

});

116127

});