Merge pull request #578 from p6l-richard/feature/identity-based-message-prefix

fix(messages): derive messagePrefix from identity.name
This commit is contained in:
Peter Steinberger
2026-01-09 15:40:52 +00:00
committed by GitHub
19 changed files with 236 additions and 20 deletions

View File

@@ -935,6 +935,14 @@ Controls inbound/outbound prefixes and optional ack reactions.
`responsePrefix` is applied to **all outbound replies** (tool summaries, block
streaming, final replies) across providers unless already present.
If `messages.responsePrefix` is unset and the routed agent has `identity.name`
set, Clawdbot defaults the prefix to `[{identity.name}]`.
If `messages.messagePrefix` is unset, the default stays **unchanged**:
`"[clawdbot]"` when `whatsapp.allowFrom` is empty, otherwise `""` (no prefix).
When using `"[clawdbot]"`, Clawdbot will instead use `[{identity.name}]` when
the routed agent has `identity.name` set.
`ackReaction` sends a best-effort emoji reaction to acknowledge inbound messages
on providers that support reactions (Slack/Discord/Telegram). Defaults to the
active agents `identity.emoji` when set, otherwise `"👀"`. Set it to `""` to disable.

View File

@@ -59,6 +59,9 @@ When the wizard asks for your personal WhatsApp number, enter the phone you will
}
```
Tip: if you set the routed agents `identity.name`, you can omit
`messages.responsePrefix` and it will default to `[{identity.name}]`.
### Number sourcing tips
- **Local eSIM** from your country's mobile carrier (most reliable)
- Austria: [hot.at](https://www.hot.at)