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

推荐订阅源

博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
aimingoo的专栏
aimingoo的专栏
腾讯CDC
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
F
Fortinet All Blogs
G
Google Developers Blog
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
Engineering at Meta
Engineering at Meta
博客园_首页
B
Blog RSS Feed
D
Docker
M
MIT News - Artificial intelligence
爱范儿
爱范儿
I
InfoQ

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(cron): track claimed reply hooks as execution · openc...
steipete · 2026-05-17 · via Recent Commits to openclaw:main

@@ -1620,6 +1620,12 @@ describe("cron service timer regressions", () => {

16201620

id: "isolated-context-assembled-81368",

16211621

name: "context assembled regression",

16221622

},

1623+

{

1624+

phase: "before_agent_reply",

1625+

phaseText: "before-agent-reply",

1626+

id: "isolated-before-agent-reply-82811",

1627+

name: "before agent reply regression",

1628+

},

16231629

] satisfies Array<{

16241630

phase: CronAgentExecutionPhase;

16251631

phaseText: string;

@@ -1710,6 +1716,86 @@ describe("cron service timer regressions", () => {

17101716

},

17111717

);

171217181719+

it("re-arms the pre-execution watchdog when before_agent_reply does not claim (#82811)", async () => {

1720+

vi.useFakeTimers();

1721+

try {

1722+

const store = timerRegressionFixtures.makeStorePath();

1723+

const scheduledAt = Date.parse("2026-05-17T03:00:00.000Z");

1724+

const cronJob = createIsolatedRegressionJob({

1725+

id: "isolated-before-agent-reply-unhandled-82811",

1726+

name: "before agent reply unhandled regression",

1727+

scheduledAt,

1728+

schedule: { kind: "at", at: new Date(scheduledAt).toISOString() },

1729+

payload: { kind: "agentTurn", message: "work", timeoutSeconds: 1_200 },

1730+

state: { nextRunAtMs: scheduledAt },

1731+

});

1732+

await writeCronJobs(store.storePath, [cronJob]);

1733+1734+

vi.setSystemTime(scheduledAt);

1735+

let now = scheduledAt;

1736+

const started = createDeferred<void>();

1737+

let abortObserved = false;

1738+

const cleanupTimedOutAgentRun = vi.fn(async () => {});

1739+

const state = createCronServiceState({

1740+

cronEnabled: true,

1741+

storePath: store.storePath,

1742+

log: noopLogger,

1743+

nowMs: () => now,

1744+

enqueueSystemEvent: vi.fn(),

1745+

requestHeartbeat: vi.fn(),

1746+

cleanupTimedOutAgentRun,

1747+

runIsolatedAgentJob: vi.fn(

1748+

async ({

1749+

abortSignal,

1750+

onExecutionStarted,

1751+

onExecutionPhase,

1752+

}: {

1753+

abortSignal?: AbortSignal;

1754+

onExecutionStarted?: (info?: CronAgentExecutionStarted) => void;

1755+

onExecutionPhase?: (info: CronAgentExecutionPhaseUpdate) => void;

1756+

}) => {

1757+

onExecutionStarted?.({

1758+

jobId: "isolated-before-agent-reply-unhandled-82811",

1759+

phase: "runner_entered",

1760+

});

1761+

onExecutionPhase?.({

1762+

jobId: "isolated-before-agent-reply-unhandled-82811",

1763+

phase: "before_agent_reply",

1764+

});

1765+

onExecutionPhase?.({

1766+

jobId: "isolated-before-agent-reply-unhandled-82811",

1767+

phase: "runtime_plugins",

1768+

});

1769+

started.resolve();

1770+

abortSignal?.addEventListener(

1771+

"abort",

1772+

() => {

1773+

abortObserved = true;

1774+

},

1775+

{ once: true },

1776+

);

1777+

return await new Promise<never>(() => {});

1778+

},

1779+

),

1780+

});

1781+1782+

const timerPromise = onTimer(state);

1783+

await started.promise;

1784+

await vi.advanceTimersByTimeAsync(60_100);

1785+

now += 60_100;

1786+

await timerPromise;

1787+1788+

const job = requireJob(state, "isolated-before-agent-reply-unhandled-82811");

1789+

expect(abortObserved).toBe(true);

1790+

expect(job.state.lastStatus).toBe("error");

1791+

expect(job.state.lastError).toContain("stalled before execution start");

1792+

expect(job.state.lastError).toContain("runtime-plugins");

1793+

expect(cleanupTimedOutAgentRun).toHaveBeenCalledTimes(1);

1794+

} finally {

1795+

vi.useRealTimers();

1796+

}

1797+

});

1798+17131799

it("keeps state updates when cron next-run computation throws after a successful run (#30905)", () => {

17141800

const startedAt = Date.parse("2026-03-02T12:00:00.000Z");

17151801

const endedAt = startedAt + 50;