test: cover telegram ACP slash session namespace (#38680)

This commit is contained in:
Ayaan Zaidi
2026-03-07 18:14:44 +05:30
committed by Ayaan Zaidi
parent e8f419c4e0
commit bfc36cc86d

View File

@@ -265,6 +265,12 @@ describe("registerTelegramNativeCommands — session metadata", () => {
>
)[0]?.[0];
expect(dispatchCall?.ctx?.CommandTargetSessionKey).toBe(boundSessionKey);
const sessionMetaCall = (
sessionMocks.recordSessionMetaFromInbound.mock.calls as unknown as Array<
[{ sessionKey?: string }]
>
)[0]?.[0];
expect(sessionMetaCall?.sessionKey).toBe("agent:codex:telegram:slash:200");
});
it("aborts native command dispatch when configured ACP topic binding cannot initialize", async () => {