From 5fe8e98eeba283938c84d8952935b706eb74a045 Mon Sep 17 00:00:00 2001 From: Seefs Date: Thu, 19 Mar 2026 16:56:28 +0800 Subject: [PATCH] fix: default codex and claude channel affinity templates to skip retry on failure --- setting/operation_setting/channel_affinity_setting.go | 4 ++-- web/src/constants/channel-affinity-template.constants.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setting/operation_setting/channel_affinity_setting.go b/setting/operation_setting/channel_affinity_setting.go index 7727315a..74213e99 100644 --- a/setting/operation_setting/channel_affinity_setting.go +++ b/setting/operation_setting/channel_affinity_setting.go @@ -88,7 +88,7 @@ var channelAffinitySetting = ChannelAffinitySetting{ ValueRegex: "", TTLSeconds: 0, ParamOverrideTemplate: buildPassHeaderTemplate(codexCliPassThroughHeaders), - SkipRetryOnFailure: false, + SkipRetryOnFailure: true, IncludeUsingGroup: true, IncludeRuleName: true, UserAgentInclude: nil, @@ -103,7 +103,7 @@ var channelAffinitySetting = ChannelAffinitySetting{ ValueRegex: "", TTLSeconds: 0, ParamOverrideTemplate: buildPassHeaderTemplate(claudeCliPassThroughHeaders), - SkipRetryOnFailure: false, + SkipRetryOnFailure: true, IncludeUsingGroup: true, IncludeRuleName: true, UserAgentInclude: nil, diff --git a/web/src/constants/channel-affinity-template.constants.js b/web/src/constants/channel-affinity-template.constants.js index 4bae7d0b..f3e88c26 100644 --- a/web/src/constants/channel-affinity-template.constants.js +++ b/web/src/constants/channel-affinity-template.constants.js @@ -68,7 +68,7 @@ export const CHANNEL_AFFINITY_RULE_TEMPLATES = { param_override_template: CODEX_CLI_HEADER_PASSTHROUGH_TEMPLATE, value_regex: '', ttl_seconds: 0, - skip_retry_on_failure: false, + skip_retry_on_failure: true, include_using_group: true, include_rule_name: true, }, @@ -80,7 +80,7 @@ export const CHANNEL_AFFINITY_RULE_TEMPLATES = { param_override_template: CLAUDE_CLI_HEADER_PASSTHROUGH_TEMPLATE, value_regex: '', ttl_seconds: 0, - skip_retry_on_failure: false, + skip_retry_on_failure: true, include_using_group: true, include_rule_name: true, },