Repository navigation
fix(mobile): reuse current workspace on notification taps - #20310
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe host stack now accepts an optional Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk remains in the reviewed changes. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the main change, rationale, behavior boundaries, regression coverage, and validation results. It omits required template items, including a Linked Issue, Visual Proof or an explicit N/A explanation, checklist status, and AI Disclosure details where applicable. ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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.
✅ No new issues found.
Reviewed changes
navigateToHostStackRoutenow detects that the notification's session route is already the focused route in the committed host stack (matchingname,hostId, andworktreeId) and reuses it with a targetedSET_PARAMSdispatch instead of pushing a duplicate screen, returning an already-inactive controller.HostStackRootNavigation.dispatchaccepts the newSET_PARAMSaction shape (target= host-stack navigator key,source= focused route key);HostStackNavigationRoute.paramsgainsworktreeId.- Two navigation tests cover the reuse path (no push, exact action shape, inactive controller) and isolation when a different workspace is focused on the same host.
NotificationDeliverySectioncopy now reads "Skip alerts for this workspace only while Orca is open."- A new
push-receivetest pins that a foreground eligibility read overtaken by backgrounding does not suppress the push.
Verified SET_PARAMS in the installed @react-navigation/[email protected] merges params rather than replacing them, so existing name/created/warning route params survive; only paneKey is overwritten. The 5 related mobile suites pass (37 tests), and oxlint is clean on the changed files.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Tapping a notification for the workspace already open on mobile previously pushed another copy of that screen. Reuse the focused workspace route and update its params, preserving screen state while selecting the notification’s agent tab. Cold navigation and navigation to a different workspace retain the existing path.
Clarify that workspace suppression applies only while Orca is open. Existing policy already checks foreground app state; add regression coverage for backgrounding during asynchronous eligibility reads. No background suppression defect has been reproduced.
Validation: 4,513 mobile tests passed (3 skipped), typecheck and lint passed, Android arm64 release build passed. Navigation tests cover route identity reuse and different-workspace isolation; no device UI verification of the new navigation path yet.