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

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
博客园_首页
量子位
T
Tailwind CSS Blog
博客园 - Franky
G
Google Developers Blog
D
DataBreaches.Net
Vercel News
Vercel News
B
Blog
Recent Announcements
Recent Announcements
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
爱范儿
爱范儿
博客园 - 【当耐特】
The Cloudflare Blog
H
Help Net Security
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
C
Check Point Blog
有赞技术团队
有赞技术团队
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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 plugin context assertions · openclaw/opencl...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -14,12 +14,8 @@ describe("openclaw plugin tool context", () => {

1414

},

1515

});

161617-

expect(result.context).toEqual(

18-

expect.objectContaining({

19-

requesterSenderId: "trusted-sender",

20-

senderIsOwner: true,

21-

}),

22-

);

17+

expect(result.context.requesterSenderId).toBe("trusted-sender");

18+

expect(result.context.senderIsOwner).toBe(true);

2319

});

24202521

it("forwards fs policy for plugin tool sandbox enforcement", () => {

@@ -30,11 +26,7 @@ describe("openclaw plugin tool context", () => {

3026

},

3127

});

322833-

expect(result.context).toEqual(

34-

expect.objectContaining({

35-

fsPolicy: { workspaceOnly: true },

36-

}),

37-

);

29+

expect(result.context.fsPolicy).toStrictEqual({ workspaceOnly: true });

3830

});

39314032

it("forwards ephemeral sessionId", () => {

@@ -46,12 +38,8 @@ describe("openclaw plugin tool context", () => {

4638

},

4739

});

484049-

expect(result.context).toEqual(

50-

expect.objectContaining({

51-

sessionKey: "agent:main:telegram:direct:12345",

52-

sessionId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",

53-

}),

54-

);

41+

expect(result.context.sessionKey).toBe("agent:main:telegram:direct:12345");

42+

expect(result.context.sessionId).toBe("a1b2c3d4-e5f6-7890-abcd-ef1234567890");

5543

});

56445745

it("infers the default agent workspace when workspaceDir is omitted", () => {

@@ -74,12 +62,8 @@ describe("openclaw plugin tool context", () => {

7462

} as never,

7563

});

766477-

expect(result.context).toEqual(

78-

expect.objectContaining({

79-

agentId: "main",

80-

workspaceDir,

81-

}),

82-

);

65+

expect(result.context.agentId).toBe("main");

66+

expect(result.context.workspaceDir).toBe(workspaceDir);

8367

});

84688569

it("infers the session agent workspace when workspaceDir is omitted", () => {

@@ -101,12 +85,8 @@ describe("openclaw plugin tool context", () => {

10185

resolvedConfig: config,

10286

});

10387104-

expect(result.context).toEqual(

105-

expect.objectContaining({

106-

agentId: "support",

107-

workspaceDir: supportWorkspace,

108-

}),

109-

);

88+

expect(result.context.agentId).toBe("support");

89+

expect(result.context.workspaceDir).toBe(supportWorkspace);

11090

});

1119111292

it("uses requester agent override for synthetic embedded session keys", () => {

@@ -129,12 +109,8 @@ describe("openclaw plugin tool context", () => {

129109

resolvedConfig: config,

130110

});

131111132-

expect(result.context).toEqual(

133-

expect.objectContaining({

134-

agentId: "recall",

135-

workspaceDir: recallWorkspace,

136-

}),

137-

);

112+

expect(result.context.agentId).toBe("recall");

113+

expect(result.context.workspaceDir).toBe(recallWorkspace);

138114

});

139115140116

it("forwards browser session wiring", () => {

@@ -146,14 +122,10 @@ describe("openclaw plugin tool context", () => {

146122

},

147123

});

148124149-

expect(result.context).toEqual(

150-

expect.objectContaining({

151-

browser: {

152-

sandboxBridgeUrl: "http://127.0.0.1:9999",

153-

allowHostControl: true,

154-

},

155-

}),

156-

);

125+

expect(result.context.browser).toStrictEqual({

126+

sandboxBridgeUrl: "http://127.0.0.1:9999",

127+

allowHostControl: true,

128+

});

157129

});

158130159131

it("forwards gateway subagent binding", () => {

@@ -178,16 +150,12 @@ describe("openclaw plugin tool context", () => {

178150

},

179151

});

180152181-

expect(result.context).toEqual(

182-

expect.objectContaining({

183-

deliveryContext: {

184-

channel: "slack",

185-

to: "channel:C123",

186-

accountId: "work",

187-

threadId: "1710000000.000100",

188-

},

189-

}),

190-

);

153+

expect(result.context.deliveryContext).toStrictEqual({

154+

channel: "slack",

155+

to: "channel:C123",

156+

accountId: "work",

157+

threadId: "1710000000.000100",

158+

});

191159

});

192160193161

it("does not inject ambient thread defaults into plugin tools", async () => {