Skip to content

Wip/thread mention only#11

Merged
John-Lin merged 1 commit into
masterfrom
wip/thread-mention-only
Apr 8, 2026
Merged

Wip/thread mention only#11
John-Lin merged 1 commit into
masterfrom
wip/thread-mention-only

Conversation

@John-Lin

@John-Lin John-Lin commented Apr 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

Drop the active_threads thread-owner mechanism. Previously the first user
to @mention the bot in a thread became its "owner" and could send plain
follow-ups, while every other participant had to @mention every turn —
an asymmetry that made multi-user threads awkward.

Now channel and thread messages are only handled via the app_mention
event, regardless of who started the thread. handle_message only handles
DMs. This makes participation rules uniform: anyone joining a thread plays
by the same gating as the original poster (@mention every turn). Memory
remains keyed by thread_ts, so once a participant @mentions, they share
the full thread history with everyone else in it.

- Remove self.active_threads dict and the seeding in handle_mention
- Simplify handle_message to only respond to channel_type == "im"
- Remove unused _is_bot_mentioned helper
- Tests: assert thread plain follow-ups are ignored even from the original
  mentioner; assert two users @mentioning the same thread share history
@John-Lin
John-Lin force-pushed the wip/thread-mention-only branch from ade353c to ee0f6d1 Compare April 8, 2026 17:25
@John-Lin
John-Lin merged commit 5cc81ce into master Apr 8, 2026
1 check passed
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.

1 participant