From d5daf1eb05d625c28d7de927bb499304e582994b Mon Sep 17 00:00:00 2001 From: devinfoley <139239+devinfoley@users.noreply.github.com> Date: Thu, 3 Dec 2026 23:03:37 +0000 Subject: [PATCH] fix(notifications): stop toasting "changed the title" on task updates Title edits are routine (often automatic agent titling) and produced noisy " changed the title" toasts. The server no longer projects titleChanged into toast details, and the UI no longer describes title changes, so a title-only update produces no toast. Co-Authored-By: Claude Opus 5.5 --- server/src/__tests__/live-events-toast.test.ts | 2 +- server/src/realtime/activity-toast-details.test.ts | 7 ++++++- server/src/realtime/activity-toast-details.ts | 2 +- ui/src/context/LiveUpdatesProvider.test.ts | 7 +++++++ ui/src/context/LiveUpdatesProvider.tsx | 2 +- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/server/src/__tests__/live-events-toast.test.ts b/server/src/__tests__/live-events-toast.test.ts index 352a5e0bece..1fd34deded5 100644 --- a/server/src/__tests__/live-events-toast.test.ts +++ b/server/src/__tests__/live-events-toast.test.ts @@ -337,7 +337,7 @@ describe("authenticated activity notifications", () => { } }); await third; expect(messages[2].payload.taskIdentityChanged).toBe(true); - expect(messages[2].payload.notificationDetails).toEqual({ titleChanged: true }); + expect(messages[2].payload.notificationDetails).toEqual({}); if (deploymentMode === "authenticated") expect(JSON.stringify(messages[2].payload)).not.toContain("Secret new title"); } finally { socket.terminate(); diff --git a/server/src/realtime/activity-toast-details.test.ts b/server/src/realtime/activity-toast-details.test.ts index 9444ad60ad8..4b1d3a26ff0 100644 --- a/server/src/realtime/activity-toast-details.test.ts +++ b/server/src/realtime/activity-toast-details.test.ts @@ -30,9 +30,14 @@ describe("task notification details", () => { it("supports older activity without change receipts and rejects unknown enum values", () => { expect(activityToastDetails("issue.updated", { status: "blocked", assigneeAgentId: null, title: "New name" })) - .toEqual({ status: "blocked", assignment: "unassigned", titleChanged: true }); + .toEqual({ status: "blocked", assignment: "unassigned" }); expect(activityToastDetails("issue.updated", { status: "private text", priority: "private text", executionRunId: "run-private-id" })).toEqual({}); expect(activityToastDetails("issue.updated", { status: "done", changes: {} })).toEqual({}); expect(activityToastDetails("issue.updated", null)).toEqual({}); }); + + it("does not announce title changes", () => { + expect(activityToastDetails("issue.updated", { changes: { title: { from: "Old", to: "New" } } })).toEqual({}); + expect(activityToastDetails("issue.updated", { title: "New name" })).toEqual({}); + }); }); diff --git a/server/src/realtime/activity-toast-details.ts b/server/src/realtime/activity-toast-details.ts index b17912010a0..21bf7dff09b 100644 --- a/server/src/realtime/activity-toast-details.ts +++ b/server/src/realtime/activity-toast-details.ts @@ -36,7 +36,7 @@ export function activityToastDetails(action: unknown, value: unknown): Record typeof next(key) === "string"); result.assignment = assigned ? "reassigned" : "unassigned"; } - if (changed("title")) result.titleChanged = true; + // Title edits are routine (often automatic agent titling), so they are never announced. if (changed("description")) result.descriptionChanged = true; return result; } diff --git a/ui/src/context/LiveUpdatesProvider.test.ts b/ui/src/context/LiveUpdatesProvider.test.ts index 635f18129f8..224dd395a8c 100644 --- a/ui/src/context/LiveUpdatesProvider.test.ts +++ b/ui/src/context/LiveUpdatesProvider.test.ts @@ -2475,6 +2475,13 @@ describe("activity toast attribution", () => { expect(build(new QueryClient(), "company", { ...payload, action: "issue.updated", notificationDetails: details }, viewer)).toBeNull(); } }); + it("does not announce title changes", () => { + for (const details of [{ titleChanged: true }, { title: "Renamed task" }]) { + expect(build(new QueryClient(), "company", { ...payload, action: "issue.updated", notificationDetails: details }, viewer)).toBeNull(); + } + const toast = build(new QueryClient(), "company", { ...payload, action: "issue.updated", notificationDetails: { titleChanged: true, priority: "high" } }, viewer); + expect(toast?.body).toBe("Alex Example set priority to high"); + }); it("does not fall back to raw details when the server projected an empty update", () => { expect(build(new QueryClient(), "company", { ...payload, action: "issue.updated", notificationDetails: {}, details: { status: "done" } }, viewer)).toBeNull(); }); diff --git a/ui/src/context/LiveUpdatesProvider.tsx b/ui/src/context/LiveUpdatesProvider.tsx index 2f2321400ec..7cc65ed4571 100644 --- a/ui/src/context/LiveUpdatesProvider.tsx +++ b/ui/src/context/LiveUpdatesProvider.tsx @@ -1206,7 +1206,7 @@ function describeIssueUpdate( } else if (details.assignment === "unassigned" || details.assigneeAgentId === null || details.assigneeUserId === null) { changes.push("unassigned the task"); } - if (details.titleChanged === true || typeof details.title === "string") changes.push("changed the title"); + // Title edits are routine (often automatic agent titling), so they never toast on their own. if (details.descriptionChanged === true || typeof details.description === "string") changes.push("changed the description"); return changes.length > 0 ? changes.join(", ") : null; }