fix: allow wildcard control commands

This commit is contained in:
Peter Steinberger
2026-01-05 02:05:23 +01:00
parent 00370139a5
commit 359cb66e68
4 changed files with 48 additions and 53 deletions

View File

@@ -502,7 +502,7 @@ describe("trigger handling", () => {
});
});
it("ignores /activation from non-owners in groups", async () => {
it("allows /activation from allowFrom in groups", async () => {
await withTempHome(async (home) => {
const cfg = makeCfg(home);
const res = await getReplyFromConfig(
@@ -517,7 +517,8 @@ describe("trigger handling", () => {
{},
cfg,
);
expect(res).toBeUndefined();
const text = Array.isArray(res) ? res[0]?.text : res?.text;
expect(text).toBe("⚙️ Group activation set to mention.");
expect(runEmbeddedPiAgent).not.toHaveBeenCalled();
});
});