Commit a109625
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 0851cd4 commit a109625
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
663 | 675 | | |
664 | 676 | | |
665 | 677 | | |
| |||
0 commit comments