feat(webui): persist reviewed automation chat changes
This commit is contained in:
1 parent
707f7eb079
commit
845afe9215
41 files changed
+1210
-626
No files matched your search
@@ -11,6 +11,7 @@ import { DEFAULT_CUSTOM_MCP_FORM } from "@/components/settings/system/AppsSettin
|
||||
import type { SystemSettingsState } from "@/components/settings/system/useSystemSettingsState";
|
||||
import {
|
||||
cancelMcpOAuth,
|
||||
changeAutomationChat,
|
||||
completeMcpOAuth,
|
||||
disableNanobotFeature,
|
||||
enableNanobotFeature,
|
||||
@@ -34,6 +35,7 @@ import { notifyMcpPresetsChanged } from "@/lib/mcp-preset-events";
|
||||
import type { NanobotClient } from "@/lib/nanobot-client";
|
||||
import type {
|
||||
AutomationUpdatePayload,
|
||||
AutomationChatUpdate,
|
||||
McpOAuthFlowPayload,
|
||||
McpPresetsPayload,
|
||||
NanobotFeatureInfo,
|
||||
@@ -298,6 +300,12 @@ export function createSystemSettingsActions({
|
||||
}
|
||||
};
|
||||
|
||||
const handleAutomationChat = async (job: SessionAutomationJob, values: AutomationChatUpdate) => {
|
||||
// The dialog owns the draft and error. Publish only the server acknowledgement.
|
||||
const payload = await changeAutomationChat(client, job.id, values);
|
||||
setAutomations(payload);
|
||||
};
|
||||
|
||||
const closeMcpOAuthPopup = () => {
|
||||
const popup = mcpOAuthPopupRef.current;
|
||||
mcpOAuthPopupRef.current = null;
|
||||
@@ -668,6 +676,7 @@ export function createSystemSettingsActions({
|
||||
handleApiServiceAction,
|
||||
handleAutomationAction,
|
||||
handleAutomationEdit,
|
||||
handleAutomationChat,
|
||||
handleCliAppAction,
|
||||
handleImportMcpConfig,
|
||||
handleMcpOAuthCancel,
|
||||
|
||||
Reference in new issue
Block a user