Skip to content

The agent that grows with you

style(desktop): blank line before final return in turn-done helper (eslint --fix)

Brooklyn Nicholson530651698d31
diff --git a/apps/desktop/src/lib/turn-done-notification-body.test.ts b/apps/desktop/src/lib/turn-done-notification-body.test.ts
index 135505e8660..50ed6d7f7af 100644
--- a/apps/desktop/src/lib/turn-done-notification-body.test.ts
+++ b/apps/desktop/src/lib/turn-done-notification-body.test.ts
@@ -10,6 +10,7 @@ import {
// Xn(n?.content || e.title || "Message complete.", 140)
function legacyStudioBody(sessionTitle: string, assistantContent?: string): string {
const raw = assistantContent || sessionTitle || TURN_DONE_BODY_FALLBACK
+
return raw.length <= TURN_DONE_BODY_MAX ? raw : raw.slice(0, TURN_DONE_BODY_MAX)
}
diff --git a/apps/desktop/src/lib/turn-done-notification-body.ts b/apps/desktop/src/lib/turn-done-notification-body.ts
index d9301a07c93..47b55e9625a 100644
--- a/apps/desktop/src/lib/turn-done-notification-body.ts
+++ b/apps/desktop/src/lib/turn-done-notification-body.ts
@@ -14,5 +14,6 @@ export function turnDoneNotificationBody(
): string {
const reply = (content ?? '').trim()
const source = reply || fallback.trim() || TURN_DONE_BODY_FALLBACK
+
return source.length <= TURN_DONE_BODY_MAX ? source : source.slice(0, TURN_DONE_BODY_MAX)
}