feat(slack): session link auto-post + aside filter (merge PR #1 with CI fix)#3
Merged
jld-adriano merged 5 commits intomainfrom Mar 31, 2026
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
… post Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Merges the two features from PR #1 (
feat/slack-session-link-auto-post) intomain, on top of PR #2's GitHub-hosted runner CI fix. The merge resolved CI workflow conflicts by keeping PR #2's runner configuration.Two changes (29 lines added across 2 files):
Session link auto-post (
src/slack/monitor/message-handler/dispatch.ts): When a new thread session starts (IsFirstThreadTurn && message.thread_ts), posts a🔗 Sessionlink to the thread usingOPENCLAW_PUBLIC_URL. Fire-and-forget (.catchswallows errors). No-op ifOPENCLAW_PUBLIC_URLis unset."aside" prefix filter (
src/slack/monitor/message-handler.ts): Messages starting withaside(case-insensitive, after stripping Slack@mentions) are silently dropped before debouncing/dispatch. Lets users have side conversations in threads without triggering the bot.Review & Testing Checklist for Human
trackEvent?.()and beforethreadTsResolver.resolve()in the message handler's return function (~line 119). Confirm this is early enough to prevent any processing (debounce, dispatch, etc.) for aside messages.IsFirstThreadTurncheck andchat.postMessagecall are inserted after identity resolution and before direct-message handling. Confirmprepared.ctxPayload.IsFirstThreadTurnis reliably set by the prepare step for new thread sessions..github/workflows/*.ymlfiles by takingmain's version (GitHub-hosted runners from PR ci: switch from Blacksmith to GitHub-hosted runners #2). Confirm no PR ci: switch from Blacksmith to GitHub-hosted runners #2 changes were lost.aside helloin a bot thread → bot should not respond; (2) send@Bot aside hello→ bot should not respond; (3) start a new thread → bot should post a🔗 Sessionlink before its reply; (4) verifyOPENCLAW_PUBLIC_URLis set in the pod env.Notes
\bword boundary in/^aside\b/iprevents false matches on words like "asides" or "asidebar".OPENCLAW_PUBLIC_URLtodeploy.tsis already merged.Link to Devin session: https://app.devin.ai/sessions/460eec68d4c74aaa8c85af43c562f11f
Requested by: @jld-adriano