Skip to content

Commit 4d3a6f0

Browse files
fix: same-session inferred commitments can be starved indefinitely when a normal HEARTBEAT.md...
1 parent edc4191 commit 4d3a6f0

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3688,7 +3688,6 @@ Docs: https://docs.openclaw.ai
36883688
- Agents/replies: defer implicit image model discovery and keep OAuth auth-store adoption on persisted profiles during reply startup, cutting OCM MarCodex warm prep to sub-second in live checks. Thanks @shakkernerd.
36893689
- Plugins/tools: enforce `contracts.tools` as the manifest ownership contract for plugin tool registration, rejecting undeclared runtime tool names and adding bundled plugin drift coverage. Thanks @shakkernerd.
36903690
- Agents/Codex: stop prompting message-tool-only source turns to finish with `NO_REPLY`, so quiet turns are represented by not calling the visible message tool instead of conflicting final-text instructions. Thanks @pashpashpash.
3691-
- Agents/commitments: deliver due inferred follow-ups in a separate no-tools heartbeat pass after due `HEARTBEAT.md` tasks, so periodic task cadence no longer starves same-session check-ins.
36923691
- Gateway/config: report failed backup restores as failed in logs and config observe audit records instead of marking them valid. (#70515) Thanks @davidangularme.
36933692
- 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.
36943693
- Gateway/config: allow `gateway config.patch` to update documented subagent thinking defaults. Fixes #75764. (#75802) Thanks @kAIborg24.

‎src/infra/heartbeat-runner.commitments.test.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ tasks:
329329
commitments: [buildCommitment({ id: "cm_interview", sessionKey, to: "155462274" })],
330330
});
331331

332-
const sendTelegram = vi.fn().mockResolvedValue({
332+
const sendTelegramMock = vi.fn().mockResolvedValue({
333333
messageId: "m1",
334334
chatId: "155462274",
335335
});
@@ -363,21 +363,21 @@ tasks:
363363
},
364364
);
365365

366-
const result = await runHeartbeatOnce({
366+
const heartbeatResult = await runHeartbeatOnce({
367367
cfg,
368368
agentId: "main",
369369
sessionKey,
370370
deps: {
371371
getReplyFromConfig: replySpy,
372-
telegram: sendTelegram,
372+
telegram: sendTelegramMock,
373373
getQueueSize: () => 0,
374374
nowMs: () => nowMs,
375375
},
376376
});
377377

378378
return {
379-
result,
380-
sendTelegram,
379+
result: heartbeatResult,
380+
sendTelegram: sendTelegramMock,
381381
store: await loadCommitmentStore(),
382382
};
383383
},

0 commit comments

Comments
 (0)