From a28aacb7e793c983b4f2b39984d21d152af555bf Mon Sep 17 00:00:00 2001 From: Lisa Meyer Date: Fri, 10 Jul 2026 12:14:44 -0700 Subject: [PATCH] add flag to hide retry policy status codes --- .../core/state/designerOptions/designerOptionsInterfaces.ts | 1 + libs/designer-v2/src/lib/ui/settings/index.tsx | 3 ++- libs/designer-v2/src/lib/ui/settings/sections/networking.tsx | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/designer-v2/src/lib/core/state/designerOptions/designerOptionsInterfaces.ts b/libs/designer-v2/src/lib/core/state/designerOptions/designerOptionsInterfaces.ts index 16924333a17..40e7aad58cd 100644 --- a/libs/designer-v2/src/lib/core/state/designerOptions/designerOptionsInterfaces.ts +++ b/libs/designer-v2/src/lib/core/state/designerOptions/designerOptionsInterfaces.ts @@ -50,6 +50,7 @@ export interface DesignerOptionsState { stringOverrides?: Record; // string overrides for localization maxStateHistorySize?: number; // maximum number of states to save in history for undo/redo (default is 20) hideContentTransferSettings?: boolean; // hide content transfer settings in the designer + hideRetryPolicyStatusCodes?: boolean; // hide the HTTP status codes input for action retry policies collapseGraphsByDefault?: boolean; // collapse scope by default enableMultiVariable?: boolean; // prevent creating multiple variables in one action enableNestedAgentLoops?: boolean; // allow agent loops to be added inside regular loops (requires bundle version >= 1.115.0) diff --git a/libs/designer-v2/src/lib/ui/settings/index.tsx b/libs/designer-v2/src/lib/ui/settings/index.tsx index fe4f93daf39..6eb497158c2 100644 --- a/libs/designer-v2/src/lib/ui/settings/index.tsx +++ b/libs/designer-v2/src/lib/ui/settings/index.tsx @@ -429,7 +429,7 @@ function NetworkingSettings({ downloadChunkSize, } = nodeSettings; - const { hideContentTransferSettings } = useHostOptions(); + const { hideContentTransferSettings, hideRetryPolicyStatusCodes } = useHostOptions(); const onAsyncPatternToggle = (checked: boolean): void => { updateSettings({ @@ -663,6 +663,7 @@ function NetworkingSettings({ uploadChunk={uploadChunk} downloadChunkSize={downloadChunkSize} hideContentTransferSettings={hideContentTransferSettings} + hideRetryPolicyStatusCodes={hideRetryPolicyStatusCodes} onHeaderClick={(sectionName) => dispatch(setExpandedSections(sectionName))} onAsyncPatternToggle={onAsyncPatternToggle} onAsyncResponseToggle={onAsyncResponseToggle} diff --git a/libs/designer-v2/src/lib/ui/settings/sections/networking.tsx b/libs/designer-v2/src/lib/ui/settings/sections/networking.tsx index f4114a4d5f9..03969265cfe 100644 --- a/libs/designer-v2/src/lib/ui/settings/sections/networking.tsx +++ b/libs/designer-v2/src/lib/ui/settings/sections/networking.tsx @@ -13,6 +13,7 @@ export interface NetworkingSectionProps extends SectionProps { uploadChunkMetadata: UploadChunkMetadata | undefined; downloadChunkMetadata: DownloadChunkMetadata | undefined; hideContentTransferSettings: boolean | undefined; + hideRetryPolicyStatusCodes: boolean | undefined; onAsyncPatternToggle: ToggleHandler; onAsyncResponseToggle: ToggleHandler; onRequestOptionsChange: TextChangeHandler; @@ -49,6 +50,7 @@ export const Networking = ({ requestOptions, chunkedTransferMode, hideContentTransferSettings, + hideRetryPolicyStatusCodes, onAsyncPatternToggle, onAsyncResponseToggle, onRequestOptionsChange, @@ -594,6 +596,7 @@ export const Networking = ({ ariaLabel: retryPolicyHttpStatusCodesTitle, }, visible: + !hideRetryPolicyStatusCodes && retryPolicy?.isSupported && retryPolicy?.value?.type !== constants.RETRY_POLICY_TYPE.NONE && retryPolicy?.value?.type !== constants.RETRY_POLICY_TYPE.DEFAULT,