The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
import { describe, expect, it } from "vitest";
import { shouldQueueFollowupForRunningIssueWake } from "../services/heartbeat.ts";
describe("shouldQueueFollowupForRunningIssueWake", () => {
it("preserves a deferred fallback while the source turn is still running", () => {
expect(shouldQueueFollowupForRunningIssueWake({
contextSnapshot: {
wakeReason: "issue_commented",
interactionId: "00000000-0000-4000-8000-000000000001",
interactionStatus: "accepted",
},
wakeCommentId: null,
})).toBe(true);
});
it("still coalesces a generic issue wake without new input", () => {
expect(shouldQueueFollowupForRunningIssueWake({
contextSnapshot: { wakeReason: "issue_commented" },
wakeCommentId: null,
})).toBe(false);
});
});