Skip to content

Commit 122c5f8

Browse files
fix(web): keep Windows thread notifications clickable until handled (#22520)
Co-authored-by: Yash Singh <[email protected]>
1 parent e856833 commit 122c5f8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/web/src/components/ThreadNotificationCoordinator.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
import { useEffect, useEffectEvent, useRef } from "react";
1818

1919
import { getClientSettings, useClientSettings } from "../hooks/useSettings";
20+
import { isWindowsPlatform } from "../lib/utils";
2021
import { useEnvironmentIds } from "../state/environments";
2122
import { environmentShell } from "../state/shell";
2223
import {
@@ -196,6 +197,8 @@ function EnvironmentNotifications({
196197
body: thread.title,
197198
tag: threadNotificationTag(environmentId, thread.id),
198199
silent: true,
200+
// Windows drops clicks after a toast moves into Notification Center.
201+
requireInteraction: kind === "completion" && isWindowsPlatform(navigator.platform),
199202
});
200203
onNotification(environmentId, notification);
201204
notification.addEventListener("click", () => {

0 commit comments

Comments
 (0)