Commit 4e3d709
msteams: allow replyStyle config override for direct messages
DM conversations were hardcoded to replyStyle "thread", which reuses
the original webhook TurnContext. Bot Framework revokes this proxy
after the HTTP handler returns (~15-30s). When agent processing takes
longer (LLM inference, tool calls), the final reply hits the revoked
proxy and fails silently — the user sees "Let me try..." but never
gets the actual response.
The "top-level" replyStyle uses adapter.continueConversation() which
creates a fresh TurnContext per send with no expiry. This change lets
DMs respect the same config cascade (channel → team → global) as
group conversations, defaulting to "thread" for backwards compat.
Operators hitting proxy-revoked errors in DMs can now set
replyStyle: "top-level" in their msteams channel config.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 9f154ef commit 4e3d709
2 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
87 | 95 | | |
88 | 96 | | |
89 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
225 | 230 | | |
226 | 231 | | |
227 | 232 | | |
| |||
0 commit comments