feat(desktop): add optional macOS dock bounce on completion#1581
feat(desktop): add optional macOS dock bounce on completion#1581mawlicious wants to merge 3 commits intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

What Changed
Adds a macOS-only desktop setting that bounces the Dock icon when a thread finishes while T3 Code is in the background.
The bounce is triggered from normalized thread/session state instead of provider-specific logic. It only requests attention when work transitions from active to finished and the app is not focused.
Why
When T3 Code is in the background, there is currently no desktop-level cue that a response has finished.
This adds a small attention signal without expanding scope into notifications, badges, or cross-platform behavior.
UI Changes
Added a new macOS-only setting in General Settings:
Completion dock bounceAttached:
Checklist
Note
Medium Risk
Adds new cross-process IPC and a thread-state watcher that can trigger OS-level attention requests; low blast radius but sensitive to state transition/dedup logic and platform gating.
Overview
Adds an optional macOS-only “Completion dock bounce” setting (
dockBounceOnCompletion, defaulttrue) and surfaces it in the General settings panel.Implements a new desktop bridge API (
requestUserAttention) wired through adesktop:request-user-attentionIPC handler that bounces the Dock icon only when no app window is focused.Introduces
DesktopCompletionAttentionlogic that watches thread/session state transitions, deduplicates per thread/turn, and triggers the bounce when work finishes while the app is in the background; includes migration/test coverage for the new setting.Written by Cursor Bugbot for commit afccbfb. This will update automatically on new commits. Configure here.
Note
Add optional macOS Dock bounce on thread completion in desktop app
dockBounceOnCompletionsetting (defaulttrue) that triggers an informational Dock bounce when a thread finishes while no app window is focused, on macOS only.DesktopCompletionAttentioncomponent in__root.tsxthat monitors thread state changes and callswindow.desktopBridge.requestUserAttention()at most once per completed turn.desktopCompletionAttention.ts, which normalizes thread state to detect working→complete transitions.desktop:request-user-attentioninmain.tsandpreload.ts, returning a boolean indicating whether the bounce was triggered.Macroscope summarized afccbfb.
2026-03-30.18-33-21.mp4