fix(notifications): stop toasting "changed the title" on task updates (#23674)

## 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 "<actor> 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 "<actor> 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 "<actor> 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 <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-12-03 20:54:56 -08:00
1 parent bca282e587
commit 0f36a88f41
5 files changed
+14 -4

No files matched your search

@@ -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();
@@ -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({});
});
});
@@ -36,7 +36,6 @@ export function activityToastDetails(action: unknown, value: unknown): Record<st
const assigned = ["assigneeAgentId", "assigneeUserId"].some(key => typeof next(key) === "string");
result.assignment = assigned ? "reassigned" : "unassigned";
}
if (changed("title")) result.titleChanged = true;
if (changed("description")) result.descriptionChanged = true;
return result;
}
@@ -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();
});
-1
View File
@@ -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;
}