You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d697ecf
Browse filesBrowse the repository at this point in the historyBrowse files
'- channels.telegram.groupPolicy is "allowlist" but groupAllowFrom (and allowFrom) is empty — all group messages will be silently dropped. Add sender IDs to channels.telegram.groupAllowFrom or channels.telegram.allowFrom, or set groupPolicy to "open".',
103
+
);
104
+
});
105
+
106
+
it("keeps parent groupAllowFrom warning when an implicit default account is active",()=>{
'- channels.qa-channel.groupPolicy is "allowlist" but groupAllowFrom (and allowFrom) is empty — all group messages will be silently dropped. Add sender IDs to channels.qa-channel.groupAllowFrom or channels.qa-channel.allowFrom, or set groupPolicy to "open".',
125
+
);
126
+
});
127
+
128
+
it("matches canonical runtime account ids to mixed-case config keys",()=>{
129
+
constwarnings=scanEmptyAllowlistPolicyWarnings(
130
+
{
131
+
channels: {
132
+
matrix: {
133
+
groupPolicy: "allowlist",
134
+
groupAllowFrom: [],
135
+
accounts: {
136
+
Work: {groupAllowFrom: ["matrix:group:work"]},
137
+
},
138
+
},
139
+
},
140
+
},
141
+
{doctorFixCommand: "openclaw doctor --fix"},
142
+
);
143
+
144
+
expect(warnings).toEqual([]);
145
+
});
146
+
147
+
it("matches raw runtime account ids to canonical config keys",()=>{
148
+
constwarnings=scanEmptyAllowlistPolicyWarnings(
149
+
{
150
+
channels: {
151
+
signal: {
152
+
groupPolicy: "allowlist",
153
+
groupAllowFrom: [],
154
+
accounts: {
155
+
Work: {groupAllowFrom: ["signal:group:work"]},
156
+
},
157
+
},
158
+
},
159
+
},
160
+
{doctorFixCommand: "openclaw doctor --fix"},
161
+
);
162
+
163
+
expect(warnings).toEqual([]);
164
+
});
165
+
166
+
it("keeps parent warning for a distinct case-sensitive implicit default account",()=>{
167
+
constwarnings=scanEmptyAllowlistPolicyWarnings(
168
+
{
169
+
channels: {
170
+
qqbot: {
171
+
appId: "top-level-app",
172
+
groupPolicy: "allowlist",
173
+
groupAllowFrom: [],
174
+
accounts: {
175
+
Default: {groupAllowFrom: ["qqbot:group:named"]},
176
+
},
177
+
},
178
+
},
179
+
},
180
+
{doctorFixCommand: "openclaw doctor --fix"},
181
+
);
182
+
183
+
expect(warnings).toContain(
184
+
'- channels.qqbot.groupPolicy is "allowlist" but groupAllowFrom (and allowFrom) is empty — all group messages will be silently dropped. Add sender IDs to channels.qqbot.groupAllowFrom or channels.qqbot.allowFrom, or set groupPolicy to "open".',
185
+
);
186
+
});
187
+
40
188
it("allows provider-specific extra warnings without importing providers",()=>{
0 commit comments