Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(notifications): handle missing notification permission gracefully

Steven Enamakel9cddded59505
diff --git a/app/src/lib/nativeNotifications/service.ts b/app/src/lib/nativeNotifications/service.ts
index a04834d41a..df597a4692 100644
--- a/app/src/lib/nativeNotifications/service.ts
+++ b/app/src/lib/nativeNotifications/service.ts
@@ -166,8 +166,7 @@ function dispatchAndMaybeBanner(
}
function truncate(input: string, max: number): string {
- if (input.length <= max) return input;
- return `${input.slice(0, max - 1)}…`;
+ return truncateText(input, max);
}
/**