Commit 1d4e434
Kai Liu
fix(slack): resolve workspace token for synthetic-thread questions
Mirror the token-resolution logic from sendMessage in the sendQuestion
adapter. When the thread id is a synthetic placeholder (task: /
cron-job: / cron:), postSlackQuestion drops thread_ts and degenerates
to a top-level channel post; in that case the registry has no entry
for the fake thread_ts, and getSlackBotToken(channelId, fakeTs) can
fall back to the first registered workspace token in multi-workspace
installs. Use getWorkspaceBotTokenForChannel(channelId) first so the
posted Block Kit / plain-text question lands with the token bound to
the actual channel.
Addresses Codex review comment on PR #212.1 parent 6da6431 commit 1d4e434
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
653 | 665 | | |
654 | 666 | | |
655 | 667 | | |
| |||
0 commit comments