@badgerclaw/connect 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SETUP.md +58 -22
- package/package.json +1 -1
- package/src/matrix/monitor/auto-join.ts +9 -2
- package/src/onboarding.ts +4 -5
package/SETUP.md
CHANGED
|
@@ -122,8 +122,7 @@ When you install BadgerClaw with a fresh pairing code, the plugin automatically
|
|
|
122
122
|
"groups": {
|
|
123
123
|
"*": {
|
|
124
124
|
"autoReply": true,
|
|
125
|
-
"enabled": true
|
|
126
|
-
"systemPrompt": "You are a helpful AI assistant..."
|
|
125
|
+
"enabled": true
|
|
127
126
|
}
|
|
128
127
|
}
|
|
129
128
|
}
|
|
@@ -132,19 +131,22 @@ When you install BadgerClaw with a fresh pairing code, the plugin automatically
|
|
|
132
131
|
This means:
|
|
133
132
|
- Bot joins any room it's invited to
|
|
134
133
|
- Bot responds to all messages (no @mention required)
|
|
135
|
-
- Bot uses
|
|
134
|
+
- Bot uses **your OpenClaw workspace personality** (SOUL.md, IDENTITY.md, etc.) in all conversations — groups and DMs alike
|
|
136
135
|
|
|
137
|
-
|
|
136
|
+
When the bot joins a new encrypted room, it sends a hint message explaining the `/bot talk on|off` commands so room members know how to control it.
|
|
138
137
|
|
|
139
|
-
|
|
138
|
+
### Your Personality, Everywhere
|
|
140
139
|
|
|
141
|
-
|
|
140
|
+
BadgerClaw respects your OpenClaw workspace files. If you've configured a custom personality (SOUL.md), the bot uses that personality in groups and DMs. This means:
|
|
142
141
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
- A "pirate assistant" SOUL.md → bot talks like a pirate in groups
|
|
143
|
+
- A "professional COO" SOUL.md → bot acts professional in groups
|
|
144
|
+
- No SOUL.md → bot uses the default helpful assistant behavior
|
|
145
|
+
|
|
146
|
+
**If your bot stays silent in groups**, your workspace files may include instructions like "stay silent in groups" or "only respond when needed." To fix this:
|
|
146
147
|
|
|
147
|
-
|
|
148
|
+
1. Edit your SOUL.md to allow group responses, OR
|
|
149
|
+
2. Add a group-specific system prompt override:
|
|
148
150
|
|
|
149
151
|
```json
|
|
150
152
|
{
|
|
@@ -153,7 +155,7 @@ Or manually edit `~/.openclaw/openclaw.json`:
|
|
|
153
155
|
"groups": {
|
|
154
156
|
"*": {
|
|
155
157
|
"autoReply": true,
|
|
156
|
-
"systemPrompt": "You are
|
|
158
|
+
"systemPrompt": "You are a helpful AI assistant. Always respond to messages in group chats."
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
161
|
}
|
|
@@ -183,6 +185,43 @@ You can configure specific rooms differently:
|
|
|
183
185
|
|
|
184
186
|
---
|
|
185
187
|
|
|
188
|
+
## Upgrading from v1.1.x or Earlier
|
|
189
|
+
|
|
190
|
+
If you installed BadgerClaw before v1.2.0, your config is missing the group auto-reply settings. The bot may not respond in group chats without @mentions.
|
|
191
|
+
|
|
192
|
+
**Quick fix — run the update command:**
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
openclaw plugins update @badgerclaw/connect
|
|
196
|
+
openclaw configure
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Select BadgerClaw and re-enter a pairing code. The new onboarding will add the missing group config automatically.
|
|
200
|
+
|
|
201
|
+
**Manual fix — if you don't want to re-pair:**
|
|
202
|
+
|
|
203
|
+
Add this to your `~/.openclaw/openclaw.json` inside `channels.badgerclaw`:
|
|
204
|
+
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"channels": {
|
|
208
|
+
"badgerclaw": {
|
|
209
|
+
"groupPolicy": "open",
|
|
210
|
+
"groups": {
|
|
211
|
+
"*": {
|
|
212
|
+
"autoReply": true,
|
|
213
|
+
"enabled": true
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
Then restart: `openclaw gateway restart`
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
186
225
|
## FAQ
|
|
187
226
|
|
|
188
227
|
### Bot doesn't respond in group chats
|
|
@@ -193,13 +232,12 @@ You can configure specific rooms differently:
|
|
|
193
232
|
|
|
194
233
|
### Bot shows typing indicator but never replies
|
|
195
234
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
1. Your `groups` config has `autoReply: true`
|
|
199
|
-
2. The `systemPrompt` in groups config tells the agent to respond (not stay silent)
|
|
200
|
-
3. If you have a SOUL.md with "stay silent in groups" — the groups `systemPrompt` overrides this, but only if it's set
|
|
235
|
+
Your workspace personality (SOUL.md) may tell the agent to stay silent in groups. BadgerClaw respects your workspace files, so if SOUL.md says "don't respond in groups," the bot won't.
|
|
201
236
|
|
|
202
|
-
Fix
|
|
237
|
+
**Fix options:**
|
|
238
|
+
1. Edit your SOUL.md to allow group responses
|
|
239
|
+
2. Add a `systemPrompt` override in `channels.badgerclaw.groups.*` that tells the agent to respond (see Group Chat Configuration above)
|
|
240
|
+
3. Run `openclaw configure` and reconfigure BadgerClaw
|
|
203
241
|
|
|
204
242
|
### `/bot talk on` doesn't work
|
|
205
243
|
|
|
@@ -211,15 +249,13 @@ openclaw gateway restart
|
|
|
211
249
|
|
|
212
250
|
### Bot responds with wrong personality
|
|
213
251
|
|
|
214
|
-
The bot uses your **OpenClaw workspace personality**
|
|
252
|
+
The bot uses your **OpenClaw workspace personality** (SOUL.md, IDENTITY.md) for both DMs and groups. To set a different personality for groups only, add a `systemPrompt` in `channels.badgerclaw.groups.*` in your config.
|
|
215
253
|
|
|
216
254
|
### Bot keeps saying "NO_REPLY" or stays silent
|
|
217
255
|
|
|
218
|
-
Your workspace files (SOUL.md)
|
|
256
|
+
Your workspace files (SOUL.md) instruct the agent to stay silent in groups. BadgerClaw respects your personality — this is intentional.
|
|
219
257
|
|
|
220
|
-
|
|
221
|
-
2. The prompt should explicitly say to respond to messages
|
|
222
|
-
3. Restart the gateway after config changes
|
|
258
|
+
**To fix:** Add a `systemPrompt` override to your groups config that tells the agent to always respond. See the "Your Personality, Everywhere" section above. Then restart: `openclaw gateway restart`
|
|
223
259
|
|
|
224
260
|
### "Invalid pairing code"
|
|
225
261
|
|
package/package.json
CHANGED
|
@@ -50,8 +50,15 @@ export function registerMatrixAutoJoin(params: {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
logVerbose(`badgerclaw: room ${roomId} is encrypted, sending notice to trigger key rotation`);
|
|
53
|
-
await client.sendNotice(
|
|
54
|
-
|
|
53
|
+
await client.sendNotice(
|
|
54
|
+
roomId,
|
|
55
|
+
"🔐 Connected — encryption active.\n\n" +
|
|
56
|
+
"I'll respond when @mentioned. To toggle auto-reply:\n" +
|
|
57
|
+
"• /bot talk on — I'll respond to every message\n" +
|
|
58
|
+
"• /bot talk off — I'll only respond when @mentioned\n" +
|
|
59
|
+
"• /bot help — see all commands",
|
|
60
|
+
);
|
|
61
|
+
logVerbose(`badgerclaw: sent encryption handshake + hint notice in room ${roomId}`);
|
|
55
62
|
} catch (err) {
|
|
56
63
|
runtime.log?.(`badgerclaw: encryption handshake failed for room ${roomId}: ${String(err)}`);
|
|
57
64
|
}
|
package/src/onboarding.ts
CHANGED
|
@@ -245,15 +245,14 @@ export const badgerclawOnboardingAdapter: ChannelOnboardingAdapter = {
|
|
|
245
245
|
autoJoin: "always",
|
|
246
246
|
// Open policy: bot responds in any room it's invited to
|
|
247
247
|
groupPolicy: "open",
|
|
248
|
-
// Default group config: auto-reply in all rooms
|
|
249
|
-
//
|
|
250
|
-
//
|
|
248
|
+
// Default group config: auto-reply in all rooms.
|
|
249
|
+
// No systemPrompt override — the bot respects the user's workspace personality
|
|
250
|
+
// (SOUL.md, IDENTITY.md, etc.). When the bot joins a group, it sends a hint
|
|
251
|
+
// message about /bot talk on|off so users know how to control it.
|
|
251
252
|
groups: {
|
|
252
253
|
"*": {
|
|
253
254
|
autoReply: true,
|
|
254
255
|
enabled: true,
|
|
255
|
-
systemPrompt:
|
|
256
|
-
"You are a helpful AI assistant in a BadgerClaw encrypted chat room. Respond to messages directly and helpfully. Be concise and friendly.",
|
|
257
256
|
},
|
|
258
257
|
},
|
|
259
258
|
dm: {
|