mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
Box the config reload future for persistent MCP tool approvals (#62337)
## Why The MCP tool call future reserves space for the large config reload future even on ordinary calls that never reload configuration. ## What changed Pin the reload future on the heap after successfully persisting a tool approval. Ordinary MCP calls no longer carry the inline storage for it. GitOrigin-RevId: a883f7619f520e730dda139d967c6a0f945b5df2
This commit is contained in:
@@ -2720,7 +2720,8 @@ async fn maybe_persist_mcp_tool_approval(
|
||||
return;
|
||||
}
|
||||
|
||||
sess.reload_user_config_layer().await;
|
||||
// Keep the config reload's large future out of ordinary MCP calls, which never poll it.
|
||||
Box::pin(sess.reload_user_config_layer()).await;
|
||||
}
|
||||
|
||||
async fn persist_codex_app_tool_approval(
|
||||
|
||||
Reference in New Issue
Block a user