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

推荐订阅源

J
Java Code Geeks
月光博客
月光博客
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
aimingoo的专栏
aimingoo的专栏
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
B
Blog
博客园_首页
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
P
Proofpoint News Feed
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in 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
fix(channels): clear stale terminal status reactions · op...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -16,6 +16,7 @@ Docs: https://docs.openclaw.ai

1616

- Compaction: use the active session model fallback chain for implicit summarization failures without persisting fallback model selection, so Azure content-filter 400s can recover. Fixes #64960. (#74470) Thanks @jalehman and @OpenCodeEngineer.

1717

- Gateway/config: allow `gateway config.patch` to update documented subagent thinking defaults. Fixes #75764. (#75802) Thanks @kAIborg24.

1818

- Plugins/CLI: keep git plugin install paths credential-free, preserve existing git checkouts until replacement succeeds, honor duplicate npm install mode, and remove managed git repos on uninstall. Thanks @vincentkoc.

19+

- Channels/status reactions: remove stale non-terminal lifecycle reactions when a run reaches done or error, so Discord does not leave a permanent thinking emoji after completion. Fixes #75458. Thanks @davelutztx.

1920
2021

## 2026.4.30

2122
Original file line numberDiff line numberDiff line change

@@ -65,7 +65,8 @@ describe("Slack status reaction lifecycle", () => {

6565
6666

await ctrl.setDone();

6767

expect(active.has(DEFAULT_EMOJIS.done)).toBe(true);

68-

expect(active.has(DEFAULT_EMOJIS.web)).toBe(true);

68+

expect(active.has(DEFAULT_EMOJIS.web)).toBe(false);

69+

expect(active.has(DEFAULT_EMOJIS.thinking)).toBe(false);

6970
7071

await ctrl.clear();

7172

expect(active.size).toBe(0);

@@ -87,7 +88,7 @@ describe("Slack status reaction lifecycle", () => {

8788
8889

await ctrl.setError();

8990

expect(active.has(DEFAULT_EMOJIS.error)).toBe(true);

90-

expect(active.has("eyes")).toBe(true);

91+

expect(active.has("eyes")).toBe(false);

9192
9293

await ctrl.restoreInitial();

9394

expect(active.has("eyes")).toBe(true);

@@ -156,7 +157,8 @@ describe("Slack status reaction lifecycle", () => {

156157
157158

expect(active.has("eyes")).toBe(true);

158159

expect(active.has(DEFAULT_EMOJIS.done)).toBe(false);

159-

expect(adapter.removeReaction).toHaveBeenCalledTimes(1);

160+

expect(adapter.removeReaction).toHaveBeenCalledTimes(2);

161+

expect(adapter.removeReaction).toHaveBeenCalledWith("eyes");

160162

expect(adapter.removeReaction).toHaveBeenCalledWith(DEFAULT_EMOJIS.done);

161163

expect(adapter.removeReaction).not.toHaveBeenCalledWith(DEFAULT_EMOJIS.thinking);

162164

});

Original file line numberDiff line numberDiff line change

@@ -294,6 +294,39 @@ describe("createStatusReactionController", () => {

294294

expect(calls).toContainEqual({ method: "remove", emoji: DEFAULT_EMOJIS.thinking });

295295

});

296296
297+

it("should remove tracked non-terminal emojis when setting done", async () => {

298+

const { calls, controller } = createEnabledController();

299+
300+

void controller.setQueued();

301+

await vi.runAllTimersAsync();

302+

void controller.setThinking();

303+

await vi.advanceTimersByTimeAsync(DEFAULT_TIMING.debounceMs);

304+

void controller.setTool("exec");

305+

await vi.advanceTimersByTimeAsync(DEFAULT_TIMING.debounceMs);

306+
307+

await controller.setDone();

308+
309+

const removeEmojis = calls.filter((call) => call.method === "remove").map((call) => call.emoji);

310+

expect(removeEmojis).toEqual(

311+

expect.arrayContaining(["👀", DEFAULT_EMOJIS.thinking, DEFAULT_EMOJIS.coding]),

312+

);

313+

expect(removeEmojis).not.toContain(DEFAULT_EMOJIS.done);

314+

});

315+
316+

it("should not remove reactions on terminal state when adapter lacks removeReaction", async () => {

317+

const { calls, controller } = createSetOnlyController();

318+
319+

void controller.setThinking();

320+

await vi.advanceTimersByTimeAsync(DEFAULT_TIMING.debounceMs);

321+
322+

await controller.setDone();

323+
324+

expect(calls).toEqual([

325+

{ method: "set", emoji: DEFAULT_EMOJIS.thinking },

326+

{ method: "set", emoji: DEFAULT_EMOJIS.done },

327+

]);

328+

});

329+
297330

it("should not re-add an already active reaction when returning to it", async () => {

298331

const { calls, controller } = createEnabledController();

299332
Original file line numberDiff line numberDiff line change

@@ -341,6 +341,7 @@ export function createStatusReactionController(params: {

341341

// Directly enqueue to ensure we return the updated promise

342342

return enqueue(async () => {

343343

await applyEmoji(emoji);

344+

await removeActiveEmojis({ keepEmoji: emoji });

344345

pendingEmoji = "";

345346

});

346347

}