fix: drop active heartbeat followups from queue (#25610, thanks @mcaxtr)

Co-authored-by: Marcus Castro <mcaxtr@gmail.com>
This commit is contained in:
Peter Steinberger
2026-02-25 01:58:13 +00:00
parent 6fa7226a67
commit c736778b3f
3 changed files with 49 additions and 4 deletions

View File

@@ -235,6 +235,11 @@ export async function runReplyAgent(params: {
}
}
if (isHeartbeat && isActive) {
typing.cleanup();
return undefined;
}
if (isActive && (shouldFollowup || resolvedQueue.mode === "steer")) {
enqueueFollowupRun(queueKey, followupRun, resolvedQueue);
await touchActiveSessionEntry();