test: align cron schema description assertions · openclaw/openclaw@2df3938
steipete
·
2026-05-17
·
via Recent Commits to openclaw:main
File tree
test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path
| Original file line number | Diff line number | Diff line change |
|---|
@@ -78,8 +78,8 @@ describe("CronToolSchema", () => {
|
78 | 78 | const jobStagger = propertyAt(schemaRecord, "job.schedule.staggerMs"); |
79 | 79 | const patchStagger = propertyAt(schemaRecord, "patch.schedule.staggerMs"); |
80 | 80 | |
81 | | -expect(jobStagger?.description).toBe("Random jitter in ms (kind=cron)"); |
82 | | -expect(patchStagger?.description).toBe("Random jitter in ms (kind=cron)"); |
| 81 | +expect(jobStagger?.description).toBe("Jitter ms (kind=cron)"); |
| 82 | +expect(patchStagger?.description).toBe("Jitter ms (kind=cron)"); |
83 | 83 | }); |
84 | 84 | |
85 | 85 | it("describes cron expressions as local wall-clock time in the supplied timezone", () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -164,13 +164,13 @@ const CronScheduleSchema = Type.Optional(
|
164 | 164 | expr: Type.Optional( |
165 | 165 | Type.String({ |
166 | 166 | description: |
167 | | -'Cron expr in tz local time; no UTC conversion. Example 6pm Shanghai daily: expr "0 18 * * *", tz "Asia/Shanghai".', |
| 167 | +'Cron expr in tz wall-clock time; do not convert to UTC. Omitted tz => Gateway host local timezone. Example 6pm Shanghai daily: expr "0 18 * * *", tz "Asia/Shanghai".', |
168 | 168 | }), |
169 | 169 | ), |
170 | 170 | tz: Type.Optional( |
171 | 171 | Type.String({ |
172 | 172 | description: |
173 | | -'IANA tz for cron fields, e.g. "Asia/Shanghai"; omitted => Gateway host local tz.', |
| 173 | +'IANA timezone for cron wall-clock fields, e.g. "Asia/Shanghai"; omitted => Gateway host local timezone.', |
174 | 174 | }), |
175 | 175 | ), |
176 | 176 | staggerMs: Type.Optional(Type.Number({ description: "Jitter ms (kind=cron)" })), |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -344,7 +344,7 @@
|
344 | 344 | "type": "number" |
345 | 345 | }, |
346 | 346 | "expr": { |
347 | | -"description": "Cron expr in tz local time; no UTC conversion. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
| 347 | +"description": "Cron expr in tz wall-clock time; do not convert to UTC. Omitted tz => Gateway host local timezone. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
348 | 348 | "type": "string" |
349 | 349 | }, |
350 | 350 | "kind": { |
@@ -357,7 +357,7 @@
|
357 | 357 | "type": "number" |
358 | 358 | }, |
359 | 359 | "tz": { |
360 | | -"description": "IANA tz for cron fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local tz.", |
| 360 | +"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.", |
361 | 361 | "type": "string" |
362 | 362 | } |
363 | 363 | }, |
|
562 | 562 | "type": "number" |
563 | 563 | }, |
564 | 564 | "expr": { |
565 | | -"description": "Cron expr in tz local time; no UTC conversion. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
| 565 | +"description": "Cron expr in tz wall-clock time; do not convert to UTC. Omitted tz => Gateway host local timezone. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
566 | 566 | "type": "string" |
567 | 567 | }, |
568 | 568 | "kind": { |
@@ -575,7 +575,7 @@
|
575 | 575 | "type": "number" |
576 | 576 | }, |
577 | 577 | "tz": { |
578 | | -"description": "IANA tz for cron fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local tz.", |
| 578 | +"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.", |
579 | 579 | "type": "string" |
580 | 580 | } |
581 | 581 | }, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -344,7 +344,7 @@
|
344 | 344 | "type": "number" |
345 | 345 | }, |
346 | 346 | "expr": { |
347 | | -"description": "Cron expr in tz local time; no UTC conversion. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
| 347 | +"description": "Cron expr in tz wall-clock time; do not convert to UTC. Omitted tz => Gateway host local timezone. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
348 | 348 | "type": "string" |
349 | 349 | }, |
350 | 350 | "kind": { |
@@ -357,7 +357,7 @@
|
357 | 357 | "type": "number" |
358 | 358 | }, |
359 | 359 | "tz": { |
360 | | -"description": "IANA tz for cron fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local tz.", |
| 360 | +"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.", |
361 | 361 | "type": "string" |
362 | 362 | } |
363 | 363 | }, |
|
562 | 562 | "type": "number" |
563 | 563 | }, |
564 | 564 | "expr": { |
565 | | -"description": "Cron expr in tz local time; no UTC conversion. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
| 565 | +"description": "Cron expr in tz wall-clock time; do not convert to UTC. Omitted tz => Gateway host local timezone. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
566 | 566 | "type": "string" |
567 | 567 | }, |
568 | 568 | "kind": { |
@@ -575,7 +575,7 @@
|
575 | 575 | "type": "number" |
576 | 576 | }, |
577 | 577 | "tz": { |
578 | | -"description": "IANA tz for cron fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local tz.", |
| 578 | +"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.", |
579 | 579 | "type": "string" |
580 | 580 | } |
581 | 581 | }, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -344,7 +344,7 @@
|
344 | 344 | "type": "number" |
345 | 345 | }, |
346 | 346 | "expr": { |
347 | | -"description": "Cron expr in tz local time; no UTC conversion. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
| 347 | +"description": "Cron expr in tz wall-clock time; do not convert to UTC. Omitted tz => Gateway host local timezone. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
348 | 348 | "type": "string" |
349 | 349 | }, |
350 | 350 | "kind": { |
@@ -357,7 +357,7 @@
|
357 | 357 | "type": "number" |
358 | 358 | }, |
359 | 359 | "tz": { |
360 | | -"description": "IANA tz for cron fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local tz.", |
| 360 | +"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.", |
361 | 361 | "type": "string" |
362 | 362 | } |
363 | 363 | }, |
|
562 | 562 | "type": "number" |
563 | 563 | }, |
564 | 564 | "expr": { |
565 | | -"description": "Cron expr in tz local time; no UTC conversion. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
| 565 | +"description": "Cron expr in tz wall-clock time; do not convert to UTC. Omitted tz => Gateway host local timezone. Example 6pm Shanghai daily: expr \"0 18 * * *\", tz \"Asia/Shanghai\".", |
566 | 566 | "type": "string" |
567 | 567 | }, |
568 | 568 | "kind": { |
@@ -575,7 +575,7 @@
|
575 | 575 | "type": "number" |
576 | 576 | }, |
577 | 577 | "tz": { |
578 | | -"description": "IANA tz for cron fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local tz.", |
| 578 | +"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.", |
579 | 579 | "type": "string" |
580 | 580 | } |
581 | 581 | }, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -217,8 +217,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
|
217 | 217 | "roughTokens": 140 |
218 | 218 | }, |
219 | 219 | "dynamicToolsJson": { |
220 | | -"chars": 40291, |
221 | | -"roughTokens": 10073 |
| 220 | +"chars": 40441, |
| 221 | +"roughTokens": 10111 |
222 | 222 | }, |
223 | 223 | "openClawDeveloperInstructions": { |
224 | 224 | "chars": 5436, |
@@ -229,8 +229,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
|
229 | 229 | "roughTokens": 7129 |
230 | 230 | }, |
231 | 231 | "totalWithDynamicToolsJson": { |
232 | | -"chars": 68809, |
233 | | -"roughTokens": 17203 |
| 232 | +"chars": 68959, |
| 233 | +"roughTokens": 17240 |
234 | 234 | }, |
235 | 235 | "userInputText": { |
236 | 236 | "chars": 870, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -217,8 +217,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
|
217 | 217 | "roughTokens": 140 |
218 | 218 | }, |
219 | 219 | "dynamicToolsJson": { |
220 | | -"chars": 40066, |
221 | | -"roughTokens": 10017 |
| 220 | +"chars": 40216, |
| 221 | +"roughTokens": 10054 |
222 | 222 | }, |
223 | 223 | "openClawDeveloperInstructions": { |
224 | 224 | "chars": 4412, |
@@ -229,8 +229,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
|
229 | 229 | "roughTokens": 6748 |
230 | 230 | }, |
231 | 231 | "totalWithDynamicToolsJson": { |
232 | | -"chars": 67060, |
233 | | -"roughTokens": 16765 |
| 232 | +"chars": 67210, |
| 233 | +"roughTokens": 16803 |
234 | 234 | }, |
235 | 235 | "userInputText": { |
236 | 236 | "chars": 370, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -218,8 +218,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
|
218 | 218 | "roughTokens": 140 |
219 | 219 | }, |
220 | 220 | "dynamicToolsJson": { |
221 | | -"chars": 41161, |
222 | | -"roughTokens": 10291 |
| 221 | +"chars": 41311, |
| 222 | +"roughTokens": 10328 |
223 | 223 | }, |
224 | 224 | "openClawDeveloperInstructions": { |
225 | 225 | "chars": 4412, |
@@ -230,8 +230,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
|
230 | 230 | "roughTokens": 7155 |
231 | 231 | }, |
232 | 232 | "totalWithDynamicToolsJson": { |
233 | | -"chars": 69782, |
234 | | -"roughTokens": 17446 |
| 233 | +"chars": 69932, |
| 234 | +"roughTokens": 17483 |
235 | 235 | }, |
236 | 236 | "userInputText": { |
237 | 237 | "chars": 608, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。