feat(FN-2119): merge fusion/fn-2119

This commit is contained in:
gsxdsm
2026-04-19 03:21:38 -07:00
parent 3f8a2e9442
commit bbc0ce89be
13 changed files with 122 additions and 14 deletions

View File

@@ -5459,7 +5459,10 @@ describe("TaskExecutor usage limit detection", () => {
"FN-001",
"rate_limit_error: Rate limit exceeded",
);
expect(store.updateSettings).toHaveBeenCalledWith({ globalPause: true });
expect(store.updateSettings).toHaveBeenCalledWith({
globalPause: true,
globalPauseReason: "rate-limit",
});
// Task should still be marked as failed
expect(store.updateTask).toHaveBeenCalledWith("FN-001", { status: "failed", error: "rate_limit_error: Rate limit exceeded" });
expect(onError).toHaveBeenCalled();