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

推荐订阅源

J
Java Code Geeks
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
B
Blog RSS Feed
I
InfoQ
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
H
Help Net Security
L
LangChain Blog
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏

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): clear stale Talk error when session transitions ...
liuhao1024 · 2026-06-16 · via Recent Commits to openclaw:main

@@ -31,7 +31,6 @@ describe("OpenClawApp Talk controls", () => {

3131

const app = Object.create(OpenClawApp.prototype) as {

3232

client: unknown;

3333

connected: boolean;

34-

lastError: string | null;

3534

realtimeTalkActive: boolean;

3635

realtimeTalkDetail: string | null;

3736

realtimeTalkConversation: Array<{ id: string; role: string; text: string }>;

@@ -44,7 +43,6 @@ describe("OpenClawApp Talk controls", () => {

4443

Object.defineProperties(app, {

4544

client: { value: { request: vi.fn() }, writable: true },

4645

connected: { value: true, writable: true },

47-

lastError: { value: null, writable: true },

4846

realtimeTalkActive: { value: true, writable: true },

4947

realtimeTalkConversation: { value: [], writable: true },

5048

realtimeTalkDetail: { value: null, writable: true },

@@ -66,6 +64,41 @@ describe("OpenClawApp Talk controls", () => {

6664

expect(session?.stop).toBe(stopMock);

6765

});

686667+

it("preserves unrelated errors when retrying Talk", async () => {

68+

const { OpenClawApp } = await import("./app.ts");

69+

const app = Object.create(OpenClawApp.prototype) as {

70+

chatError: string | null;

71+

client: unknown;

72+

connected: boolean;

73+

lastError: string | null;

74+

realtimeTalkActive: boolean;

75+

realtimeTalkDetail: string | null;

76+

realtimeTalkConversation: Array<{ id: string; role: string; text: string }>;

77+

realtimeTalkStatus: string;

78+

realtimeTalkSession: { stop(): void } | null;

79+

realtimeTalkTranscript: string | null;

80+

sessionKey: string;

81+

};

82+

Object.defineProperties(app, {

83+

chatError: { value: "current chat failure", writable: true },

84+

client: { value: { request: vi.fn() }, writable: true },

85+

connected: { value: true, writable: true },

86+

lastError: { value: "current gateway failure", writable: true },

87+

realtimeTalkActive: { value: true, writable: true },

88+

realtimeTalkConversation: { value: [], writable: true },

89+

realtimeTalkDetail: { value: null, writable: true },

90+

realtimeTalkSession: { value: { stop: vi.fn() }, writable: true },

91+

realtimeTalkStatus: { value: "error", writable: true },

92+

realtimeTalkTranscript: { value: null, writable: true },

93+

sessionKey: { value: "main", writable: true },

94+

});

95+96+

await OpenClawApp.prototype.toggleRealtimeTalk.call(app as never);

97+98+

expect(app.lastError).toBe("current gateway failure");

99+

expect(app.chatError).toBe("current chat failure");

100+

});

101+69102

it("accumulates Talk transcripts as ordered conversation turns", async () => {

70103

const { OpenClawApp } = await import("./app.ts");

71104

const app = Object.create(OpenClawApp.prototype) as {

@@ -116,7 +149,7 @@ describe("OpenClawApp Talk controls", () => {

116149

]);

117150

});

118151119-

it("routes Talk startup failures through the chat error surface", async () => {

152+

it("keeps Talk startup failures on the dedicated Talk error surface", async () => {

120153

startMock.mockRejectedValueOnce(new Error("voice provider missing"));

121154

const { OpenClawApp } = await import("./app.ts");

122155

const app = Object.create(OpenClawApp.prototype) as {

@@ -148,8 +181,10 @@ describe("OpenClawApp Talk controls", () => {

148181149182

await OpenClawApp.prototype.toggleRealtimeTalk.call(app as never);

150183151-

expect(app.lastError).toBe("voice provider missing");

152-

expect(app.chatError).toBe("voice provider missing");

184+

expect(app.realtimeTalkStatus).toBe("error");

185+

expect(app.realtimeTalkDetail).toBe("voice provider missing");

186+

expect(app.lastError).toBe("previous chat failure");

187+

expect(app.chatError).toBe("previous chat failure");

153188

expect(stopMock).toHaveBeenCalledOnce();

154189

});

155190