You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A plain reply could wake a bot that had left a Slack thread. After the service confirms a new leave, plain replies stay quiet. A new direct @mention brings the bot back.
Files
Added
Deleted
Net
Test
4
$\color{#1a7f37}{\Huge{\mathbf{+}}}$608
$\color{#cf222e}{\Huge{\mathbf{−}}}$19
$\color{#1a7f37}{\Huge{\mathbf{+}}}$589
Prod
17
$\color{#1a7f37}{\Huge{\mathbf{+}}}$154
$\color{#cf222e}{\Huge{\mathbf{−}}}$145
$\color{#1a7f37}{\Huge{\mathbf{+}}}$9
What Changed
Check the saved leave before starting a new chat or sending to an existing one. Honor a direct mention in the current reply. Save muted outcomes so a retry after restart can finish without signaling pickup.
Why
Fresh deliveries could bypass the mute check and start work after the bot left.
Linked Issue
N/A
Visual Proof
Seeded Slack bot thread
Testing
Seeded macOS runs with Claude and Codex covered replies, leave, restart, duplicate silence, and reopening.
Linux regression tests covered muted replays in both reply modes, automation recovery, and sidebar updates at 100 and 1,000 panes and 850 and 8,500 rows.
Performance
In builds with a main-owned sidebar, reopening a muted thread skipped the pane scan and row rebuild when only the saved link changed. The row test measured zero serializations at both sizes, down from 850 and 8,500.
Risk
Medium. Older services can omit the mention flag and keep their existing admission behavior. A revert keeps saved leave records readable.
AI Disclosure
N/A
Review
Ordinary replies and unrelated threads retain their existing behavior.
Agent skill upstream boundary
No upstream skill-installer source was copied or translated.
Notes
The full fix applies to leaves confirmed after the Slack service update. Threads left earlier can still show activity.
No actionable comments were generated in the recent review.
Walkthrough
Connector delivery contracts and mute handling now support start requests with mention metadata and accepted results marked as muted or in-turn. Dispatch records start and send requests and shares automation recording logic. Folder writes limited to external-conversation links are marked so sidebar listeners can skip unrelated updates. New tests cover delivery behavior and sidebar unmute performance.
Merge Risk: Minimal · up to ea9d8
This change keeps muted Slack threads quiet after the bot leaves and avoids unnecessary sidebar work when only conversation links change. No concrete defect remains, though full CI had not finished at review time.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "Keep left Slack threads quiet" matches the main change: after a bot leaves a Slack thread, fresh deliveries and replies stay muted unless a direct mention returns the bot. The title is shor…
Description check
The description follows the template's main sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Keep left Slack threads quiet" matches the main change: after a bot leaves a Slack thread, fresh deliveries and replies stay muted unless a direct mention returns the bot. The title is short, specific, and states the primary behavior. It does not name the mechanism (mute check on fresh starts, saved leave check, muted acknowledgements), but that detail is not required in a title.
Full details: Description check
Explanation
The description follows the template's main sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. The ELI5, Why, Performance, Risk, and Visual Proof sections are substantive. The Linked Issue section is marked N/A, which the template does not allow for outside contributors. The Risk section names a level and a revert path. The Testing section lists validation but does not tick the manual-test or test-anti-pattern checkboxes. The Checklist marks Full CI as incomplete. The Performance section explains the measured result.
Resolution
Consider adding a linked issue or confirming the author is a maintainer, since the template requires one for outside contributors. Tick or explain the unchecked Testing items (manual test, anti-pattern check). Confirm the Performance line is complete: 'None, because' is followed by a measured result rather than a single sentence.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
main's stablyai#49861 moved the thread mute from sends to requests (a start or a
send) and marks a request it silences as muted. Merged with it, this
branch no longer compiled (SendDelivery in the two new functions) and
its tests expected the old result.
- linkedStep and unmentioned take a RequestDelivery. A reply posted
after the bot's turn ended comes as a fresh start, so the setting
silences a start that says it has no mention and keeps a legacy start
whose cloud does not say, as the thread mute does.
- A reply the setting silences now reports muted, as a left thread's
does, so it is settled without a turn.
- With main's additions the admission test went over the 800-line
limit, so its shared harness moves to
connector-thread-mute-admission.test-fixture.ts and the mention-only
cases to connector-thread-mute-mention-only.test.ts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
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.
ELI5
A plain reply could wake a bot that had left a Slack thread. After the service confirms a new leave, plain replies stay quiet. A new direct @mention brings the bot back.
What Changed
Check the saved leave before starting a new chat or sending to an existing one. Honor a direct mention in the current reply. Save muted outcomes so a retry after restart can finish without signaling pickup.
Why
Fresh deliveries could bypass the mute check and start work after the bot left.
Linked Issue
N/A
Visual Proof
Seeded Slack bot thread
Testing
Performance
In builds with a main-owned sidebar, reopening a muted thread skipped the pane scan and row rebuild when only the saved link changed. The row test measured zero serializations at both sizes, down from 850 and 8,500.
Risk
Medium. Older services can omit the mention flag and keep their existing admission behavior. A revert keeps saved leave records readable.
AI Disclosure
N/A
Review
Ordinary replies and unrelated threads retain their existing behavior.
Agent skill upstream boundary
Notes
The full fix applies to leaves confirmed after the Slack service update. Threads left earlier can still show activity.
Checklist