Commit 419da85
committed
fix(msteams): include sessionKey in canonical hook context
Addresses ClawSweeper review finding [P2] on PR #82354. Pass
`params.sessionKeyForInternalHooks` as the `sessionKey` field of the
canonical hook context built in `buildMSTeamsSentHookContext`, not
just as the internal-hook routing key.
Telegram's `buildTelegramSentHookContext` does not include sessionKey
either — but the canonical context type accepts it, and the plugin-SDK
consumers reading the canonical/plugin context object (via
`toPluginMessageContext`) can use it to correlate the sent event with
the originating agent session. Including it costs nothing.1 parent 26b1178 commit 419da85
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments