mirror of
https://github.com/openai/codex.git
synced 2026-11-26 15:27:17 +00:00
Refresh hook runtimes after plugin changes (#38703)
## What changed - Rebuild hook runtimes for loaded sessions when effective plugins change or a marketplace upgrade installs new plugin content. - Refresh plugin-related caches and MCP runtimes alongside hooks after plugin mutations. - Preserve each loaded session's current configuration while rebuilding its hooks. ## Testing - Cover direct plugin upgrades, including subsequent turn and session-end hooks. - Cover automatic marketplace upgrades for an already loaded session. GitOrigin-RevId: fef64c68d652f300c7f3d88e81c5017459aa9a18
This commit is contained in:
1 parent
53f3fa7496
commit
e5470f1bce
7 files changed
+490
-6
No files matched your search
@@ -34,6 +34,7 @@ pub(crate) fn effective_plugins_changed_callback(
|
||||
let refresh_thread_manager = Arc::clone(&thread_manager);
|
||||
tokio::spawn(async move {
|
||||
refresh_thread_manager.invalidate_mcp_runtimes().await;
|
||||
refresh_thread_manager.refresh_hook_runtimes().await;
|
||||
});
|
||||
|
||||
if change.materialized_remote_plugins.is_empty() {
|
||||
|
||||
Reference in new issue
Block a user