The best way to control Claude Code, Codex and more from any computer or phone
perf(web): notification settings compile with the React Compiler (#20504)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 18:53 UTC
0a453f00d5944edfba16d04b0d23997b61ecc237
2 files changed
+11
-11
apps/web/reactCompiledFiles.ts
+1
@@ -79,4 +79,5 @@ export const REACT_COMPILED_FILES = [
79
"apps/web/src/components/settings/useHostConnectionChecks.ts",
80
"apps/web/src/components/settings/useProjectScriptSettings.ts",
81
"apps/web/src/components/settings/SnapShotSetupDialog.tsx",
82
+ "apps/web/src/components/settings/NotificationSettings.tsx",
83
] as const;
apps/web/src/components/settings/NotificationSettings.tsx
+10
-11
@@ -1,3 +1,4 @@
1
+import { settlePromise } from "@t3tools/client-runtime/state/runtime";
2
import { useState } from "react";
3
4
import {
@@ -46,21 +47,19 @@ export function NotificationSettings() {
47
return;
48
}
49
setRequesting(true);
49
- try {
50
- const permission = await Notification.requestPermission();
51
- if (permission !== "granted") {
52
- setPermissionMessage(
53
- "Allow notifications in your browser or system settings, then choose this option again. Sound only is still available.",
54
- );
55
- return;
56
- }
57
- } catch {
50
+ const permission = await settlePromise(() => Notification.requestPermission());
51
+ setRequesting(false);
52
+ if (permission._tag === "Failure") {
53
setPermissionMessage(
54
"Notifications are unavailable in this browser. Sound only is still available.",
55
);
56
return;
62
- } finally {
63
- setRequesting(false);
57
+ }
58
+ if (permission.value !== "granted") {
59
+ setPermissionMessage(
60
+ "Allow notifications in your browser or system settings, then choose this option again. Sound only is still available.",
61
+ );
62
+ return;
63
}
64
}
65
updateSettings({ notificationMode: value });