Add Codex restart hint after provider switch

This commit is contained in:
Jason
2026-05-30 21:19:30 +08:00
parent 3f59ab3746
commit 41433cfab2
6 changed files with 12 additions and 1 deletions
+4
View File
@@ -192,6 +192,10 @@ describe("useProviderActions", () => {
expect(switchProviderMutateAsync).toHaveBeenCalledWith(provider.id);
expect(settingsApiGetMock).not.toHaveBeenCalled();
expect(settingsApiApplyMock).not.toHaveBeenCalled();
expect(toastSuccessMock).toHaveBeenCalledWith(
"切换成功,请重启客户端以生效",
{ closeButton: true },
);
});
it("warns but still switches providers that require proxy when proxy is not running", async () => {