Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface DesignerOptionsState {
stringOverrides?: Record<string, string>; // 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)
Expand Down
3 changes: 2 additions & 1 deletion libs/designer-v2/src/lib/ui/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function NetworkingSettings({
downloadChunkSize,
} = nodeSettings;

const { hideContentTransferSettings } = useHostOptions();
const { hideContentTransferSettings, hideRetryPolicyStatusCodes } = useHostOptions();

const onAsyncPatternToggle = (checked: boolean): void => {
updateSettings({
Expand Down Expand Up @@ -663,6 +663,7 @@ function NetworkingSettings({
uploadChunk={uploadChunk}
downloadChunkSize={downloadChunkSize}
hideContentTransferSettings={hideContentTransferSettings}
hideRetryPolicyStatusCodes={hideRetryPolicyStatusCodes}
onHeaderClick={(sectionName) => dispatch(setExpandedSections(sectionName))}
onAsyncPatternToggle={onAsyncPatternToggle}
onAsyncResponseToggle={onAsyncResponseToggle}
Expand Down
3 changes: 3 additions & 0 deletions libs/designer-v2/src/lib/ui/settings/sections/networking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -49,6 +50,7 @@ export const Networking = ({
requestOptions,
chunkedTransferMode,
hideContentTransferSettings,
hideRetryPolicyStatusCodes,
onAsyncPatternToggle,
onAsyncResponseToggle,
onRequestOptionsChange,
Expand Down Expand Up @@ -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,
Expand Down
Loading