Make toast notifications more informative
- Server: Add bodySnippet, identifier, issueTitle to comment_added activity details so the UI can show comment content - Client: Show comment snippet in comment toasts instead of just "posted a comment on PAP-39" - Client: Add agent title/role as body text in agent status toasts - Client: Show trigger detail in run status toasts for context PAP-31 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -302,7 +302,12 @@ export function issueRoutes(db: Db, storage: StorageService) {
|
||||
action: "issue.comment_added",
|
||||
entityType: "issue",
|
||||
entityId: issue.id,
|
||||
details: { commentId: comment.id },
|
||||
details: {
|
||||
commentId: comment.id,
|
||||
bodySnippet: comment.body.slice(0, 120),
|
||||
identifier: issue.identifier,
|
||||
issueTitle: issue.title,
|
||||
},
|
||||
});
|
||||
|
||||
}
|
||||
@@ -557,7 +562,12 @@ export function issueRoutes(db: Db, storage: StorageService) {
|
||||
action: "issue.comment_added",
|
||||
entityType: "issue",
|
||||
entityId: currentIssue.id,
|
||||
details: { commentId: comment.id },
|
||||
details: {
|
||||
commentId: comment.id,
|
||||
bodySnippet: comment.body.slice(0, 120),
|
||||
identifier: currentIssue.identifier,
|
||||
issueTitle: currentIssue.title,
|
||||
},
|
||||
});
|
||||
|
||||
// Merge all wakeups from this comment into one enqueue per agent to avoid duplicate runs.
|
||||
|
||||
Reference in New Issue
Block a user