Files
openclaw/docs
itsuzef e37460474d fix(whatsapp): align CLI surface and prompt snapshots with forceDocument schema
Follow-up to the previous commit on this branch. The agent message-tool
schema now describes forceDocument/asDocument as a cross-channel knob,
so the public CLI help and the user-facing CLI docs need to match, and
the regenerated prompt snapshot fixtures need to drop the stale
"Telegram only" string the schema no longer emits.

* src/cli/program/message/register.send.ts: rephrase the `--force-document`
  CLI option help from "Send media as document to avoid Telegram
  compression (Telegram only)" to "Send media as document to avoid
  channel compression (Telegram, WhatsApp)" so `openclaw message send
  --help` no longer claims Telegram exclusivity.
* docs/cli/message.md: change the per-flag entry under `send` from
  "Telegram only: --force-document (...avoid Telegram compression)" to
  "Telegram + WhatsApp: --force-document (...avoid channel compression)"
  so the public docs match both the schema and the CLI help.
* test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/*:
  regenerate via `pnpm prompt:snapshots:gen` so the captured tool
  descriptions, dynamic-tools JSON, and rough-token counts reflect the
  new schema strings. Six fixtures change in lockstep:
  - discord-group-codex-message-tool.md
  - telegram-direct-codex-message-tool.md
  - telegram-heartbeat-codex-tool.md
  - codex-dynamic-tools.discord-group.json
  - codex-dynamic-tools.telegram-direct.json
  - codex-dynamic-tools.heartbeat-turn.json

Verified locally:

* `pnpm prompt:snapshots:check` reports 7 files current.
* `pnpm exec oxfmt --check --threads=1` is clean for both touched ts
  files plus docs/cli/message.md and CHANGELOG.md.
* `pnpm test extensions/whatsapp/src/send.test.ts
  extensions/whatsapp/src/inbound/send-api.test.ts` keeps the 51-case
  WhatsApp send/inbound suite green, including the three new
  forceDocument/asDocument cases from the previous commit.
2026-05-16 23:27:37 -03:00
..
2026-05-07 19:43:06 -07:00
2026-05-15 15:33:27 +01:00
2026-05-16 23:49:18 +01:00
2026-05-08 06:01:23 +01:00
2026-04-17 16:05:10 +01:00