From 0f36a88f41e36e93e50f146196353840e2def341 Mon Sep 17 00:00:00 2001 From: Devin Foley Date: Thu, 3 Dec 2026 20:54:56 -0800 Subject: [PATCH] fix(notifications): stop toasting "changed the title" on task updates (#23674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - The board shows live toast notifications when another person or agent changes a task. > - Each title edit makes a toast that says " changed the title". > - Agents often set or change task titles automatically. These toasts are noise and give no useful information. > - This pull request removes title changes from the toast details on the server and from the toast text in the UI. > - The benefit is fewer unhelpful notifications. Status, priority, assignment, and description changes still show. ## Linked Issues or Issue Description **Describe the bug** Users get toast notifications that only say " changed the title". **Steps to reproduce** 1. Open the board as a user. 2. Let another user or an agent change the title of a task. 3. See the toast " changed the title". **Expected behavior** A title change does not show a notification. Other changes in the same update still show. ## What Changed - `server/src/realtime/activity-toast-details.ts`: the projection does not set `titleChanged` any more. This also stops old cached UI bundles from showing the toast. - `ui/src/context/LiveUpdatesProvider.tsx`: `describeIssueUpdate` does not add "changed the title". A title-only update now makes no toast. - Tests: new UI and server tests for title-only and mixed updates. The existing tests now expect no `titleChanged` field. ## Verification - Red-green: the new UI test "does not announce title changes" failed before the fix and passes after it. - `cd ui && npx vitest run src/context/LiveUpdatesProvider.test.ts`: 140 passed. - `cd server && npx vitest run src/realtime/activity-toast-details.test.ts src/__tests__/live-events-toast.test.ts`: 19 passed. ## Risks - Low risk. Title changes do not show a toast any more. The task activity log still records them. ## Model Used - Claude Opus 5.5 (`claude-opus-5-5`), Anthropic, with tool use and code execution in Claude Code. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [ ] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details (the execution workspace assigned the branch name) - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes (no doc describes this toast) - [x] I have considered and documented any risks above - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: devinfoley <139239+devinfoley@users.noreply.github.com> 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 | 1 - ui/src/context/LiveUpdatesProvider.test.ts | 7 +++++++ ui/src/context/LiveUpdatesProvider.tsx | 1 - 5 files changed, 14 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..337dd25c665 100644 --- a/server/src/realtime/activity-toast-details.ts +++ b/server/src/realtime/activity-toast-details.ts @@ -36,7 +36,6 @@ export function activityToastDetails(action: unknown, value: unknown): Record typeof next(key) === "string"); result.assignment = assigned ? "reassigned" : "unassigned"; } - if (changed("title")) result.titleChanged = true; 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..5848887a169 100644 --- a/ui/src/context/LiveUpdatesProvider.tsx +++ b/ui/src/context/LiveUpdatesProvider.tsx @@ -1206,7 +1206,6 @@ 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"); if (details.descriptionChanged === true || typeof details.description === "string") changes.push("changed the description"); return changes.length > 0 ? changes.join(", ") : null; }