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

推荐订阅源

J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
C
Check Point Blog
G
Google Developers Blog
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
D
Docker
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News

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: tighten discord monitor object assertions · opencla...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -288,7 +288,10 @@ describe("thread binding lifecycle", () => {

288288

webhookToken: "tok-1",

289289

introText: "intro",

290290

});

291-

expect(binding).toEqual(expect.any(Object));

291+

expect(binding).toMatchObject({

292+

threadId: "thread-1",

293+

targetSessionKey: "agent:main:subagent:child",

294+

});

292295

hoisted.sendMessageDiscord.mockClear();

293296

hoisted.sendWebhookMessageDiscord.mockClear();

294297

@@ -327,7 +330,10 @@ describe("thread binding lifecycle", () => {

327330

webhookId: "wh-1",

328331

webhookToken: "tok-1",

329332

});

330-

expect(binding).toEqual(expect.any(Object));

333+

expect(binding).toMatchObject({

334+

threadId: "thread-1",

335+

targetSessionKey: "agent:main:subagent:child",

336+

});

331337

hoisted.sendMessageDiscord.mockClear();

332338333339

await vi.advanceTimersByTimeAsync(120_000);

@@ -656,7 +662,10 @@ describe("thread binding lifecycle", () => {

656662657663

vi.setSystemTime(new Date("2026-02-20T00:00:30.000Z"));

658664

const touched = manager.touchThread({ threadId: "thread-1", persist: false });

659-

expect(touched).toEqual(expect.any(Object));

665+

expect(touched).toMatchObject({

666+

threadId: "thread-1",

667+

lastActivityAt: new Date("2026-02-20T00:00:30.000Z").getTime(),

668+

});

660669661670

const record = requireBinding(manager, "thread-1");

662671

expect(record.lastActivityAt).toBe(new Date("2026-02-20T00:00:30.000Z").getTime());

@@ -746,7 +755,10 @@ describe("thread binding lifecycle", () => {

746755

targetSessionKey: "agent:main:subagent:child-1",

747756

agentId: "main",

748757

});

749-

expect(first).toEqual(expect.any(Object));

758+

expect(first).toMatchObject({

759+

threadId: "thread-1",

760+

targetSessionKey: "agent:main:subagent:child-1",

761+

});

750762

expect(hoisted.restPost).toHaveBeenCalledTimes(1);

751763752764

manager.unbindThread({

@@ -797,7 +809,10 @@ describe("thread binding lifecycle", () => {

797809

agentId: "main",

798810

});

799811800-

expect(childBinding).toEqual(expect.any(Object));

812+

expect(childBinding).toMatchObject({

813+

threadId: "thread-created-2",

814+

targetSessionKey: "agent:main:subagent:child-2",

815+

});

801816

expect(hoisted.createThreadDiscord).toHaveBeenCalledTimes(1);

802817

expect(hoisted.createThreadDiscord).toHaveBeenCalledWith(

803818

"parent-1",

@@ -879,7 +894,10 @@ describe("thread binding lifecycle", () => {

879894

agentId: "main",

880895

});

881896882-

expect(childBinding).toEqual(expect.any(Object));

897+

expect(childBinding).toMatchObject({

898+

threadId: "thread-created-runtime",

899+

targetSessionKey: "agent:main:subagent:child-runtime",

900+

});

883901

const firstClientArgs = hoisted.createDiscordRestClient.mock.calls[0]?.[0] as

884902

| { accountId?: string; token?: string }

885903

| undefined;

@@ -929,7 +947,10 @@ describe("thread binding lifecycle", () => {

929947

agentId: "main",

930948

});

931949932-

expect(bound).toEqual(expect.any(Object));

950+

expect(bound).toMatchObject({

951+

threadId: "thread-created-runtime-cfg",

952+

targetSessionKey: "agent:main:subagent:runtime-cfg",

953+

});

933954

const usedRefreshedCfg = hoisted.createDiscordRestClient.mock.calls.some((call) => {

934955

if (call?.[1] === refreshedCfg) {

935956

return true;

@@ -986,7 +1007,10 @@ describe("thread binding lifecycle", () => {

9861007

agentId: "main",

9871008

});

9881009989-

expect(bound).toEqual(expect.any(Object));

1010+

expect(bound).toMatchObject({

1011+

threadId: "thread-created-token-refresh",

1012+

targetSessionKey: "agent:main:subagent:token-refresh",

1013+

});

9901014

expect(hoisted.createThreadDiscord).toHaveBeenCalledWith(

9911015

"parent-runtime",

9921016

expect.objectContaining({ autoArchiveMinutes: 60 }),