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

推荐订阅源

J
Java Code Geeks
M
MIT News - Artificial intelligence
D
Docker
S
SegmentFault 最新的问题
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
C
Check Point Blog
GbyAI
GbyAI
美团技术团队
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
G
Google Developers Blog

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: preserve cli oauth session continuity · openclaw/ope...
steipete · 2026-05-07 · via Recent Commits to openclaw:main

@@ -184,6 +184,85 @@ describe("resolveCliAuthEpoch", () => {

184184

expect(second).toBe(first);

185185

});

186186187+

it("keeps oauth auth-profile epochs stable across profile id aliases for the same account", async () => {

188+

const store: AuthProfileStore = {

189+

version: 1,

190+

profiles: {

191+

"anthropic:work": {

192+

type: "oauth",

193+

provider: "anthropic",

194+

access: "access-a",

195+

refresh: "refresh-a",

196+

expires: 1,

197+

email: "user@example.com",

198+

},

199+

"anthropic:work-alias": {

200+

type: "oauth",

201+

provider: "anthropic",

202+

access: "access-b",

203+

refresh: "refresh-b",

204+

expires: 2,

205+

email: "user@example.com",

206+

},

207+

},

208+

};

209+

setCliAuthEpochTestDeps({

210+

readGeminiCliCredentialsCached: () => null,

211+

loadAuthProfileStoreForRuntime: () => store,

212+

});

213+214+

const first = await resolveCliAuthEpoch({

215+

provider: "google-gemini-cli",

216+

authProfileId: "anthropic:work",

217+

});

218+

const second = await resolveCliAuthEpoch({

219+

provider: "google-gemini-cli",

220+

authProfileId: "anthropic:work-alias",

221+

});

222+223+

expect(first).toBeDefined();

224+

expect(second).toBe(first);

225+

});

226+227+

it("keeps identity-less oauth auth-profile epochs scoped to the profile id", async () => {

228+

const store: AuthProfileStore = {

229+

version: 1,

230+

profiles: {

231+

"anthropic:work": {

232+

type: "oauth",

233+

provider: "anthropic",

234+

access: "access-a",

235+

refresh: "refresh-a",

236+

expires: 1,

237+

},

238+

"anthropic:personal": {

239+

type: "oauth",

240+

provider: "anthropic",

241+

access: "access-b",

242+

refresh: "refresh-b",

243+

expires: 2,

244+

},

245+

},

246+

};

247+

setCliAuthEpochTestDeps({

248+

readGeminiCliCredentialsCached: () => null,

249+

loadAuthProfileStoreForRuntime: () => store,

250+

});

251+252+

const first = await resolveCliAuthEpoch({

253+

provider: "google-gemini-cli",

254+

authProfileId: "anthropic:work",

255+

});

256+

const second = await resolveCliAuthEpoch({

257+

provider: "google-gemini-cli",

258+

authProfileId: "anthropic:personal",

259+

});

260+261+

expect(first).toBeDefined();

262+

expect(second).toBeDefined();

263+

expect(second).not.toBe(first);

264+

});

265+187266

it("changes oauth auth-profile epochs when the account identity changes", async () => {

188267

let store: AuthProfileStore = {

189268

version: 1,