Skip to content

fix(relay): preserve live Codex UI settings / 保留 Codex UI 设置#629

Open
palmer67 wants to merge 1 commit into
BigPizzaV3:mainfrom
palmer67:fix/preserve-codex-live-ui-settings
Open

fix(relay): preserve live Codex UI settings / 保留 Codex UI 设置#629
palmer67 wants to merge 1 commit into
BigPizzaV3:mainfrom
palmer67:fix/preserve-codex-live-ui-settings

Conversation

@palmer67

@palmer67 palmer67 commented Jun 4, 2026

Copy link
Copy Markdown

Summary / 摘要

  • 在 apply active relay profile 前读取现有 live config.toml
  • 提取非 provider 的 live settings,并合并进生成后的 relay config
  • provider-specific routing 仍然由 active relay profile 控制
  • 新增 regression test,覆盖 personality[desktop][mcp_servers],同时确认 endpoint 仍来自 active relay profile

Root 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 本机缺少 MSVC link.exe 阻塞

@palmer67 palmer67 changed the title fix(relay): preserve live Codex UI settings on profile apply fix(relay): preserve live Codex UI settings / 保留 Codex UI 设置 Jun 4, 2026
@palmer67 palmer67 marked this pull request as ready for review June 5, 2026 08:46
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.

1 participant