feat(HAI-016): complete Step 5 — wire semaphore into dashboard engine components

This commit is contained in:
Dustin Byrne
2026-03-25 21:25:07 -04:00
parent 6a45531a79
commit 0f80d4f2b2
3 changed files with 26 additions and 3 deletions

View File

@@ -228,15 +228,15 @@ describe("AgentSemaphore", () => {
});
it("integration: semaphore is optional (no-op when absent)", async () => {
const semaphore: AgentSemaphore | undefined = undefined;
const opts: { semaphore?: AgentSemaphore } = {};
let ran = false;
const agentWork = async () => {
ran = true;
};
if (semaphore) {
await semaphore.run(agentWork);
if (opts.semaphore) {
await opts.semaphore.run(agentWork);
} else {
await agentWork();
}