diff --git a/docs/cli/message.md b/docs/cli/message.md index 9d3ae13651b..ecfa177947c 100644 --- a/docs/cli/message.md +++ b/docs/cli/message.md @@ -72,7 +72,7 @@ Name lookup: - Optional: `--media`, `--presentation`, `--delivery`, `--pin`, `--reply-to`, `--thread-id`, `--gif-playback`, `--force-document`, `--silent` - Shared presentation payloads: `--presentation` sends semantic blocks (`text`, `context`, `divider`, `buttons`, `select`) that core renders through the selected channel's declared capabilities. See [Message Presentation](/plugins/message-presentation). - Generic delivery preferences: `--delivery` accepts delivery hints such as `{ "pin": true }`; `--pin` is shorthand for pinned delivery when the channel supports it. - - Telegram only: `--force-document` (send images, GIFs, and videos as documents to avoid Telegram compression) + - Telegram + WhatsApp: `--force-document` (send images, GIFs, and videos as documents to avoid channel compression) - Telegram only: `--thread-id` (forum topic id) - Slack only: `--thread-id` (thread timestamp; `--reply-to` uses the same field) - Telegram + Discord: `--silent` diff --git a/src/cli/program/message/register.send.ts b/src/cli/program/message/register.send.ts index 5a208f8bc85..d54e0791982 100644 --- a/src/cli/program/message/register.send.ts +++ b/src/cli/program/message/register.send.ts @@ -26,7 +26,7 @@ export function registerMessageSendCommand(message: Command, helpers: MessageCli .option("--gif-playback", "Treat video media as GIF playback (WhatsApp only).", false) .option( "--force-document", - "Send media as document to avoid Telegram compression (Telegram only). Applies to images and GIFs.", + "Send media as document to avoid channel compression (Telegram, WhatsApp). Applies to images and GIFs.", false, ) .option( 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 14a96f2b37d..7a1540b4b44 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 @@ -625,7 +625,7 @@ "type": "string" }, "asDocument": { - "description": "Send image/GIF as document to avoid Telegram compression. Alias for forceDocument (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression. Alias for forceDocument.", "type": "boolean" }, "asVoice": { @@ -702,7 +702,7 @@ "type": "string" }, "forceDocument": { - "description": "Send image/GIF as document to avoid Telegram compression (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression.", "type": "boolean" }, "gatewayToken": { 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 0ee1f2d834b..5bba78a04a8 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 @@ -625,7 +625,7 @@ "type": "string" }, "asDocument": { - "description": "Send image/GIF as document to avoid Telegram compression. Alias for forceDocument (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression. Alias for forceDocument.", "type": "boolean" }, "asVoice": { @@ -702,7 +702,7 @@ "type": "string" }, "forceDocument": { - "description": "Send image/GIF as document to avoid Telegram compression (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression.", "type": "boolean" }, "gatewayToken": { 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 3f9daefa6a3..d2b7e7c4740 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 @@ -625,7 +625,7 @@ "type": "string" }, "asDocument": { - "description": "Send image/GIF as document to avoid Telegram compression. Alias for forceDocument (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression. Alias for forceDocument.", "type": "boolean" }, "asVoice": { @@ -702,7 +702,7 @@ "type": "string" }, "forceDocument": { - "description": "Send image/GIF as document to avoid Telegram compression (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression.", "type": "boolean" }, "gatewayToken": { 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 a399e4d17da..eff543a8686 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 @@ -602,7 +602,7 @@ Full JSON: `codex-dynamic-tools.discord-group.json` "type": "string" }, "asDocument": { - "description": "Send image/GIF as document to avoid Telegram compression. Alias for forceDocument (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression. Alias for forceDocument.", "type": "boolean" }, "asVoice": { @@ -679,7 +679,7 @@ Full JSON: `codex-dynamic-tools.discord-group.json` "type": "string" }, "forceDocument": { - "description": "Send image/GIF as document to avoid Telegram compression (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression.", "type": "boolean" }, "gatewayToken": { 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 c9956570480..3c1b81426aa 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 @@ -579,7 +579,7 @@ Full JSON: `codex-dynamic-tools.telegram-direct.json` "type": "string" }, "asDocument": { - "description": "Send image/GIF as document to avoid Telegram compression. Alias for forceDocument (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression. Alias for forceDocument.", "type": "boolean" }, "asVoice": { @@ -656,7 +656,7 @@ Full JSON: `codex-dynamic-tools.telegram-direct.json` "type": "string" }, "forceDocument": { - "description": "Send image/GIF as document to avoid Telegram compression (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression.", "type": "boolean" }, "gatewayToken": { 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 bc599a2919a..7bc8fb6ab8f 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 @@ -596,7 +596,7 @@ Full JSON: `codex-dynamic-tools.heartbeat-turn.json` "type": "string" }, "asDocument": { - "description": "Send image/GIF as document to avoid Telegram compression. Alias for forceDocument (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression. Alias for forceDocument.", "type": "boolean" }, "asVoice": { @@ -673,7 +673,7 @@ Full JSON: `codex-dynamic-tools.heartbeat-turn.json` "type": "string" }, "forceDocument": { - "description": "Send image/GIF as document to avoid Telegram compression (Telegram only).", + "description": "Send image/GIF as document to avoid channel compression.", "type": "boolean" }, "gatewayToken": {