mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
Allow bundled browser cleanup hooks on subagent stop (#41435)
## What changed Allow bundled browser and computer-use plugins to invoke the existing `node_repl.turn_ended` cleanup hook for `SubagentStop` events, matching the allowlist behavior for `Stop` and `Interrupt` events. GitOrigin-RevId: 0fe1784321e793e9861e728b40a48662625b7dca
This commit is contained in:
committed by
copyberry
parent
c2abf869d5
commit
c6bf330b42
@@ -30,6 +30,12 @@ const ALLOWLISTED_EXECUTOR_PLUGIN_HOOKS: &[AllowlistedExecutorPluginHook] = &[
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "browser@openai-bundled",
|
||||
event: HookEventName::SubagentStop,
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "chrome@openai-bundled",
|
||||
event: HookEventName::Stop,
|
||||
@@ -42,6 +48,12 @@ const ALLOWLISTED_EXECUTOR_PLUGIN_HOOKS: &[AllowlistedExecutorPluginHook] = &[
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "chrome@openai-bundled",
|
||||
event: HookEventName::SubagentStop,
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "chrome-dev@openai-bundled",
|
||||
event: HookEventName::Stop,
|
||||
@@ -54,6 +66,12 @@ const ALLOWLISTED_EXECUTOR_PLUGIN_HOOKS: &[AllowlistedExecutorPluginHook] = &[
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "chrome-dev@openai-bundled",
|
||||
event: HookEventName::SubagentStop,
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "chrome-internal@openai-bundled",
|
||||
event: HookEventName::Stop,
|
||||
@@ -66,6 +84,12 @@ const ALLOWLISTED_EXECUTOR_PLUGIN_HOOKS: &[AllowlistedExecutorPluginHook] = &[
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "chrome-internal@openai-bundled",
|
||||
event: HookEventName::SubagentStop,
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "computer-use@openai-bundled",
|
||||
event: HookEventName::Stop,
|
||||
@@ -78,6 +102,12 @@ const ALLOWLISTED_EXECUTOR_PLUGIN_HOOKS: &[AllowlistedExecutorPluginHook] = &[
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
AllowlistedExecutorPluginHook {
|
||||
plugin_id: "computer-use@openai-bundled",
|
||||
event: HookEventName::SubagentStop,
|
||||
server: "node_repl",
|
||||
tool: "turn_ended",
|
||||
},
|
||||
];
|
||||
|
||||
/// Returns accepted inline hook sources from executor-discovered plugin manifests.
|
||||
|
||||
Reference in New Issue
Block a user