From 3c84608125cdb2f06d680105eeacf9591dbe1bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=81=D0=B5=D0=BB=D1=8C?= Date: Sat, 14 Nov 2026 06:00:51 +0500 Subject: [PATCH] PEP-10: hook stays silent only for done stories (a manual run on a backlog story still pings) Co-Authored-By: Claude Opus 5.5 --- packages/runner/src/hook.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runner/src/hook.ts b/packages/runner/src/hook.ts index 58e84e44..6ed21ee2 100644 --- a/packages/runner/src/hook.ts +++ b/packages/runner/src/hook.ts @@ -201,8 +201,8 @@ async function turnEnd(db: Db, s: SessionView, text: string | null, canContinue: return null; } const [task] = await db.select().from(tasks).where(eq(tasks.id, s.taskId)); - // PEP-10: the story left work (done, back in the backlog) — a queue runner waits for the next one. - if (task && (task.status === "done" || task.status === "backlog")) { + // PEP-10: the story is done — a queue runner waits for its next one without a ping. + if (task?.status === "done") { await updateSession(db, s.id, { status: "idle", lastActivityAt: new Date() }); return null; }