Skip to content

The open-source app everyone uses to manage agents at work

fix(issues): skip agent wakeup when issue status is backlog

Logeshd7f68ec1c918
diff --git a/server/src/routes/issues.ts b/server/src/routes/issues.ts
index 8807029335..28807857b6 100644
--- a/server/src/routes/issues.ts
+++ b/server/src/routes/issues.ts
@@ -432,7 +432,7 @@ export function issueRoutes(db: Db, storage: StorageService) {
details: { title: issue.title, identifier: issue.identifier },
});
- if (issue.assigneeAgentId) {
+ if (issue.assigneeAgentId && issue.status !== "backlog") {
void heartbeat
.wakeup(issue.assigneeAgentId, {
source: "assignment",
@@ -566,7 +566,7 @@ export function issueRoutes(db: Db, storage: StorageService) {
void (async () => {
const wakeups = new Map<string, Parameters<typeof heartbeat.wakeup>[1]>();
- if (assigneeChanged && issue.assigneeAgentId) {
+ if (assigneeChanged && issue.assigneeAgentId && issue.status !== "backlog") {
wakeups.set(issue.assigneeAgentId, {
source: "assignment",
triggerDetail: "system",