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

推荐订阅源

Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
V
V2EX
量子位
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 【当耐特】
爱范儿
爱范儿
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
小众软件
小众软件
IT之家
IT之家
博客园_首页
博客园 - 聂微东
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗

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(cli): cover oauth auth epoch continuity · openclaw/o...
obviyus · 2026-04-22 · via Recent Commits to openclaw:main

@@ -20,6 +20,7 @@ describe("cli-session helpers", () => {

2020

sessionId: "cli-session-1",

2121

authProfileId: "anthropic:work",

2222

authEpoch: "auth-epoch",

23+

authEpochVersion: 2,

2324

extraSystemPromptHash: "prompt-hash",

2425

mcpConfigHash: "mcp-hash",

2526

mcpResumeHash: "mcp-resume-hash",

@@ -31,6 +32,7 @@ describe("cli-session helpers", () => {

3132

sessionId: "cli-session-1",

3233

authProfileId: "anthropic:work",

3334

authEpoch: "auth-epoch",

35+

authEpochVersion: 2,

3436

extraSystemPromptHash: "prompt-hash",

3537

mcpConfigHash: "mcp-hash",

3638

mcpResumeHash: "mcp-resume-hash",

@@ -84,6 +86,7 @@ describe("cli-session helpers", () => {

8486

sessionId: "cli-session-1",

8587

authProfileId: "anthropic:work",

8688

authEpoch: "auth-epoch-a",

89+

authEpochVersion: 2,

8790

extraSystemPromptHash: "prompt-a",

8891

mcpConfigHash: "mcp-a",

8992

};

@@ -93,6 +96,7 @@ describe("cli-session helpers", () => {

9396

binding,

9497

authProfileId: "anthropic:personal",

9598

authEpoch: "auth-epoch-a",

99+

authEpochVersion: 2,

96100

extraSystemPromptHash: "prompt-a",

97101

mcpConfigHash: "mcp-a",

98102

}),

@@ -102,6 +106,7 @@ describe("cli-session helpers", () => {

102106

binding,

103107

authProfileId: "anthropic:work",

104108

authEpoch: "auth-epoch-b",

109+

authEpochVersion: 2,

105110

extraSystemPromptHash: "prompt-a",

106111

mcpConfigHash: "mcp-a",

107112

}),

@@ -111,6 +116,7 @@ describe("cli-session helpers", () => {

111116

binding,

112117

authProfileId: "anthropic:work",

113118

authEpoch: "auth-epoch-a",

119+

authEpochVersion: 2,

114120

extraSystemPromptHash: "prompt-b",

115121

mcpConfigHash: "mcp-a",

116122

}),

@@ -120,17 +126,40 @@ describe("cli-session helpers", () => {

120126

binding,

121127

authProfileId: "anthropic:work",

122128

authEpoch: "auth-epoch-a",

129+

authEpochVersion: 2,

123130

extraSystemPromptHash: "prompt-a",

124131

mcpConfigHash: "mcp-b",

125132

}),

126133

).toEqual({ invalidatedReason: "mcp" });

127134

});

128135136+

it("accepts unversioned auth epochs for binding upgrades", () => {

137+

const binding = {

138+

sessionId: "cli-session-1",

139+

authProfileId: "anthropic:work",

140+

authEpoch: "previous-auth-epoch",

141+

extraSystemPromptHash: "prompt-a",

142+

mcpConfigHash: "mcp-a",

143+

};

144+145+

expect(

146+

resolveCliSessionReuse({

147+

binding,

148+

authProfileId: "anthropic:work",

149+

authEpoch: "auth-epoch-a",

150+

authEpochVersion: 2,

151+

extraSystemPromptHash: "prompt-a",

152+

mcpConfigHash: "mcp-a",

153+

}),

154+

).toEqual({ sessionId: "cli-session-1" });

155+

});

156+129157

it("does not treat model changes as a session mismatch", () => {

130158

const binding = {

131159

sessionId: "cli-session-1",

132160

authProfileId: "anthropic:work",

133161

authEpoch: "auth-epoch-a",

162+

authEpochVersion: 2,

134163

extraSystemPromptHash: "prompt-a",

135164

mcpConfigHash: "mcp-a",

136165

};

@@ -140,6 +169,7 @@ describe("cli-session helpers", () => {

140169

binding,

141170

authProfileId: "anthropic:work",

142171

authEpoch: "auth-epoch-a",

172+

authEpochVersion: 2,

143173

extraSystemPromptHash: "prompt-a",

144174

mcpConfigHash: "mcp-a",

145175

}),

@@ -151,6 +181,7 @@ describe("cli-session helpers", () => {

151181

sessionId: "cli-session-1",

152182

authProfileId: "anthropic:work",

153183

authEpoch: "auth-epoch-a",

184+

authEpochVersion: 2,

154185

extraSystemPromptHash: "prompt-a",

155186

mcpConfigHash: "mcp-config-a",

156187

mcpResumeHash: "mcp-resume-a",

@@ -161,6 +192,7 @@ describe("cli-session helpers", () => {

161192

binding,

162193

authProfileId: "anthropic:work",

163194

authEpoch: "auth-epoch-a",

195+

authEpochVersion: 2,

164196

extraSystemPromptHash: "prompt-a",

165197

mcpConfigHash: "mcp-config-b",

166198

mcpResumeHash: "mcp-resume-a",

@@ -171,6 +203,7 @@ describe("cli-session helpers", () => {

171203

binding,

172204

authProfileId: "anthropic:work",

173205

authEpoch: "auth-epoch-a",

206+

authEpochVersion: 2,

174207

extraSystemPromptHash: "prompt-a",

175208

mcpConfigHash: "mcp-config-a",

176209

mcpResumeHash: "mcp-resume-b",

@@ -183,6 +216,7 @@ describe("cli-session helpers", () => {

183216

sessionId: "cli-session-1",

184217

authProfileId: "anthropic:work",

185218

authEpoch: "auth-epoch-a",

219+

authEpochVersion: 2,

186220

extraSystemPromptHash: "prompt-a",

187221

mcpConfigHash: "mcp-config-a",

188222

};

@@ -192,6 +226,7 @@ describe("cli-session helpers", () => {

192226

binding,

193227

authProfileId: "anthropic:work",

194228

authEpoch: "auth-epoch-a",

229+

authEpochVersion: 2,

195230

extraSystemPromptHash: "prompt-a",

196231

mcpConfigHash: "mcp-config-a",

197232

mcpResumeHash: "mcp-resume-a",

@@ -202,6 +237,7 @@ describe("cli-session helpers", () => {

202237

binding,

203238

authProfileId: "anthropic:work",

204239

authEpoch: "auth-epoch-a",

240+

authEpochVersion: 2,

205241

extraSystemPromptHash: "prompt-a",

206242

mcpConfigHash: "mcp-config-b",

207243

mcpResumeHash: "mcp-resume-a",