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

推荐订阅源

博客园_首页
B
Blog
V
V2EX
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
博客园 - 聂微东
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
J
Java Code Geeks
H
Help Net Security
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
D
Docker
L
LangChain Blog
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
WordPress大学
WordPress大学
V
Visual Studio 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
fix(cron): preserve model overrides for text payloads (#9...
vincentkoc · 2026-06-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -37,6 +37,7 @@ Docs: https://docs.openclaw.ai

3737

- Release and test reliability: extend slow Gateway/full-suite watchdogs, split local full-suite shards when throttled, stabilize plugin auth marker fixtures, avoid brittle provider-ref error text, and keep QA Lab bootstrap selection assertions aligned with flow-only scenarios. (#92652)

3838

- macOS Peekaboo bridge: update the embedded Peekaboo package to 3.5.2 and route bundled-skill CLI commands through the OpenClaw app bridge so they inherit its Screen Recording and Accessibility grants.

3939

- Agent routing: route subagent RPC callbacks addressed to an agent-shaped `--to` target to the correct session key instead of falling back to the main session, so WeChat (and other channel) session-key callbacks reach the intended subagent session. (#90231) Thanks @zhangguiping-xydt.

40+

- Cron: preserve model, fallback, thinking, timeout, light-context, unsafe-content, and tool allow-list overrides on implicit text payloads by promoting them to agent turns, while explicit system events still prune those fields. Fixes #28905; carries forward #64060 and #73946. Thanks @liaoandi.

4041

- QQBot delivery: keep markdown table chunks self-contained across message boundaries by preserving table state across block deliveries, flushing unfinished table-row fragments as plain text, and detecting short pipe-terminated rows by column count so split rows are not sent as malformed markdown. (#92428) Thanks @sliverp.

4142
4243

## 2026.6.6

Original file line numberDiff line numberDiff line change

@@ -475,6 +475,38 @@ describe("normalizeCronJobCreate", () => {

475475

expect(validateCronAddParams(normalized)).toBe(true);

476476

});

477477
478+

it("promotes implicit text payloads with agentTurn hints to agentTurn create jobs", () => {

479+

const normalized = normalizeCronJobCreate({

480+

name: "implicit-agent-turn",

481+

schedule: { kind: "every", everyMs: 60_000 },

482+

payload: {

483+

text: " summarize the build ",

484+

model: " openai/gpt-5 ",

485+

fallbacks: [" anthropic/claude-haiku-3-5 "],

486+

thinking: " high ",

487+

timeoutSeconds: 45,

488+

lightContext: true,

489+

toolsAllow: [" read "],

490+

allowUnsafeExternalContent: true,

491+

},

492+

}) as unknown as Record<string, unknown>;

493+
494+

expect(normalized.sessionTarget).toBe("isolated");

495+

expect((normalized.delivery as Record<string, unknown>).mode).toBe("announce");

496+

expect(normalized.payload).toEqual({

497+

kind: "agentTurn",

498+

message: "summarize the build",

499+

model: "openai/gpt-5",

500+

fallbacks: ["anthropic/claude-haiku-3-5"],

501+

thinking: "high",

502+

timeoutSeconds: 45,

503+

lightContext: true,

504+

toolsAllow: ["read"],

505+

allowUnsafeExternalContent: true,

506+

});

507+

expect(validateCronAddParams(normalized)).toBe(true);

508+

});

509+
478510

it("prunes agentTurn-only payload fields from systemEvent create jobs", () => {

479511

const normalized = normalizeCronJobCreate({

480512

name: "system-event-prune",

@@ -843,6 +875,22 @@ describe("normalizeCronJobPatch", () => {

843875

expect(validateCronUpdateParams({ id: "job-1", patch: normalized })).toBe(true);

844876

});

845877
878+

it("promotes implicit text payloads with agentTurn hints to agentTurn patches", () => {

879+

const normalized = normalizeCronJobPatch({

880+

payload: {

881+

text: " continue the report ",

882+

toolsAllow: [" read "],

883+

},

884+

}) as unknown as Record<string, unknown>;

885+
886+

expect(normalized.payload).toEqual({

887+

kind: "agentTurn",

888+

message: "continue the report",

889+

toolsAllow: ["read"],

890+

});

891+

expect(validateCronUpdateParams({ id: "job-1", patch: normalized })).toBe(true);

892+

});

893+
846894

it("preserves null sessionKey patches and trims string values", () => {

847895

const trimmed = normalizeCronJobPatch({

848896

sessionKey: " agent:main:telegram:group:-100123 ",

Original file line numberDiff line numberDiff line change

@@ -79,6 +79,18 @@ function normalizeCommandArgv(value: unknown): string[] | undefined {

7979

return [...value];

8080

}

8181
82+

function hasAgentTurnOnlyPayloadHint(payload: UnknownRecord): boolean {

83+

return (

84+

"model" in payload ||

85+

"fallbacks" in payload ||

86+

"thinking" in payload ||

87+

"timeoutSeconds" in payload ||

88+

"toolsAllow" in payload ||

89+

typeof payload.lightContext === "boolean" ||

90+

typeof payload.allowUnsafeExternalContent === "boolean"

91+

);

92+

}

93+
8294

function coerceSchedule(schedule: UnknownRecord) {

8395

const next: UnknownRecord = { ...schedule };

8496

const rawKind = normalizeLowercaseStringOrEmpty(schedule.kind);

@@ -265,6 +277,10 @@ function coercePayload(payload: UnknownRecord) {

265277

) {

266278

delete next.allowUnsafeExternalContent;

267279

}

280+

if (!("kind" in next) && typeof next.text === "string" && hasAgentTurnOnlyPayloadHint(next)) {

281+

next.kind = "agentTurn";

282+

next.message = next.text;

283+

}

268284

if (next.kind === "systemEvent") {

269285

delete next.message;

270286

delete next.model;