From 20b4e2b8595649e00cc5202036421f05becf9928 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 11 Jan 2026 02:24:35 +0000 Subject: [PATCH] fix: stabilize live probes and docs --- docs/automation/webhook.md | 2 +- docs/broadcast-groups.md | 16 +++++- docs/cli/gateway.md | 1 + docs/cli/index.md | 57 +++++++++++++++++-- docs/cli/message.md | 26 ++++++++- docs/cli/sandbox.md | 28 ++++----- docs/gateway/configuration.md | 4 +- docs/providers/index.md | 2 + docs/testing.md | 11 +++- docs/tools/agent-send.md | 2 +- docs/tools/index.md | 6 +- patches/@mariozechner__pi-ai@0.42.2.patch | 54 ------------------ src/agents/models.profiles.live.test.ts | 19 +++++++ .../openai-responses.reasoning-replay.test.ts | 10 ++-- 14 files changed, 149 insertions(+), 89 deletions(-) diff --git a/docs/automation/webhook.md b/docs/automation/webhook.md index eae5e4a48..b3ec0d65e 100644 --- a/docs/automation/webhook.md +++ b/docs/automation/webhook.md @@ -72,7 +72,7 @@ Payload: - `wakeMode` optional (`now` | `next-heartbeat`): Whether to trigger an immediate heartbeat (default `now`) or wait for the next periodic check. - `deliver` optional (boolean): If `true`, the agent's response will be sent to the messaging provider. Defaults to `true`. Responses that are only heartbeat acknowledgments are automatically skipped. - `provider` optional (string): The messaging service for delivery. One of: `last`, `whatsapp`, `telegram`, `discord`, `slack`, `signal`, `imessage`, `msteams`. Defaults to `last`. -- `to` optional (string): The recipient identifier for the provider (e.g., phone number for WhatsApp/Signal, chat ID for Telegram, channel ID for Discord/Slack). Defaults to the last recipient in the main session. +- `to` optional (string): The recipient identifier for the provider (e.g., phone number for WhatsApp/Signal, chat ID for Telegram, channel ID for Discord/Slack, conversation ID for MS Teams). Defaults to the last recipient in the main session. - `model` optional (string): Model override (e.g., `anthropic/claude-3-5-sonnet` or an alias). Must be in the allowed model list if restricted. - `thinking` optional (string): Thinking level override (e.g., `low`, `medium`, `high`). - `timeoutSeconds` optional (number): Maximum duration for the agent run in seconds. diff --git a/docs/broadcast-groups.md b/docs/broadcast-groups.md index 58833dbdc..d698c3b5e 100644 --- a/docs/broadcast-groups.md +++ b/docs/broadcast-groups.md @@ -1,3 +1,11 @@ +--- +summary: "Broadcast a WhatsApp message to multiple agents" +read_when: + - Configuring broadcast groups + - Debugging multi-agent replies in WhatsApp +status: experimental +--- + # Broadcast Groups **Status:** Experimental @@ -5,7 +13,9 @@ ## Overview -Broadcast Groups enable multiple agents to process and respond to the same message simultaneously. This allows you to create specialized agent teams that work together in a single WhatsApp group, DM, or channel - all using one phone number. +Broadcast Groups enable multiple agents to process and respond to the same message simultaneously. This allows you to create specialized agent teams that work together in a single WhatsApp group or DM — all using one phone number. + +Current scope: **WhatsApp only** (web provider). Broadcast groups are evaluated after provider allowlists and group activation rules. In WhatsApp groups, this means broadcasts happen when Clawdbot would normally reply (for example: on mention, depending on your group settings). @@ -54,7 +64,9 @@ Agents: ### Basic Setup -Add a top-level `broadcast` section (next to `bindings`): +Add a top-level `broadcast` section (next to `bindings`). Keys are WhatsApp peer ids: +- group chats: group JID (e.g. `120363403215116621@g.us`) +- DMs: E.164 phone number (e.g. `+15551234567`) ```json { diff --git a/docs/cli/gateway.md b/docs/cli/gateway.md index e04c065d7..16e40ecf7 100644 --- a/docs/cli/gateway.md +++ b/docs/cli/gateway.md @@ -39,6 +39,7 @@ Notes: - `--password `: password override (also sets `CLAWDBOT_GATEWAY_PASSWORD` for the process). - `--tailscale `: expose the Gateway via Tailscale. - `--tailscale-reset-on-exit`: reset Tailscale serve/funnel config on shutdown. +- `--allow-unconfigured`: allow gateway start without `gateway.mode=local` in config. - `--dev`: create a dev config + workspace if missing (skips BOOTSTRAP.md). - `--reset`: reset dev config + credentials + sessions + workspace (requires `--dev`). - `--force`: kill any existing listener on the selected port before starting. diff --git a/docs/cli/index.md b/docs/cli/index.md index 9b0fb9201..571d1245c 100644 --- a/docs/cli/index.md +++ b/docs/cli/index.md @@ -52,6 +52,7 @@ clawdbot [--dev] [--profile ] providers list status + logs add remove login @@ -74,6 +75,14 @@ clawdbot [--dev] [--profile ] health status discover + daemon + status + install + uninstall + start + stop + restart + logs models list status @@ -83,6 +92,12 @@ clawdbot [--dev] [--profile ] fallbacks list|add|remove|clear image-fallbacks list|add|remove|clear scan + auth add|setup-token|paste-token + auth order get|set|clear + sandbox + list + recreate + explain wake cron status @@ -106,7 +121,8 @@ clawdbot [--dev] [--profile ] run notify camera list|snap|clip - canvas snapshot + canvas snapshot|present|hide|navigate|eval + canvas a2ui push|reset screen record location get browser @@ -180,6 +196,7 @@ Options: - `--workspace ` - `--non-interactive` - `--mode ` +- `--flow ` - `--auth-choice ` - `--token-provider ` (non-interactive; used with `--auth-choice token`) - `--token ` (non-interactive; used with `--auth-choice token`) @@ -201,9 +218,12 @@ Options: - `--tailscale ` - `--tailscale-reset-on-exit` - `--install-daemon` +- `--no-install-daemon` (alias: `--skip-daemon`) - `--daemon-runtime ` +- `--skip-providers` - `--skip-skills` - `--skip-health` +- `--skip-ui` - `--node-manager ` - `--json` @@ -222,19 +242,20 @@ Options: ## Provider helpers ### `providers` -Manage chat provider accounts (WhatsApp/Telegram/Discord/Slack/Signal/iMessage). +Manage chat provider accounts (WhatsApp/Telegram/Discord/Slack/Signal/iMessage/MS Teams). Subcommands: - `providers list`: show configured chat providers and auth profiles (Claude Code + Codex CLI OAuth sync included). - `providers status`: check gateway reachability and provider health (`--probe` runs extra checks; use `clawdbot health` or `clawdbot status --deep` for gateway health probes). - Tip: `providers status` prints warnings with suggested fixes when it can detect common misconfigurations (then points you to `clawdbot doctor`). +- `providers logs`: show recent provider logs from the gateway log file. - `providers add`: wizard-style setup when no flags are passed; flags switch to non-interactive mode. - `providers remove`: disable by default; pass `--delete` to remove config entries without prompts. - `providers login`: interactive provider login (WhatsApp Web only). - `providers logout`: log out of a provider session (WhatsApp Web only). Common options: -- `--provider `: `whatsapp|telegram|discord|slack|signal|imessage` +- `--provider `: `whatsapp|telegram|discord|slack|signal|imessage|msteams` - `--account `: provider account id (default `default`) - `--name