Repository navigation
fix(config): hold the config write lock across developer, embeddings, auth and sync config writes (#21858) - #21860
Conversation
… auth and sync config writes (#21858)
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 47 minutes. View limit details
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. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Verdict: APPROVE @ 81388ea The review at ed1d1b4 approved the PR with three Low findings, all fixed in this commit:
#21858's ACs (from the review):
The |
… other shared doubles (#21858)
|
Verdict: APPROVE @ 5002cb4 Fixes the red python-suite shard 2/8 at 81388ea. Cause. The unconnected-code gate (#20512) reported Fix. The module moves to No production change. The pre-push guard stage passed, and main is an ancestor of the head. Unresolved threads: 0. |
Thinking Path
#21742 put agent-config writes under the one
CONFIG_WRITE_LOCK. Six more directconfig_managerset+save sequences still bypassed it and could lose a write against a rollback orConfigServicewrite. Same store, same lock: wrap them withlocked_config_write, add no second lock.What Changed
services/config_manager_writer.py:set_nested_and_save,merge_nested_and_save, both@locked_config_write.api/developer.py(config update),api/embeddings.py(model refresh),api/auth.py(_persist_password_change),utils/llm_config_sync.py(models-list populate),services/web_research_config.py(save_settings, decorated),config/model_config.py(update_llm_model, decorated).config_write_lock.pydocstring no longer lists uncovered writers.auth.py: open PR chore(merge-train): #21233 #21162 #21132 #21258 #21267 #21285 edits lines ~358-372 (password verification); this edit is at the persist function, disjoint. File stays below its grandfathered 650.api/config_manager_write_lock_21858_test.py(Event checkpoints, re-raised worker errors, final-state asserts).Verification
No local tests (owner rule). Compiled with py_compile; the pre-commit hooks passed; CI runs the suite.
Model Used
Claude Sonnet 5.5 (claude-sonnet-5-5)
Closes #21858
🤖 Generated with Claude Code