From 2a65cbb1ee213785a68e8639d799ace62a8b77c9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 1 Jun 2026 04:21:21 +0100 Subject: [PATCH] test: refresh Mattermost prompt snapshots --- .../codex-dynamic-tools.discord-group.json | 127 ++++-------------- .../codex-dynamic-tools.heartbeat-turn.json | 127 ++++-------------- .../codex-dynamic-tools.telegram-direct.json | 127 ++++-------------- .../discord-group-codex-message-tool.md | 8 +- .../telegram-direct-codex-message-tool.md | 8 +- .../telegram-heartbeat-codex-tool.md | 8 +- 6 files changed, 87 insertions(+), 318 deletions(-) diff --git a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.discord-group.json b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.discord-group.json index 2e247fe6058..5e3cc3945e2 100644 --- a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.discord-group.json +++ b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.discord-group.json @@ -183,15 +183,8 @@ "additionalProperties": true, "properties": { "agentId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Agent id, or null to keep it unset" + "description": "Agent id, or null to keep it unset", + "type": "string" }, "deleteAfterRun": { "description": "Delete after first run", @@ -401,15 +394,8 @@ "type": "object" }, "sessionKey": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Explicit session key, or null to clear it" + "description": "Explicit session key, or null to clear it", + "type": "string" }, "sessionTarget": { "description": "main | isolated | current | session:", @@ -434,15 +420,8 @@ "additionalProperties": true, "properties": { "agentId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Agent id, or null to clear it" + "description": "Agent id, or null to clear it", + "type": "string" }, "deleteAfterRun": { "type": "boolean" @@ -451,29 +430,15 @@ "additionalProperties": true, "properties": { "accountId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery account" + "description": "Delivery account, or null to clear", + "type": "string" }, "bestEffort": { "type": "boolean" }, "channel": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery channel" + "description": "Delivery channel, or null to clear", + "type": "string" }, "failureDestination": { "anyOf": [ @@ -481,26 +446,12 @@ "additionalProperties": true, "properties": { "accountId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery account" + "description": "Failure delivery account, or null to clear", + "type": "string" }, "channel": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery channel" + "description": "Failure delivery channel, or null to clear", + "type": "string" }, "mode": { "anyOf": [ @@ -518,15 +469,8 @@ ] }, "to": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery target" + "description": "Failure delivery target, or null to clear", + "type": "string" } }, "type": "object" @@ -557,15 +501,8 @@ "description": "Thread/topic id" }, "to": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery target" + "description": "Delivery target, or null to clear", + "type": "string" } }, "type": "object" @@ -658,18 +595,11 @@ "type": "number" }, "toolsAllow": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "description": "Allowed tool ids, or null to clear" + "description": "Allowed tool ids, or null to clear", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -713,15 +643,8 @@ "type": "object" }, "sessionKey": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Explicit session key, or null to clear it" + "description": "Explicit session key, or null to clear it", + "type": "string" }, "sessionTarget": { "description": "Session target", diff --git a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.heartbeat-turn.json b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.heartbeat-turn.json index f5a2d4507cc..a9b4f7df33b 100644 --- a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.heartbeat-turn.json +++ b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.heartbeat-turn.json @@ -183,15 +183,8 @@ "additionalProperties": true, "properties": { "agentId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Agent id, or null to keep it unset" + "description": "Agent id, or null to keep it unset", + "type": "string" }, "deleteAfterRun": { "description": "Delete after first run", @@ -401,15 +394,8 @@ "type": "object" }, "sessionKey": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Explicit session key, or null to clear it" + "description": "Explicit session key, or null to clear it", + "type": "string" }, "sessionTarget": { "description": "main | isolated | current | session:", @@ -434,15 +420,8 @@ "additionalProperties": true, "properties": { "agentId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Agent id, or null to clear it" + "description": "Agent id, or null to clear it", + "type": "string" }, "deleteAfterRun": { "type": "boolean" @@ -451,29 +430,15 @@ "additionalProperties": true, "properties": { "accountId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery account" + "description": "Delivery account, or null to clear", + "type": "string" }, "bestEffort": { "type": "boolean" }, "channel": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery channel" + "description": "Delivery channel, or null to clear", + "type": "string" }, "failureDestination": { "anyOf": [ @@ -481,26 +446,12 @@ "additionalProperties": true, "properties": { "accountId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery account" + "description": "Failure delivery account, or null to clear", + "type": "string" }, "channel": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery channel" + "description": "Failure delivery channel, or null to clear", + "type": "string" }, "mode": { "anyOf": [ @@ -518,15 +469,8 @@ ] }, "to": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery target" + "description": "Failure delivery target, or null to clear", + "type": "string" } }, "type": "object" @@ -557,15 +501,8 @@ "description": "Thread/topic id" }, "to": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery target" + "description": "Delivery target, or null to clear", + "type": "string" } }, "type": "object" @@ -658,18 +595,11 @@ "type": "number" }, "toolsAllow": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "description": "Allowed tool ids, or null to clear" + "description": "Allowed tool ids, or null to clear", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -713,15 +643,8 @@ "type": "object" }, "sessionKey": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Explicit session key, or null to clear it" + "description": "Explicit session key, or null to clear it", + "type": "string" }, "sessionTarget": { "description": "Session target", diff --git a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.telegram-direct.json b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.telegram-direct.json index 5e12d26ac08..8dc43dd64ff 100644 --- a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.telegram-direct.json +++ b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/codex-dynamic-tools.telegram-direct.json @@ -183,15 +183,8 @@ "additionalProperties": true, "properties": { "agentId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Agent id, or null to keep it unset" + "description": "Agent id, or null to keep it unset", + "type": "string" }, "deleteAfterRun": { "description": "Delete after first run", @@ -401,15 +394,8 @@ "type": "object" }, "sessionKey": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Explicit session key, or null to clear it" + "description": "Explicit session key, or null to clear it", + "type": "string" }, "sessionTarget": { "description": "main | isolated | current | session:", @@ -434,15 +420,8 @@ "additionalProperties": true, "properties": { "agentId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Agent id, or null to clear it" + "description": "Agent id, or null to clear it", + "type": "string" }, "deleteAfterRun": { "type": "boolean" @@ -451,29 +430,15 @@ "additionalProperties": true, "properties": { "accountId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery account" + "description": "Delivery account, or null to clear", + "type": "string" }, "bestEffort": { "type": "boolean" }, "channel": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery channel" + "description": "Delivery channel, or null to clear", + "type": "string" }, "failureDestination": { "anyOf": [ @@ -481,26 +446,12 @@ "additionalProperties": true, "properties": { "accountId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery account" + "description": "Failure delivery account, or null to clear", + "type": "string" }, "channel": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery channel" + "description": "Failure delivery channel, or null to clear", + "type": "string" }, "mode": { "anyOf": [ @@ -518,15 +469,8 @@ ] }, "to": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Failure delivery target" + "description": "Failure delivery target, or null to clear", + "type": "string" } }, "type": "object" @@ -557,15 +501,8 @@ "description": "Thread/topic id" }, "to": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Delivery target" + "description": "Delivery target, or null to clear", + "type": "string" } }, "type": "object" @@ -658,18 +595,11 @@ "type": "number" }, "toolsAllow": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "description": "Allowed tool ids, or null to clear" + "description": "Allowed tool ids, or null to clear", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -713,15 +643,8 @@ "type": "object" }, "sessionKey": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "Explicit session key, or null to clear it" + "description": "Explicit session key, or null to clear it", + "type": "string" }, "sessionTarget": { "description": "Session target", diff --git a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md index 004879113b7..d1af0920973 100644 --- a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md +++ b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md @@ -223,8 +223,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the "roughTokens": 0 }, "dynamicToolsJson": { - "chars": 44020, - "roughTokens": 11005 + "chars": 42091, + "roughTokens": 10523 }, "openClawDeveloperInstructions": { "chars": 2988, @@ -235,8 +235,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the "roughTokens": 6925 }, "totalWithDynamicToolsJson": { - "chars": 71722, - "roughTokens": 17931 + "chars": 69793, + "roughTokens": 17449 }, "userInputText": { "chars": 1629, diff --git a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md index aa4c0ebe30c..08eb0015f10 100644 --- a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md +++ b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md @@ -223,8 +223,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the "roughTokens": 0 }, "dynamicToolsJson": { - "chars": 43741, - "roughTokens": 10936 + "chars": 41812, + "roughTokens": 10453 }, "openClawDeveloperInstructions": { "chars": 1964, @@ -235,8 +235,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the "roughTokens": 6544 }, "totalWithDynamicToolsJson": { - "chars": 69919, - "roughTokens": 17480 + "chars": 67990, + "roughTokens": 16998 }, "userInputText": { "chars": 1129, diff --git a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-heartbeat-codex-tool.md b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-heartbeat-codex-tool.md index 0805e18b3b4..a7f995b9372 100644 --- a/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-heartbeat-codex-tool.md +++ b/test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-heartbeat-codex-tool.md @@ -224,8 +224,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the "roughTokens": 0 }, "dynamicToolsJson": { - "chars": 44836, - "roughTokens": 11209 + "chars": 42907, + "roughTokens": 10727 }, "openClawDeveloperInstructions": { "chars": 1983, @@ -236,8 +236,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the "roughTokens": 6780 }, "totalWithDynamicToolsJson": { - "chars": 71957, - "roughTokens": 17990 + "chars": 70028, + "roughTokens": 17507 }, "userInputText": { "chars": 1367,