feat(FN-3595): document live reviewer override behavior in settings and tas

Documents the live reviewer override behavior in the settings reference and task management guides, adding two lines to each file for a total of 4 lines of documentation.

Fusion-Task-Id: FN-3595
This commit is contained in:
Fusion
2026-05-06 09:52:00 -07:00
committed by gsxdsm
parent 7d02ac81ef
commit b3aa9f9890
5 changed files with 90 additions and 8 deletions

View File

@@ -505,6 +505,29 @@ describe("TaskStore", () => {
const detail = await store.getTask(task.id);
expect(detail.pausedByAgentId).toBeUndefined();
});
it("auto-unpauses a task when the pausing agent is unassigned", async () => {
const task = await store.createTask({ description: "Auto-unpause on unassign", assignedAgentId: "agent-7" });
await store.pauseTask(task.id, true, undefined, { pausedByAgentId: "agent-7" });
const beforeUnassign = await store.getTask(task.id);
expect(beforeUnassign.paused).toBe(true);
expect(beforeUnassign.pausedByAgentId).toBe("agent-7");
const updated = await store.updateTask(task.id, { assignedAgentId: null });
expect(updated.paused).toBeFalsy();
expect(updated.pausedByAgentId).toBeUndefined();
expect(updated.assignedAgentId).toBeUndefined();
});
it("does not auto-unpause when the pause was set by a different agent", async () => {
const task = await store.createTask({ description: "Different agent paused", assignedAgentId: "agent-current" });
await store.pauseTask(task.id, true, undefined, { pausedByAgentId: "agent-other" });
const updated = await store.updateTask(task.id, { assignedAgentId: null });
expect(updated.paused).toBe(true);
expect(updated.pausedByAgentId).toBe("agent-other");
});
});
describe("nodeId persistence", () => {