Skip to content

Commit deb2ecb

Browse files
fix(mobile): clear the previous pass's alert before staging agent activity
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 1ed0ae2 commit deb2ecb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/mobile/src/features/showcase/stageShowcaseAgentActivity.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export async function stageShowcaseAgentActivity(
2525
ios: { allowAlert: true, allowBadge: true, allowSound: true },
2626
});
2727
if (!permission.granted) return `notification permission ${permission.status}`;
28+
// A previous appearance's pass left its alert delivered; it would stack
29+
// under the new one.
30+
await Notifications.dismissAllNotificationsAsync();
2831

2932
if (Platform.OS === "android") {
3033
return (

0 commit comments

Comments
 (0)