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

推荐订阅源

Jina AI
Jina AI
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
A
About on SuperTechFans
Vercel News
Vercel News
博客园 - 【当耐特】
爱范儿
爱范儿
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
D
Docker
博客园 - 叶小钗
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
I
InfoQ
博客园 - 三生石上(FineUI控件)
博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

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(ui): avoid session list reloads for chat turns · open...
VACInc · 2026-05-03 · via Recent Commits to openclaw:main

@@ -150,7 +150,7 @@ describe("handleGatewayEvent sessions.changed", () => {

150150

expect(loadSessionsMock).not.toHaveBeenCalled();

151151

});

152152153-

it("reloads sessions when an applied message-phase event inserts a session row", () => {

153+

it("does not reload sessions when a message-phase event inserts a session row", () => {

154154

loadSessionsMock.mockReset();

155155

applySessionsChangedEventMock

156156

.mockReset()

@@ -170,11 +170,10 @@ describe("handleGatewayEvent sessions.changed", () => {

170170

});

171171172172

expect(applySessionsChangedEventMock).toHaveBeenCalledTimes(1);

173-

expect(loadSessionsMock).toHaveBeenCalledTimes(1);

174-

expect(loadSessionsMock).toHaveBeenCalledWith(host);

173+

expect(loadSessionsMock).not.toHaveBeenCalled();

175174

});

176175177-

it("reloads sessions when a message-phase event cannot patch local state", () => {

176+

it("does not reload sessions when a message-phase event cannot patch local state", () => {

178177

loadSessionsMock.mockReset();

179178

applySessionsChangedEventMock.mockReset().mockReturnValue({ applied: false });

180179

const host = createHost();

@@ -186,8 +185,39 @@ describe("handleGatewayEvent sessions.changed", () => {

186185

seq: 1,

187186

});

188187189-

expect(loadSessionsMock).toHaveBeenCalledTimes(1);

190-

expect(loadSessionsMock).toHaveBeenCalledWith(host);

188+

expect(loadSessionsMock).not.toHaveBeenCalled();

189+

});

190+191+

it("does not reload sessions for chat lifecycle events", () => {

192+

loadSessionsMock.mockReset();

193+

applySessionsChangedEventMock.mockReset().mockReturnValue({ applied: true, change: "updated" });

194+

const host = createHost();

195+196+

handleGatewayEvent(host, {

197+

type: "event",

198+

event: "sessions.changed",

199+

payload: { sessionKey: "agent:main:main", phase: "start", runId: "run-1" },

200+

seq: 1,

201+

});

202+203+

expect(applySessionsChangedEventMock).toHaveBeenCalledTimes(1);

204+

expect(loadSessionsMock).not.toHaveBeenCalled();

205+

});

206+207+

it("does not reload sessions for chat send acknowledgement events", () => {

208+

loadSessionsMock.mockReset();

209+

applySessionsChangedEventMock.mockReset().mockReturnValue({ applied: true, change: "updated" });

210+

const host = createHost();

211+212+

handleGatewayEvent(host, {

213+

type: "event",

214+

event: "sessions.changed",

215+

payload: { sessionKey: "agent:main:main", reason: "send" },

216+

seq: 1,

217+

});

218+219+

expect(applySessionsChangedEventMock).toHaveBeenCalledTimes(1);

220+

expect(loadSessionsMock).not.toHaveBeenCalled();

191221

});

192222

});

193223