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:
Dylan Hurd
2026-11-18 19:00:47 +00:00
committed by copyberry
parent 58ad62ce09
commit c695d267e3
+2 -1
View File
@@ -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(