Skip to content

Commit 60c842e

Browse files
committed
test: refresh prompt tool snapshots
1 parent 83c6809 commit 60c842e

6 files changed

Lines changed: 78 additions & 42 deletions

test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.discord-group.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,17 @@
262262
},
263263
"after": {
264264
"description": "Failures before alert",
265-
"type": "number"
265+
"minimum": 1,
266+
"type": "integer"
266267
},
267268
"channel": {
268269
"description": "Alert channel",
269270
"type": "string"
270271
},
271272
"cooldownMs": {
272273
"description": "Alert cooldown ms",
273-
"type": "number"
274+
"minimum": 0,
275+
"type": "integer"
274276
},
275277
"includeSkipped": {
276278
"description": "Skipped runs count toward alert",
@@ -329,6 +331,7 @@
329331
"type": "string"
330332
},
331333
"timeoutSeconds": {
334+
"minimum": 0,
332335
"type": "number"
333336
},
334337
"toolsAllow": {
@@ -346,15 +349,17 @@
346349
"properties": {
347350
"anchorMs": {
348351
"description": "Start anchor ms (kind=every)",
349-
"type": "number"
352+
"minimum": 0,
353+
"type": "integer"
350354
},
351355
"at": {
352356
"description": "ISO-8601 time (kind=at)",
353357
"type": "string"
354358
},
355359
"everyMs": {
356360
"description": "Interval ms (kind=every)",
357-
"type": "number"
361+
"minimum": 1,
362+
"type": "integer"
358363
},
359364
"expr": {
360365
"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\".",
@@ -367,7 +372,8 @@
367372
},
368373
"staggerMs": {
369374
"description": "Jitter ms (kind=cron)",
370-
"type": "number"
375+
"minimum": 0,
376+
"type": "integer"
371377
},
372378
"tz": {
373379
"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.",
@@ -480,15 +486,17 @@
480486
},
481487
"after": {
482488
"description": "Failures before alert",
483-
"type": "number"
489+
"minimum": 1,
490+
"type": "integer"
484491
},
485492
"channel": {
486493
"description": "Alert channel",
487494
"type": "string"
488495
},
489496
"cooldownMs": {
490497
"description": "Alert cooldown ms",
491-
"type": "number"
498+
"minimum": 0,
499+
"type": "integer"
492500
},
493501
"includeSkipped": {
494502
"description": "Skipped runs count toward alert",
@@ -547,6 +555,7 @@
547555
"type": "string"
548556
},
549557
"timeoutSeconds": {
558+
"minimum": 0,
550559
"type": "number"
551560
},
552561
"toolsAllow": {
@@ -564,15 +573,17 @@
564573
"properties": {
565574
"anchorMs": {
566575
"description": "Start anchor ms (kind=every)",
567-
"type": "number"
576+
"minimum": 0,
577+
"type": "integer"
568578
},
569579
"at": {
570580
"description": "ISO-8601 time (kind=at)",
571581
"type": "string"
572582
},
573583
"everyMs": {
574584
"description": "Interval ms (kind=every)",
575-
"type": "number"
585+
"minimum": 1,
586+
"type": "integer"
576587
},
577588
"expr": {
578589
"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\".",
@@ -585,7 +596,8 @@
585596
},
586597
"staggerMs": {
587598
"description": "Jitter ms (kind=cron)",
588-
"type": "number"
599+
"minimum": 0,
600+
"type": "integer"
589601
},
590602
"tz": {
591603
"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.",

test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.heartbeat-turn.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,17 @@
262262
},
263263
"after": {
264264
"description": "Failures before alert",
265-
"type": "number"
265+
"minimum": 1,
266+
"type": "integer"
266267
},
267268
"channel": {
268269
"description": "Alert channel",
269270
"type": "string"
270271
},
271272
"cooldownMs": {
272273
"description": "Alert cooldown ms",
273-
"type": "number"
274+
"minimum": 0,
275+
"type": "integer"
274276
},
275277
"includeSkipped": {
276278
"description": "Skipped runs count toward alert",
@@ -329,6 +331,7 @@
329331
"type": "string"
330332
},
331333
"timeoutSeconds": {
334+
"minimum": 0,
332335
"type": "number"
333336
},
334337
"toolsAllow": {
@@ -346,15 +349,17 @@
346349
"properties": {
347350
"anchorMs": {
348351
"description": "Start anchor ms (kind=every)",
349-
"type": "number"
352+
"minimum": 0,
353+
"type": "integer"
350354
},
351355
"at": {
352356
"description": "ISO-8601 time (kind=at)",
353357
"type": "string"
354358
},
355359
"everyMs": {
356360
"description": "Interval ms (kind=every)",
357-
"type": "number"
361+
"minimum": 1,
362+
"type": "integer"
358363
},
359364
"expr": {
360365
"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\".",
@@ -367,7 +372,8 @@
367372
},
368373
"staggerMs": {
369374
"description": "Jitter ms (kind=cron)",
370-
"type": "number"
375+
"minimum": 0,
376+
"type": "integer"
371377
},
372378
"tz": {
373379
"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.",
@@ -480,15 +486,17 @@
480486
},
481487
"after": {
482488
"description": "Failures before alert",
483-
"type": "number"
489+
"minimum": 1,
490+
"type": "integer"
484491
},
485492
"channel": {
486493
"description": "Alert channel",
487494
"type": "string"
488495
},
489496
"cooldownMs": {
490497
"description": "Alert cooldown ms",
491-
"type": "number"
498+
"minimum": 0,
499+
"type": "integer"
492500
},
493501
"includeSkipped": {
494502
"description": "Skipped runs count toward alert",
@@ -547,6 +555,7 @@
547555
"type": "string"
548556
},
549557
"timeoutSeconds": {
558+
"minimum": 0,
550559
"type": "number"
551560
},
552561
"toolsAllow": {
@@ -564,15 +573,17 @@
564573
"properties": {
565574
"anchorMs": {
566575
"description": "Start anchor ms (kind=every)",
567-
"type": "number"
576+
"minimum": 0,
577+
"type": "integer"
568578
},
569579
"at": {
570580
"description": "ISO-8601 time (kind=at)",
571581
"type": "string"
572582
},
573583
"everyMs": {
574584
"description": "Interval ms (kind=every)",
575-
"type": "number"
585+
"minimum": 1,
586+
"type": "integer"
576587
},
577588
"expr": {
578589
"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\".",
@@ -585,7 +596,8 @@
585596
},
586597
"staggerMs": {
587598
"description": "Jitter ms (kind=cron)",
588-
"type": "number"
599+
"minimum": 0,
600+
"type": "integer"
589601
},
590602
"tz": {
591603
"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.",

test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.telegram-direct.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,17 @@
262262
},
263263
"after": {
264264
"description": "Failures before alert",
265-
"type": "number"
265+
"minimum": 1,
266+
"type": "integer"
266267
},
267268
"channel": {
268269
"description": "Alert channel",
269270
"type": "string"
270271
},
271272
"cooldownMs": {
272273
"description": "Alert cooldown ms",
273-
"type": "number"
274+
"minimum": 0,
275+
"type": "integer"
274276
},
275277
"includeSkipped": {
276278
"description": "Skipped runs count toward alert",
@@ -329,6 +331,7 @@
329331
"type": "string"
330332
},
331333
"timeoutSeconds": {
334+
"minimum": 0,
332335
"type": "number"
333336
},
334337
"toolsAllow": {
@@ -346,15 +349,17 @@
346349
"properties": {
347350
"anchorMs": {
348351
"description": "Start anchor ms (kind=every)",
349-
"type": "number"
352+
"minimum": 0,
353+
"type": "integer"
350354
},
351355
"at": {
352356
"description": "ISO-8601 time (kind=at)",
353357
"type": "string"
354358
},
355359
"everyMs": {
356360
"description": "Interval ms (kind=every)",
357-
"type": "number"
361+
"minimum": 1,
362+
"type": "integer"
358363
},
359364
"expr": {
360365
"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\".",
@@ -367,7 +372,8 @@
367372
},
368373
"staggerMs": {
369374
"description": "Jitter ms (kind=cron)",
370-
"type": "number"
375+
"minimum": 0,
376+
"type": "integer"
371377
},
372378
"tz": {
373379
"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.",
@@ -480,15 +486,17 @@
480486
},
481487
"after": {
482488
"description": "Failures before alert",
483-
"type": "number"
489+
"minimum": 1,
490+
"type": "integer"
484491
},
485492
"channel": {
486493
"description": "Alert channel",
487494
"type": "string"
488495
},
489496
"cooldownMs": {
490497
"description": "Alert cooldown ms",
491-
"type": "number"
498+
"minimum": 0,
499+
"type": "integer"
492500
},
493501
"includeSkipped": {
494502
"description": "Skipped runs count toward alert",
@@ -547,6 +555,7 @@
547555
"type": "string"
548556
},
549557
"timeoutSeconds": {
558+
"minimum": 0,
550559
"type": "number"
551560
},
552561
"toolsAllow": {
@@ -564,15 +573,17 @@
564573
"properties": {
565574
"anchorMs": {
566575
"description": "Start anchor ms (kind=every)",
567-
"type": "number"
576+
"minimum": 0,
577+
"type": "integer"
568578
},
569579
"at": {
570580
"description": "ISO-8601 time (kind=at)",
571581
"type": "string"
572582
},
573583
"everyMs": {
574584
"description": "Interval ms (kind=every)",
575-
"type": "number"
585+
"minimum": 1,
586+
"type": "integer"
576587
},
577588
"expr": {
578589
"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\".",
@@ -585,7 +596,8 @@
585596
},
586597
"staggerMs": {
587598
"description": "Jitter ms (kind=cron)",
588-
"type": "number"
599+
"minimum": 0,
600+
"type": "integer"
589601
},
590602
"tz": {
591603
"description": "IANA timezone for cron wall-clock fields, e.g. \"Asia/Shanghai\"; omitted => Gateway host local timezone.",

test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
221221
"roughTokens": 0
222222
},
223223
"dynamicToolsJson": {
224-
"chars": 40744,
225-
"roughTokens": 10186
224+
"chars": 41138,
225+
"roughTokens": 10285
226226
},
227227
"openClawDeveloperInstructions": {
228228
"chars": 2988,
@@ -233,8 +233,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
233233
"roughTokens": 6925
234234
},
235235
"totalWithDynamicToolsJson": {
236-
"chars": 68446,
237-
"roughTokens": 17112
236+
"chars": 68840,
237+
"roughTokens": 17210
238238
},
239239
"userInputText": {
240240
"chars": 1629,

test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
221221
"roughTokens": 0
222222
},
223223
"dynamicToolsJson": {
224-
"chars": 40465,
225-
"roughTokens": 10117
224+
"chars": 40859,
225+
"roughTokens": 10215
226226
},
227227
"openClawDeveloperInstructions": {
228228
"chars": 1964,
@@ -233,8 +233,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the
233233
"roughTokens": 6544
234234
},
235235
"totalWithDynamicToolsJson": {
236-
"chars": 66643,
237-
"roughTokens": 16661
236+
"chars": 67037,
237+
"roughTokens": 16760
238238
},
239239
"userInputText": {
240240
"chars": 1129,

0 commit comments

Comments
 (0)