mirror of
https://github.com/openai/codex.git
synced 2026-10-26 18:38:47 +00:00
docs(mcp): document replacement invariants
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
co-authored by
Codex noreply@openai.com
parent
75b188502d
commit
b32ef8a9de
@@ -473,6 +473,9 @@ impl Session {
|
||||
.services
|
||||
.mcp_connection_manager
|
||||
.swap(Arc::clone(&replacement_manager));
|
||||
// Publish first, then transfer cancellation ownership while both manager
|
||||
// snapshots are still held here. Dropping an uncommitted replacement
|
||||
// cancels only the client it prepared.
|
||||
replacement_manager.take_cancellation_ownership_from(&superseded_manager);
|
||||
drop(current_manager);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user