Add Claude Ultracode with setting-change notices (#1625)
* Add Claude Ultracode mode notices * Share provider notice definitions * Test Claude Ultracode through public turn API
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import type { AgentProviderNotice } from "@getpaseo/protocol/agent-types";
|
||||
import type { ToastApi } from "@/components/toast-host";
|
||||
|
||||
export function showProviderNoticeToast(
|
||||
toast: ToastApi,
|
||||
notice: AgentProviderNotice | null | undefined,
|
||||
): void {
|
||||
if (!notice) {
|
||||
return;
|
||||
}
|
||||
if (notice.type === "error") {
|
||||
toast.error(notice.message);
|
||||
return;
|
||||
}
|
||||
toast.show(notice.message, {
|
||||
variant: "default",
|
||||
durationMs: notice.type === "warning" ? 3200 : undefined,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user