fix(acp): guard sessions_spawn runtime targets

This commit is contained in:
Peter Steinberger
2026-04-25 21:23:13 +01:00
parent 20c3177281
commit 6a7b76e119
7 changed files with 128 additions and 2 deletions

View File

@@ -1954,6 +1954,8 @@ describe("createTelegramBot", () => {
expect(replySpy).toHaveBeenCalledTimes(1);
const payload = replySpy.mock.calls[0][0];
expect(payload.SessionKey).toContain(testCase.expectedSessionKeyFragment);
expect(payload.BodyForAgent).toBe(testCase.text);
expect(payload.BodyForAgent).not.toContain("t.me/c/");
}
});