/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
apps/api/src/app/agents/conversation-runtime/runtime/platform-thread.util.ts
7 строк
391 B
Adam Chmara
refactor(api-service): restructure agents module into ingress/runtime/egress architecture (#11361)
30 май 2026, 00:55
Не верифицирован
30 май 2026, 00:55
01c40bb
Код
Авторство
О чём код?
import type { Thread } from 'chat'; export function applyPlatformThreadIdToThread(thread: Thread, platformThreadId: string): void { // Chat SDK currently gives top-level Slack DMs an empty-root thread id (`slack:D...:`). // Patch the in-memory handle before posting fallback replies so Slack receives a real thread root. (thread as unknown as { id: string }).id = platformThreadId; }