fix(relay): preserve live Codex UI settings / 保留 Codex UI 设置#629
Open
palmer67 wants to merge 1 commit into
Open
fix(relay): preserve live Codex UI settings / 保留 Codex UI 设置#629palmer67 wants to merge 1 commit into
palmer67 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
config.tomlpersonality、[desktop]、[mcp_servers],同时确认 endpoint 仍来自 active relay profileRoot Cause / 根因
CodexPlusPlus apply relay profile 时会把生成后的 relay config 写回
~/.codex/config.toml。如果 relay profile snapshot 已经过期,而用户后来直接在 Codex 里改了主题、personality 或 MCP,那么下一次 profile apply 就可能把这些 live UI settings 重置掉。
这次修复的边界是:relay/profile-owned provider routing 继续生效,但不属于 provider 的 live Codex settings 会被保留。
Verification / 验证
已通过:
git diff --check本地受限 / Blocked locally:
cargo test -p codex-plus-core apply_relay_profile_to_home_with_switch_rules_preserves_live_ui_settings被 Windows 本机缺少 MSVClink.exe阻塞