Description:
I am trying to implement a document review workflow where the user uploads a file and @mentions the agent in a Slack channel. I want the agent to process the file and send the initial review into a thread, with all subsequent discussions staying within that thread-scoped session.
Expected Behavior:
The entire interaction (from the first @mention + file upload to the final reply) should ideally be handled within or immediately transitioned to a thread-scoped session (... thread:ts) so that tool execution states and thinking traces are preserved for follow-up questions in the thread.
Actual Behavior & Findings:
- Context Split: When the 1st message arrives in the channel, OpenClaw processes it in the Channel's main session.
- Tool Execution: The doc-review tool call and thinking process occur in the main session.
- Thread Limbo: Although the reply is sent to a thread (via message.send(threadId=x) due to replyToMode: all), no actual
threadscoped session is created in the backend yet. - Amnesia: When the user replies @agent inside the new thread, OpenClaw initializes a new thread-scoped session. This session has no record of the previous tool calls or thinking traces from the main session, causing the agent to "re-process" or lose track of how the first reply was generated.
Relevant GitHub Issues found:
- Likely related to #4470 (Populate Slack thread sessions with existing history) or general session inheritance logic.
My Setup:
- OpenClaw Version: 2026.4.14 (323493f)
- Hosting: MacOS 13.7.8
- Providers: Minimax
Relevant Config (openclaw.json):
"slack": {
"enabled": true,
"mode": "socket",
"channels": {
"YOUR_CHANNEL_ID": {
"enabled": true,
"requireMention": true
}
},
"thread": {
"requireExplicitMention": true
},
"replyToModeByChatType": {
"channel": "all"
}
}
- Is this known issue?
- Are there any configs that I can try?
- Does later openclaw version has some fixes?