test: cover telegram ACP slash session namespace (#38680)
This commit is contained in:
parent
e8f419c4e0
commit
bfc36cc86d
@ -265,6 +265,12 @@ describe("registerTelegramNativeCommands — session metadata", () => {
|
|||||||
>
|
>
|
||||||
)[0]?.[0];
|
)[0]?.[0];
|
||||||
expect(dispatchCall?.ctx?.CommandTargetSessionKey).toBe(boundSessionKey);
|
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 () => {
|
it("aborts native command dispatch when configured ACP topic binding cannot initialize", async () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user