fix: status runtime + help

This commit is contained in:
Peter Steinberger
2026-01-05 07:07:17 +01:00
parent 0d0da2e297
commit 17ef7b3b0e
7 changed files with 81 additions and 9 deletions

View File

@@ -126,6 +126,24 @@ describe("trigger handling", () => {
});
});
it("returns help without invoking the agent", async () => {
await withTempHome(async (home) => {
const res = await getReplyFromConfig(
{
Body: "/help",
From: "+1002",
To: "+2000",
},
{},
makeCfg(home),
);
const text = Array.isArray(res) ? res[0]?.text : res?.text;
expect(text).toContain("Help");
expect(text).toContain("Shortcuts");
expect(runEmbeddedPiAgent).not.toHaveBeenCalled();
});
});
it("allows owner to set send policy", async () => {
await withTempHome(async (home) => {
const cfg = {