Skip to content

feat: thread participation tracking for Slack#2

Open
Utkarshbhimte wants to merge 20 commits intomainfrom
feat/thread-participation-tracking
Open

feat: thread participation tracking for Slack#2
Utkarshbhimte wants to merge 20 commits intomainfrom
feat/thread-participation-tracking

Conversation

@Utkarshbhimte
Copy link

Adds thread participation tracking so the bot processes replies in threads it has participated in (not just threads it started).

Changes

  • src/slack/monitor/context.ts: Added participatedThreads: Set<string>, recordThreadParticipation(), and hasParticipatedInThread()
  • src/slack/monitor/message-handler/prepare.ts: Updated implicitMention to check ctx.hasParticipatedInThread()

This fixes the issue where the bot would miss replies in threads it joined but didn't start.

pradhaan-prop and others added 3 commits February 17, 2026 19:30
When the bot replies in a Slack thread it didn't start, it now tracks that
thread. Future messages in tracked threads are treated as implicit mentions,
so the bot continues participating in conversations it joined.

Changes:
- context.ts: Added participatedThreads Set with record/check methods
- prepare.ts: Extended implicitMention to check thread participation
- dispatch.ts: Records thread participation after delivering replies
- Wrap threadTs with String() in dispatch.ts to handle number type from MessageThreadId
- Remove participatedThreads Set from public SlackMonitorContext type (accessor functions are sufficient)
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments