Repository navigation
Fix workspace unread dismissal on explicit tab focus - #1001
lawrencecchen wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughModified TabManager to conditionally mark panel-level unread notifications as read only when unread exists, then proceed to tab-level checks. Removed guard blocking flash triggers when unread notifications are absent. Added test case validating that selecting a workspace marks surface-less notifications as read. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR fixes a regression where workspace-level unread notifications ( Changes:
Confidence Score: 5/5
Last reviewed commit: 740762d |
| } | ||
| func testNotificationIndexesUpdateAfterReadAndClearMutations() { |
There was a problem hiding this comment.
Add a blank line between test methods for consistency with surrounding tests:
| } | |
| func testNotificationIndexesUpdateAfterReadAndClearMutations() { | |
| } | |
| func testNotificationIndexesUpdateAfterReadAndClearMutations() { |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Summary
surfaceId == nil)AppDelegate.sharedandAppFocusState.overrideIsFocusedafter the regression test so the suite stays order-independentTesting
xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux-unit -configuration Debug -destination 'platform=macOS' -derivedDataPath /Users/lawrencechen/Library/Developer/Xcode/DerivedData/cmux-task-focus-tab-dismiss-regression-red test -only-testing:cmuxTests/NotificationDockBadgeTests/testSelectingWorkspaceMarksSurfaceLessNotificationRead(fails on commit12543dbbe^)xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux-unit -configuration Debug -destination 'platform=macOS' -derivedDataPath /Users/lawrencechen/Library/Developer/Xcode/DerivedData/cmux-task-focus-tab-dismiss-regression-green test -only-testing:cmuxTests/NotificationDockBadgeTests/testSelectingWorkspaceMarksSurfaceLessNotificationRead./scripts/codex-review.sh /Users/lawrencechen/fun/cmuxterm-hq/worktrees/task-focus-tab-dismiss-regression2(0 findings)Regression Source
mainalready reverted the broader change in a7cef78, but that still left the workspace-level unread dismissal case uncoveredSummary by cubic
Fixes a regression where workspace-level unreads (surfaceId = nil) were not dismissed when explicitly focusing a workspace tab. Adds a regression test to lock this behavior and resets global state to keep tests order-independent.
Written for commit 740762d. Summary will update on new commits.
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests