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

推荐订阅源

G
Google Developers Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
C
Check Point Blog
B
Blog RSS Feed
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
小众软件
小众软件
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
GbyAI
GbyAI
The Cloudflare Blog
博客园 - 叶小钗
S
SegmentFault 最新的问题
博客园 - Franky
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
B
Blog
Jina AI
Jina AI

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 gateway install token persistence assertion...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -181,6 +181,9 @@ describe("resolveGatewayInstallToken", () => {

181181

});

182182183183

it("persists auto-generated token when requested", async () => {

184+

const baseSnapshot = { exists: false, valid: true, config: {} };

185+

readConfigFileSnapshotMock.mockResolvedValueOnce(baseSnapshot);

186+184187

const result = await resolveGatewayInstallToken({

185188

config: {

186189

gateway: { auth: { mode: "token" } },

@@ -193,23 +196,22 @@ describe("resolveGatewayInstallToken", () => {

193196

expect(result.warnings).toEqual(

194197

expect.arrayContaining([expect.stringContaining("saving to config")]),

195198

);

196-

expect(replaceConfigFileMock).toHaveBeenCalledWith(

197-

expect.objectContaining({

198-

nextConfig: expect.objectContaining({

199-

gateway: {

200-

auth: {

201-

mode: "token",

202-

token: "generated-token",

203-

},

199+

expect(replaceConfigFileMock).toHaveBeenCalledOnce();

200+

expect(replaceConfigFileMock.mock.calls[0]?.[0]).toStrictEqual({

201+

nextConfig: {

202+

gateway: {

203+

auth: {

204+

mode: "token",

205+

token: "generated-token",

204206

},

205-

}),

206-

writeOptions: expect.objectContaining({

207-

baseSnapshot: expect.any(Object),

208-

skipRuntimeSnapshotRefresh: true,

209-

}),

210-

afterWrite: { mode: "auto" },

211-

}),

212-

);

207+

},

208+

},

209+

writeOptions: {

210+

baseSnapshot,

211+

skipRuntimeSnapshotRefresh: true,

212+

},

213+

afterWrite: { mode: "auto" },

214+

});

213215

});

214216215217

it("drops generated plaintext when config changes to SecretRef before persist", async () => {