How Slack Rebuilt Notifications 📣
Slack replaced four conflicting desktop/mobile notification preference systems with one unified model that separates what to be notified about (All new posts, Mentions, Mute) from how notifications arrive (independent desktop and mobile push toggles). To keep rollback safe, a new desktop_push_enabled pref was backfilled from existing "off" settings. Legacy "off" was then reinterpreted at read time as Mentions with push disabled, rather than rewriting stored values. Lessons include read-time fallbacks so push-disabled always means no push, and storing explicit per-platform values instead of a sync parameter. After launch, settings engagement rose 5x and per-channel overrides declined.
Related posts
- Building Android Conversation Bubbles
Slack Engineering mediumAdeptSlack added Android 11 Conversation Bubbles for DMs on top of MessagingStyle notifications, Sharing Shortcuts and BubbleMetadata. Shortcut icons are generated asynchronously via JobScheduler to stay within background execution limits, and a trampoline Activity routes between share, launcher and Bubble entry points. Bubble launches are detected by checking for a 'TaskVirtualDisplay' display name. Fixes include skipping notification cancellation while a Bubble is active, re-emitting the active workspace on Bubble pause to keep the single websocket correct, and gating Bubbles off in Work Profiles via UserManager.isManagedProfile() due to an Android 11 bug affecting about 5% of users.
- Slack Consolidate: a slackbot built with Python and Supabase
Supabase mediumAdeptA Python Slack bot polls watched channels via conversations.history and reposts new messages to consolidated destination channels. Supabase Postgres tables hold the channel routing config and act as a dedup buffer. The slack_watcher table's primary key on (channel_id, ts, ts_ms) makes inserts fail for already-seen messages, so only new ones get forwarded. The guide covers the Slack app manifest and OAuth scopes, the table schemas, env setup, and the full polling loop, which uses a 1.4s delay to stay under Slack Tier 3 rate limits and reloads the channel list hourly.
- Slack Overflow: How We Scaled Slack to Support 1000s of Developers
Railway mediumAdeptRailway built a two-way bridge between Slack Connect channels and its in-house Help Station support tool, auto-creating channels when customers hit growth thresholds. Early assumptions failed: external Slack Connect users can't invoke the host's slash commands, a "!support" workaround went unused, and Socket Mode silently stopped delivering messages after deploys. The fix was to thread every message by default, classify intent as sales or support with GPT-4o-mini, let employees impersonate so replies come from real people, switch Bolt to HTTP routes, and run message processing through Temporal workflows with idempotent activities so crashes don't lose messages. Railway credits Slack with 50x better engagement and 8x faster response times than email, and is opening Slack Connect to all Pro teams.
- The Query Strikes Again
Slack Engineering mediumAdeptA customer's bulk removal of users triggered Slack's "forget user" async job, which fanned out into a huge number of "leave channel" jobs. These hammered a single Vitess shard holding 6% of thread-subscription data. Replication lag and OOM-killed MySQL primaries caused a promote-replace loop, because new replicas could not catch up from backup under the write load and automation deprovisioned them as unhealthy. Mitigations were manually provisioning larger replicas, scoping the job's queries and UPDATEs to the single channel being left, skipping client notifications for deactivated users, and temporarily disabling Thread View. Long-term fixes include fixing the replacement edge case, adding query throttling and circuit breakers (with contributions upstream to Vitess), and restructuring the job to avoid per-channel fan-out.
- Managing Focus Transitions in Slack
Slack Engineering mediumAdeptSlack built FocusTransitionManager, a React Context-based coordinator that lets sender components request focus moves via transitionFocusTo({focusKey}) and receiver components claim them via shouldTransitionFocus, so keyboard and screen-reader users don't lose focus when React re-renders remove the focused element. Extensions include focusMetadata for targeting specific items, forceFocus for non-keyboard users, an additionalCondition callback to defer focus until data loads, timeouts to reset stale requests, and first-request-wins handling of concurrent requests. It was adopted across 100+ user flows within months, wired into the routing layer to focus the likely next action in each view, and built into Modal so all menus, popovers and modals restore focus reliably.