Skip to content

Cherry-pick 93ac2b43f: feat(slack): per-thread session isolation for DM auto-threading#1429

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/93ac2b43f-slack-thread-session-isolation
Mar 15, 2026
Merged

Cherry-pick 93ac2b43f: feat(slack): per-thread session isolation for DM auto-threading#1429
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/93ac2b43f-slack-thread-session-isolation

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick of upstream commit 93ac2b43f — "feat(slack): per-thread session isolation for DM auto-threading (openclaw#26849)"

Conflicts resolved:

  • CHANGELOG.md — removed (deleted in fork)
  • Fixed OpenClawConfigRemoteClawConfig in test files

Part of #677

…claw#26849)

* feat(slack): create thread sessions for auto-threaded DM messages

When replyToMode="all", every top-level message starts a new Slack thread.
Previously, only subsequent replies in that thread got an isolated session
(via 🧵<threadTs> suffix). The initial message fell back to the base
DM session, mixing context across unrelated conversations.

Now, when replyToMode="all" and a message is not already a thread reply,
the message's own ts is used as the threadId for session key resolution.
This gives the initial message AND all subsequent thread replies the same
isolated session.

This enables per-thread session isolation for Slack DMs — each new message
starts its own thread and session, keeping conversations separate.

* Slack: fix auto-thread session key mode check and add changelog

---------

Co-authored-by: Tak Hoffman <[email protected]>
(cherry picked from commit 93ac2b4)
@alexey-pelykh alexey-pelykh merged commit 33fe49d into main Mar 15, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/93ac2b43f-slack-thread-session-isolation branch March 15, 2026 14:27
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.

2 participants