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

推荐订阅源

Vercel News
Vercel News
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
G
Google Developers Blog
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
J
Java Code Geeks
U
Unit 42
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
Docker
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
V
V2EX
T
Tailwind CSS 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
chore(deadcode): remove test-only task mutation wrappers ...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main

@@ -29,6 +29,7 @@ import type { TaskFlowRecord } from "./task-flow-registry.types.js";

2929

import {

3030

cancelTaskById,

3131

createTaskRecord as createTaskRecordOrNull,

32+

finalizeTaskRunByRunId,

3233

findLatestTaskForRelatedSessionKey,

3334

findTaskByRunId,

3435

getTaskById,

@@ -41,7 +42,6 @@ import {

4142

maybeDeliverTaskTerminalUpdate,

4243

markTaskRunningByRunId,

4344

markTaskTerminalById,

44-

markTaskTerminalByRunId,

4545

recordTaskProgressByRunId,

4646

reloadTaskRegistryFromStore,

4747

resetTaskRegistryControlRuntimeForTests,

@@ -50,8 +50,6 @@ import {

5050

resolveTaskForLookupToken,

5151

setTaskRegistryControlRuntimeForTests,

5252

setTaskRegistryDeliveryRuntimeForTests,

53-

setTaskProgressById,

54-

setTaskTimingById,

5553

updateTaskNotifyPolicyById,

5654

} from "./task-registry.js";

5755

import {

@@ -600,7 +598,7 @@ describe("task-registry", () => {

600598

aborted: true,

601599

},

602600

});

603-

markTaskTerminalByRunId({

601+

finalizeTaskRunByRunId({

604602

runId: "run-timeout-then-success",

605603

runtime: "cli",

606604

status: "succeeded",

@@ -771,14 +769,14 @@ describe("task-registry", () => {

771769

startedAt: 100,

772770

});

773771774-

markTaskTerminalByRunId({

772+

finalizeTaskRunByRunId({

775773

runId: "run-fail-then-success",

776774

runtime: "cli",

777775

status: "failed",

778776

endedAt: 200,

779777

error: "delivery failed",

780778

});

781-

markTaskTerminalByRunId({

779+

finalizeTaskRunByRunId({

782780

runId: "run-fail-then-success",

783781

runtime: "cli",

784782

status: "succeeded",

@@ -818,7 +816,7 @@ describe("task-registry", () => {

818816

endedAt: 200,

819817

},

820818

});

821-

markTaskTerminalByRunId({

819+

finalizeTaskRunByRunId({

822820

runId: "run-success-then-fail",

823821

runtime: "cli",

824822

status: "failed",

@@ -1725,8 +1723,8 @@ describe("task-registry", () => {

17251723

startedAt: 100,

17261724

});

172717251728-

setTaskProgressById({

1729-

taskId: findTaskByRunId("run-detail-leak")!.taskId,

1726+

recordTaskProgressByRunId({

1727+

runId: "run-detail-leak",

17301728

progressSummary:

17311729

"I am loading the local session context and checking helper command availability before writing the file.",

17321730

});

@@ -2272,9 +2270,6 @@ describe("task-registry", () => {

22722270

task: "Missing child",

22732271

status: "running",

22742272

deliveryStatus: "pending",

2275-

});

2276-

setTaskTimingById({

2277-

taskId: task.taskId,

22782273

lastEventAt: Date.now() - 10 * 60_000,

22792274

});

22802275

@@ -2337,9 +2332,6 @@ describe("task-registry", () => {

23372332

task: "Missing child",

23382333

status: "running",

23392334

deliveryStatus: "pending",

2340-

});

2341-

setTaskTimingById({

2342-

taskId: task.taskId,

23432335

lastEventAt: now - 10 * 60_000,

23442336

});

23452337

@@ -2381,9 +2373,6 @@ describe("task-registry", () => {

23812373

status: "running",

23822374

deliveryStatus: "not_applicable",

23832375

notifyPolicy: "silent",

2384-

});

2385-

setTaskTimingById({

2386-

taskId: task.taskId,

23872376

lastEventAt: now - 10 * 60_000,

23882377

});

23892378

@@ -2416,9 +2405,6 @@ describe("task-registry", () => {

24162405

status: "running",

24172406

deliveryStatus: "not_applicable",

24182407

notifyPolicy: "silent",

2419-

});

2420-

setTaskTimingById({

2421-

taskId: task.taskId,

24222408

lastEventAt: now - 31 * 60_000,

24232409

});

24242410

@@ -2451,9 +2437,6 @@ describe("task-registry", () => {

24512437

status: "running",

24522438

deliveryStatus: "not_applicable",

24532439

notifyPolicy: "silent",

2454-

});

2455-

setTaskTimingById({

2456-

taskId: task.taskId,

24572440

lastEventAt: now - 31 * 60_000,

24582441

});

24592442

@@ -2486,9 +2469,12 @@ describe("task-registry", () => {

24862469

task: "Old ACP task",

24872470

status: "succeeded",

24882471

deliveryStatus: "delivered",

2472+

lastEventAt: now - 60_000,

24892473

});

2490-

setTaskTimingById({

2491-

taskId: task.taskId,

2474+

finalizeTaskRunByRunId({

2475+

runId: "run-terminal-acp-oneshot",

2476+

runtime: "acp",

2477+

status: "succeeded",

24922478

endedAt: now - 60_000,

24932479

lastEventAt: now - 60_000,

24942480

});

@@ -2636,9 +2622,12 @@ describe("task-registry", () => {

26362622

task: "Old persistent ACP task",

26372623

status: "failed",

26382624

deliveryStatus: "failed",

2625+

lastEventAt: now - 60_000,

26392626

});

2640-

setTaskTimingById({

2641-

taskId: task.taskId,

2627+

finalizeTaskRunByRunId({

2628+

runId: "run-terminal-acp-persistent",

2629+

runtime: "acp",

2630+

status: "failed",

26422631

endedAt: now - 60_000,

26432632

lastEventAt: now - 60_000,

26442633

});

@@ -2688,9 +2677,12 @@ describe("task-registry", () => {

26882677

task: "Thread-bound ACP session",

26892678

status: "succeeded",

26902679

deliveryStatus: "delivered",

2680+

lastEventAt: now - 60_000,

26912681

});

2692-

setTaskTimingById({

2693-

taskId: task.taskId,

2682+

finalizeTaskRunByRunId({

2683+

runId: "run-terminal-acp-bound",

2684+

runtime: "acp",

2685+

status: "succeeded",

26942686

endedAt: now - 60_000,

26952687

lastEventAt: now - 60_000,

26962688

});

@@ -2824,7 +2816,7 @@ describe("task-registry", () => {

28242816

await withTaskRegistryTempDir(async () => {

28252817

resetTaskRegistryMemoryForTest();

282628182827-

const task = createTaskRecord({

2819+

createTaskRecord({

28282820

runtime: "cli",

28292821

ownerKey: "agent:main:main",

28302822

scopeKind: "session",

@@ -2834,9 +2826,12 @@ describe("task-registry", () => {

28342826

status: "succeeded",

28352827

deliveryStatus: "not_applicable",

28362828

startedAt: Date.now() - 9 * 24 * 60 * 60_000,

2829+

lastEventAt: Date.now() - 8 * 24 * 60 * 60_000,

28372830

});

2838-

setTaskTimingById({

2839-

taskId: task.taskId,

2831+

finalizeTaskRunByRunId({

2832+

runId: "run-prune",

2833+

runtime: "cli",

2834+

status: "succeeded",

28402835

endedAt: Date.now() - 8 * 24 * 60 * 60_000,

28412836

lastEventAt: Date.now() - 8 * 24 * 60 * 60_000,

28422837

});

@@ -2916,9 +2911,6 @@ describe("task-registry", () => {

29162911

task: "Missing child",

29172912

status: "running",

29182913

deliveryStatus: "pending",

2919-

});

2920-

setTaskTimingById({

2921-

taskId: task.taskId,

29222914

lastEventAt: now - 10 * 60_000,

29232915

});

29242916

@@ -3147,8 +3139,8 @@ describe("task-registry", () => {

31473139

});

3148314031493141

nowSpy.mockReturnValue(1_700_000_001_000);

3150-

setTaskTimingById({

3151-

taskId: task.taskId,

3142+

markTaskRunningByRunId({

3143+

runId: "run-backdated-update",

31523144

startedAt: 1_699_999_998_000,

31533145

lastEventAt: 1_699_999_998_500,

31543146

});

@@ -3220,7 +3212,7 @@ describe("task-registry", () => {

32203212

},

32213213

});

322232143223-

const staleTask = createTaskRecord({

3215+

createTaskRecord({

32243216

runtime: "cli",

32253217

ownerKey: "agent:main:main",

32263218

scopeKind: "session",

@@ -3230,9 +3222,6 @@ describe("task-registry", () => {

32303222

status: "running",

32313223

deliveryStatus: "pending",

32323224

notifyPolicy: "silent",

3233-

});

3234-

setTaskTimingById({

3235-

taskId: staleTask.taskId,

32363225

startedAt: now - 60_000,

32373226

lastEventAt: now - 60_000,

32383227

});