Skip to content

feat(slack): sticky thread routing — bypass @mention in active threads#28902

Closed
sourman wants to merge 5 commits intoopenclaw:mainfrom
sourman:feat/slack-sticky-thread-routing
Closed

feat(slack): sticky thread routing — bypass @mention in active threads#28902
sourman wants to merge 5 commits intoopenclaw:mainfrom
sourman:feat/slack-sticky-thread-routing

Conversation

@sourman
Copy link
Contributor

@sourman sourman commented Feb 27, 2026

atlasagent and others added 5 commits February 27, 2026 12:11
When a user has recently interacted in a Slack thread, route follow-up
messages directly to the bot without requiring an @mention. This reduces
friction in ongoing conversations by tracking thread activity with a
configurable TTL (stickyThreadTtlMs).

Adds a new sticky-threads module, config schema fields, and integration
into the monitor message pipeline.

Closes openclaw#16133

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ype replyToMode

DM threads were being recorded in the sticky store even though
implicitMention already guards DMs. Additionally, the monitor resolved
replyToMode once at startup ignoring per-chat-type overrides
(replyToModeByChatType.direct / dm.replyToMode).

- Add !prepared.isDirectMessage guard to sticky thread recording
- Resolve replyToMode per chat type in prepare.ts, pass through
  PreparedSlackMessage so dispatch.ts uses the effective value
- Use prepared.replyToMode instead of ctx.replyToMode in dispatch.ts
  for thread targets, reply plan, and sticky recording
- Fix test fixture to include top-level replyToMode on account

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Cleaned up duplicate imports that were accidentally left
during the merge conflict resolution.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
These new properties were added to SlackMonitorContext but tests
were not updated to include them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sourman
Copy link
Contributor Author

sourman commented Feb 27, 2026

Addressed in #29067 - session-based sticky routing + context bloat fixes

@sourman sourman closed this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants