Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a narrowly scoped web notification bug fix: one guard suppresses desktop popups while focused, with sounds, background alerts, and existing in-app behavior preserved. The accompanying regression tests cover the affected event types and no product defaults or static-analysis settings are changed. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe coordinator now suppresses desktop notifications while the document has focus. Tests cover thread completion, approval, input-required, and error events, including duplicate prevention and background notification payloads. ChangesThread notification behavior
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Desktop alerts are suppressed while the app is focused, while background alerts and sounds retain their intended behavior. The change is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Reviewed the docstring coverage warning: no documentation change is needed for this one-line guard in an existing private component. The repository guidance keeps discoverable behavior in source and tests; the regression test covers the focus behavior. Keeping the fix scoped as-is. |
789f41f to
727b2fe
Compare
Dismissing prior approval to re-evaluate 727b2fe
|
Superseded by #11569, merged into main at 6e5e986. Its desktop notification guard already suppresses pop-ups while the app is visible and focused. I ran our six regression cases with the merged coordinator and its existing tests: all 22 passed, covering focused suppression, no replay after blur, background delivery, preserved sounds, and the active thread with in-app alerts enabled. Closing this duplicate PR; the branch is preserved. |
What Changed
Skip desktop pop-ups when the app window has focus, using the existing shared web/desktop notification path. Background notifications, opt-in in-app alerts, and notification sounds keep their current behavior.
Why
Completion, approval, input, and failure pop-ups could appear even while the user was working in T3 Code. A single
document.hasFocus()check prevents these interruptions while still recording the event, so skipped alerts do not replay after the window loses focus.Validation
Checklist
Model: GPT-6. Harness: Codex.
Summary by CodeRabbit