From ca1e55d64e76aeb0b78051ab1ba6589cc5c5a604 Mon Sep 17 00:00:00 2001 From: VioletSuki <123401354+VioletSuki@users.noreply.github.com> Date: Sat, 14 Nov 2026 11:48:52 +0000 Subject: [PATCH] fix(proxy): preserve chain selection on disconnect (#8316) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com> Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com> --- Changelog.md | 1 + src/components/proxy/proxy-chain.tsx | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Changelog.md b/Changelog.md index 00026ba6c..c6ddb0a0f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -30,6 +30,7 @@ - 修复订阅中未加引号的 REALITY `short-id`(如 `1234e123`)被误读为数字,导致订阅无法启用 - 修复订阅中唯一的代理组名为 `GLOBAL` 或没有代理组时,规则模式下代理页面显示「未获取到代理信息」 - 修复窗口较窄时,首页「当前节点」卡片中过长的节点名把延迟标签挤出卡片 +- 修复断开链式代理时清空已选节点,导致再次连接需要重新选择的问题 **🍎 macOS** diff --git a/src/components/proxy/proxy-chain.tsx b/src/components/proxy/proxy-chain.tsx index bc901946b..fd65ed4ba 100644 --- a/src/components/proxy/proxy-chain.tsx +++ b/src/components/proxy/proxy-chain.tsx @@ -463,15 +463,12 @@ export const ProxyChain = ({ localStorage.removeItem('proxy-chain-group') localStorage.removeItem('proxy-chain-exit-node') - localStorage.removeItem('proxy-chain-items') await mutate(() => closeAllConnections(), { id: 'close-all-connections', errorNotice: false, }) await refreshProxy() - - onUpdateChain([]) } catch (error) { console.error('Failed to disconnect from proxy chain:', error) alert(t('proxies.page.chain.disconnectFailed')) @@ -550,7 +547,6 @@ export const ProxyChain = ({ mode, proxyView, selectedGroup, - onUpdateChain, recordSelection, ])