Skip to content

Commit fcd7e08

Browse files
author
Peter Steinberger
committed
Merge commit 'c4810336d5756e2effc206956464f3c11cb61207' into codex/pr-117268-a0-document-fix
2 parents 30868dc + c481033 commit fcd7e08

20 files changed

Lines changed: 1066 additions & 12 deletions

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Docs: https://docs.openclaw.ai
2323
- **Buzz message fidelity:** preserve Markdown output and accept Buzz normal, rich-content, and structured-diff room messages through the existing authorized inbound path. Thanks @shakkernerd.
2424
- **Buzz typing indicators:** show room- and thread-scoped typing during agent replies and heartbeat deliveries, refresh through the active authenticated connection without waiting for relay acknowledgement, and drop ephemeral updates safely during disconnects or shutdown. Thanks @shakkernerd.
2525
- **Buzz sender directory:** expose current bot, member, room, and room-member directory entries from bounded relay state; use current Buzz profile and room names in inbound context while preserving public keys and UUIDs as stable authorization and routing identities. Thanks @shakkernerd.
26+
- **Buzz native mentions:** resolve unique current room-member names and explicit NIP-27 identities into native `p` tags for replies, proactive sends, and bounded standalone delivery; reject out-of-room identities and unresolved labels without an explicit identity, and preserve Buzz reply-thread session parsing during maintenance and heartbeat runs. Thanks @shakkernerd.
2627
- **ClickClack guided setup:** configure ClickClack from `openclaw onboard` or `openclaw channels add clickclack` with URL, token, and workspace prompts, default-account env fallback, nonfatal live connection validation, and gateway-aware next steps that connect automatically when OpenClaw is already running. Thanks @shakkernerd.
2728
- **ClickClack command menus:** publish each bot's native OpenClaw commands to ClickClack composer autocomplete at gateway startup, with per-account opt-out and nonfatal compatibility handling for older tokens and servers. Thanks @shakkernerd.
2829
- **Skill Workshop approvals:** run agent-initiated apply, reject, and quarantine actions without an additional approval prompt by default while preserving `skills.workshop.approvalPolicy: "pending"` as an opt-in approval gate. Thanks @shakkernerd.

‎docs/channels/buzz.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ in a hosted or self-hosted Buzz workspace.
1818
- Shows typing while an accepted agent turn is running
1919
- Preserves Markdown in replies and sends text through OpenClaw's built-in
2020
`message` tool
21+
- Sends native Buzz mentions to current room members from replies and proactive
22+
messages
2123
- Supports mention requirements and sender allowlists
2224
- Discovers rooms after the bot has been approved
2325
- Resolves current Buzz profile names, avatars, room names, and room membership
@@ -161,6 +163,7 @@ Agents can:
161163
- Receive Buzz kind `9` normal messages, kind `40002` rich-content messages,
162164
and kind `40008` structured diffs
163165
- Send Markdown text to an approved Buzz room as a normal kind `9` message
166+
- Send native room-member mentions from normal replies and proactive messages
164167
- Use the configured default room when a workflow does not specify a target
165168
- Use the routed agent's normal skills, memory, and allowed tools
166169

@@ -185,6 +188,39 @@ openclaw message send \
185188
--message "Hello from OpenClaw"
186189
```
187190

191+
### Native mentions
192+
193+
Write a unique current room member's profile name as `@Display Name`. OpenClaw
194+
keeps the visible text unchanged and adds the native Buzz `p` tag, including on
195+
threaded replies. Names are resolved only against the target room's current
196+
relay-signed membership and bounded profile snapshot.
197+
198+
For an explicit identity, include its NIP-27 reference in the message:
199+
200+
```bash
201+
openclaw message send \
202+
--channel buzz \
203+
--target engineering \
204+
--message "Please review this, nostr:npub1..."
205+
```
206+
207+
The referenced public key must be a current member of the target room. Without
208+
an explicit identity, unknown names and duplicate profile names fail visibly
209+
instead of sending text that looks like a mention without notifying anyone.
210+
When the message contains an explicit identity, unresolved or ambiguous labels
211+
remain presentation text; include every intended identity explicitly. Ambiguous
212+
errors list candidate public keys so the sender can retry with the intended
213+
`nostr:npub...` identity. Out-of-room public keys always fail. Mention-like text
214+
inside inline or fenced Markdown code is ignored, and one message can carry at
215+
most 50 native mentions.
216+
217+
Connected Gateways resolve names from their existing in-memory directory
218+
snapshot and do not query the relay per message. Profiles beyond the bounded
219+
snapshot require an explicit `nostr:npub...` identity. A standalone mention send
220+
loads membership and profiles through one bounded authenticated relay session,
221+
publishes, and closes it; standalone messages without mention syntax keep the
222+
existing direct publish path.
223+
188224
### Directory and sender labels
189225

190226
OpenClaw keeps a bounded snapshot of the configured rooms, their current

‎extensions/buzz/src/buzz-bus.lifecycle.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ describe("Buzz bus lifecycle", () => {
562562

563563
it("refreshes relay-signed room metadata after a live edit", async () => {
564564
relayMocks.auth.mockResolvedValue("ok");
565+
const onRoomDirectoryChanged = vi.fn();
565566
relayMocks.roomMetadataEvents = [
566567
{
567568
id: "room-metadata-1",
@@ -582,6 +583,7 @@ describe("Buzz bus lifecycle", () => {
582583
privateKey: PRIVATE_KEY,
583584
channelIds: [CHANNEL_ID],
584585
onMessage: async () => {},
586+
onRoomDirectoryChanged,
585587
});
586588
await vi.waitFor(() => expect(bus.directory.listGroups({})[0]?.name).toBe("Engineering"));
587589

@@ -612,6 +614,7 @@ describe("Buzz bus lifecycle", () => {
612614
});
613615

614616
await vi.waitFor(() => expect(bus.directory.listGroups({})[0]?.name).toBe("Platform"));
617+
expect(onRoomDirectoryChanged).toHaveBeenCalledOnce();
615618
await bus.close();
616619
});
617620

0 commit comments

Comments
 (0)