Skip to content

fix(claude): 修复切换账号时的用户配置持久化 - #2907

Merged
jlcodes99 merged 2 commits into
jlcodes99:mainfrom
fflow2023:codex/preserve-claude-desktop-gateway-config
Oct 27, 2026
Merged

jlcodes99 merged 2 commits into
jlcodes99:mainfrom
fflow2023:codex/preserve-claude-desktop-gateway-config

Conversation

@fflow2023

@fflow2023 fflow2023 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

修复 Claude Desktop Gateway 切换账号(API 网关)时用户设置被重置的问题。原实现会删除旧配置并按固定模板重建,导致隐私、1M 上下文、权限、网络限制和更新偏好等设置无法保留。

现在只更新 API 地址、密钥和模型映射,保留其余用户设置,以及同名模型上未明确修改的选项。直连和本地映射模式共用这一流程。

切换时只清理 Cockpit 创建的配置和旧凭据,保留用户自行创建的第三方配置。本地映射更新会继续运行旧网关,直到新配置写入成功;写入失败时,现有配置和网关仍可继续使用。

Fixes #2906

@jlcodes99
jlcodes99 merged commit 07c96dd into jlcodes99:main Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Claude Desktop 切换账号后,用户配置会被重置

2 participants