Skip to content

Keep left Slack threads quiet - #49861

Merged
brennanb2025 merged 22 commits into
mainfrom
brennanb2025/leave-thread-648
Nov 30, 2026
Merged

brennanb2025 merged 22 commits into
mainfrom
brennanb2025/leave-thread-648

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

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

Seeded thread showing the leave command and a reply after a new mention

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.

Checklist

  • Regression and performance cases passed
  • Seeded app evidence attached
  • Full CI complete

@brennanb2025
brennanb2025 marked this pull request as ready for review November 28, 2026 10:41
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e2e961a6-daba-41a0-b6e7-1fd9986a3260
Commits

Reviewing files that changed from the base of the PR and between 55925ff and ea9d827.

Files selected for processing: 4

  • src/main/connector-cloud/connector-deliveries.ts
  • src/main/connector-cloud/connector-delivery-acks.ts
  • src/main/connector-cloud/connector-delivery-batches.ts
  • src/main/connector-cloud/connector-thread-mute-admission.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ee25d467-b665-452f-a769-3367d25d60d8
Commits

Reviewing files that changed from the base of the PR and between cca6164 and 55925ff.

Files selected for processing: 20

  • cloud/packages/connector-contract/src/delivery-messages.ts
  • cloud/packages/connector-contract/src/share-messages.test.ts
  • src/main/connector-cloud/connector-deliveries.ts
  • src/main/connector-cloud/connector-delivery-acks.ts
  • src/main/connector-cloud/connector-delivery-automations.ts
  • src/main/connector-cloud/connector-machine.ts
  • src/main/connector-cloud/connector-thread-mute-admission.test.ts
  • src/main/connector-cloud/connector-thread-mute.ts
  • src/main/external-conversations/external-conversation-delivery-receipts.ts
  • src/main/external-conversations/external-conversation-types.ts
  • src/main/persistence/loading-store/profile-writing/write-scheduling.ts
  • src/main/persistence/restoring-sessions/folder-workspace-write-options.ts
  • src/main/runtime/sidebar-inputs/orca-runtime-sidebar-temporal.ts
  • src/main/runtime/sidebar-inputs/sidebar-inputs-feed-domains.ts
  • src/main/runtime/sidebar-inputs/temporal/thread-unmute-sort-stamps.performance.test.ts
  • src/main/runtime/sidebar-inputs/workspace-rows/thread-unmute-workspace-feed.performance.test.ts
  • src/main/runtime/sidebar-inputs/workspace-rows/workspace-rows-producer.ts
  • src/main/runtime/workspaces/workspace-metadata.ts
  • src/shared/connectors/connector-cloud-contract.ts
  • src/shared/connectors/connector-cloud-schemas.ts
Files with no reviewable changes: 1

  • src/main/runtime/workspaces/workspace-metadata.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@brennanb2025
brennanb2025 marked this pull request as draft November 28, 2026 11:10
@brennanb2025
brennanb2025 marked this pull request as ready for review November 30, 2026 02:13
@brennanb2025
brennanb2025 merged commit 530c232 into main Nov 30, 2026
108 checks passed
yeong-chae added a commit to yeong-chae/orca that referenced this pull request Nov 30, 2026
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]>
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.

1 participant