Slack thread replies invisible when polling (self-hosted/local dev only)

Offen
#23 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
58/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
backend

Rechercherichtung

The bug is in the Slack polling fallback: lib/slack/poller.ts calls only conversations.history, which omits plain in-thread replies. Find where the poller collects messages and where getTicketByThreadId is used, then read Slack's conversations.replies behaviour for parent messages with reply_count > 0. Done means a plain thread reply on an existing ticket is appended when polling, without duplicating messages already handled by the webhook path.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

backend bug help wanted

Copied from DeadantCo/answerLoops#13 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/17 — originally opened by @NathanTarbert on 2026-08-03

What's broken

When AnswerLoops polls Slack (self-hosted deployments without a public URL, orgs on the slack_force_polling override, or anyone running the app locally against a real Slack workspace), a reply posted inside an existing ticket's thread never shows up on the ticket.

Root cause

The poller only calls Slack's conversations.history endpoint. That endpoint only returns top-level channel messages and thread replies explicitly broadcast to the channel (the "Also send to #channel" checkbox when replying in a thread) — by Slack API design, it never returns a plain in-thread reply.

This does not affect the managed cloud service. Production listens via Slack's Events API webhook, which sends a message event for every reply regardless of broadcast status — thread replies already work correctly there. This is specifically a gap in the polling fallback path.

Fix direction

Track thread parents (messages with reply_count > 0 returned by conversations.history) and additionally poll conversations.replies for each active thread, feeding new replies through the same append-to-existing-ticket logic (getTicketByThreadId) the webhook path already uses.

Where

lib/slack/poller.ts

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

Vorherrschende Sprache
TypeScript
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DeadantCo/answerLoopsdev

Alle Issues in DeadantCo/answerLoopsdev

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.