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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
量子位
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
U
Unit 42
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
博客园 - Franky
博客园 - 聂微东

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): preserve silent tool results · openclaw/opencl...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -30,6 +30,7 @@ import {

3030

STRICT_AGENTIC_BLOCKED_TEXT,

3131

resolveReplayInvalidFlag,

3232

resolveRunLivenessState,

33+

resolveSilentToolResultReplyPayload,

3334

shouldTreatEmptyAssistantReplyAsSilent,

3435

} from "./run/incomplete-turn.js";

3536

import type { EmbeddedRunAttemptResult } from "./run/types.js";

@@ -76,6 +77,113 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {

7677

expect(result.payloads?.[0]?.text).toContain("verify before retrying");

7778

});

787980+

it("synthesizes a silent cron payload from a trailing current-attempt NO_REPLY tool result", () => {

81+

const payload = resolveSilentToolResultReplyPayload({

82+

isCronTrigger: true,

83+

payloadCount: 0,

84+

aborted: false,

85+

timedOut: false,

86+

attempt: makeAttemptResult({

87+

assistantTexts: [],

88+

toolMetas: [{ toolName: "exec" }],

89+

messagesSnapshot: [

90+

{

91+

role: "toolResult",

92+

content: [{ type: "text", text: "NO_REPLY" }],

93+

details: { aggregated: "NO_REPLY" },

94+

} as unknown as EmbeddedRunAttemptResult["messagesSnapshot"][number],

95+

{

96+

role: "assistant",

97+

stopReason: "stop",

98+

provider: "openai",

99+

model: "gpt-5.4",

100+

content: [],

101+

} as unknown as EmbeddedRunAttemptResult["messagesSnapshot"][number],

102+

],

103+

}),

104+

});

105+106+

expect(payload).toEqual({ text: "NO_REPLY" });

107+

});

108+109+

it("does not reuse an older NO_REPLY tool result without current-attempt tool activity", () => {

110+

const payload = resolveSilentToolResultReplyPayload({

111+

isCronTrigger: true,

112+

payloadCount: 0,

113+

aborted: false,

114+

timedOut: false,

115+

attempt: makeAttemptResult({

116+

assistantTexts: [],

117+

toolMetas: [],

118+

messagesSnapshot: [

119+

{

120+

role: "toolResult",

121+

content: [{ type: "text", text: "NO_REPLY" }],

122+

} as unknown as EmbeddedRunAttemptResult["messagesSnapshot"][number],

123+

{

124+

role: "user",

125+

content: [{ type: "text", text: "Current cron prompt" }],

126+

} as unknown as EmbeddedRunAttemptResult["messagesSnapshot"][number],

127+

{

128+

role: "assistant",

129+

stopReason: "stop",

130+

provider: "openai",

131+

model: "gpt-5.4",

132+

content: [],

133+

} as unknown as EmbeddedRunAttemptResult["messagesSnapshot"][number],

134+

],

135+

}),

136+

});

137+138+

expect(payload).toBeNull();

139+

});

140+141+

it("treats exact NO_REPLY tool output as a quiet cron success when the final assistant is empty", async () => {

142+

mockedClassifyFailoverReason.mockReturnValue(null);

143+

mockedRunEmbeddedAttempt.mockResolvedValueOnce(

144+

makeAttemptResult({

145+

assistantTexts: [],

146+

toolMetas: [{ toolName: "exec" }],

147+

messagesSnapshot: [

148+

{

149+

role: "toolResult",

150+

content: [{ type: "text", text: "NO_REPLY" }],

151+

details: { aggregated: "NO_REPLY" },

152+

} as unknown as EmbeddedRunAttemptResult["messagesSnapshot"][number],

153+

{

154+

role: "assistant",

155+

stopReason: "stop",

156+

provider: "openai",

157+

model: "gpt-5.4",

158+

content: [],

159+

} as unknown as EmbeddedRunAttemptResult["messagesSnapshot"][number],

160+

],

161+

lastAssistant: {

162+

role: "assistant",

163+

stopReason: "stop",

164+

provider: "openai",

165+

model: "gpt-5.4",

166+

content: [],

167+

} as unknown as EmbeddedRunAttemptResult["lastAssistant"],

168+

}),

169+

);

170+171+

const result = await runEmbeddedPiAgent({

172+

...overflowBaseRunParams,

173+

trigger: "cron",

174+

provider: "openai",

175+

model: "gpt-5.4",

176+

runId: "run-cron-no-reply-empty-final",

177+

});

178+179+

expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(1);

180+

expect(result.payloads).toEqual([{ text: "NO_REPLY" }]);

181+

expect(result.meta.livenessState).toBe("working");

182+

expect(mockedLog.warn).not.toHaveBeenCalledWith(

183+

expect.stringContaining("incomplete turn detected"),

184+

);

185+

});

186+79187

it("uses explicit agentId without a session key before surfacing the strict-agentic blocked state", async () => {

80188

mockedClassifyFailoverReason.mockReturnValue(null);

81189

mockedRunEmbeddedAttempt.mockResolvedValue(