cron: infer payload kind for model-only update patches (openclaw#15664) thanks @rodrigouroz

Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm check (fails on current origin/main in src/memory/embedding-manager.test-harness.ts; unchanged by this PR)

Co-authored-by: rodrigouroz <384037+rodrigouroz@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
Rodrigo Uroz
2026-02-15 12:12:51 -03:00
committed by GitHub
parent 3c97ec70d1
commit 89dccc79a7
6 changed files with 135 additions and 4 deletions

View File

@@ -75,12 +75,13 @@ export async function handleToolExecutionStart(
if (toolName === "read") {
const record = args && typeof args === "object" ? (args as Record<string, unknown>) : {};
const filePath =
const filePathValue =
typeof record.path === "string"
? record.path.trim()
? record.path
: typeof record.file_path === "string"
? record.file_path.trim()
? record.file_path
: "";
const filePath = filePathValue.trim();
if (!filePath) {
const argsPreview = typeof args === "string" ? args.slice(0, 200) : undefined;
ctx.log.warn(