Repository navigation
fix(wework): preserve Codex model instructions - #1857
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (14)
📝 WalkthroughWalkthroughCodex startup now normalizes ChangesCodex configuration and personality
Patch update event logging
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant CodexPersonalitySettings
participant localCodexSettings
participant RuntimeWorkRpcHandler
participant CodexAppServer
User->>CodexPersonalitySettings: Select interaction style
CodexPersonalitySettings->>localCodexSettings: saveLocalCodexPersonality
localCodexSettings->>RuntimeWorkRpcHandler: runtime.codex.personality.write
RuntimeWorkRpcHandler->>CodexAppServer: config/batchWrite personality
CodexAppServer-->>RuntimeWorkRpcHandler: Saved configuration
RuntimeWorkRpcHandler-->>localCodexSettings: personality and configPath
localCodexSettings-->>CodexPersonalitySettings: normalized personality
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What changed
config/batchWriteinstead of localStorage or per-turn overridesconfig.tomlbefore app-server startupinstructionstodeveloper_instructionsso model base instructions remain intactitem/fileChange/patchUpdatedeventsWhy
Codex CLI 0.144.x treats
instructionsas a complete base-instruction override. Wework stored custom instructions there, which removed model-provided personality, commentary, and progress-update rules. Personality state was also duplicated between localStorage, config, and thread requests. The new flow makes Codex config the source of truth and safely normalizes legacy config before startup.Impact
Validation
cargo fmt --checkcargo test --all-features --libcargo clippySummary by CodeRabbit
New Features
Bug Fixes
Documentation