Treat bundled cleanup hooks as built-ins - #42110
Merged
copyberry[bot] merged 1 commit intoSep 1, 2026
Merged
Conversation
## What changed - Centralize the allowlist for bundled MCP cleanup hooks and use it for both local and executor-discovered plugins, including `unified-computer-use` cleanup through `cua_repl`. - Mark matching cleanup hooks as trusted built-ins so they run without saved hook trust and remain active when regular hooks or their per-hook state are disabled. Plugin enablement and managed-only policy still apply. - Hide built-in cleanup hooks from hook listings and lifecycle notifications while retaining their metrics. Keep the built-in classification out of serialized protocol data. ## Testing - Cover allowlist boundaries, trust and enablement behavior, inline and file-based hook declarations, MCP success and error responses, hook listing, lifecycle notifications, metrics, and protocol serialization. GitOrigin-RevId: f93b7bc99f4ed9694f529def8ec383b45f31430e
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/f93b7bc99f4ed9694f529def8ec383b45f31430e
branch
from
September 1, 2026 18:03
089a094 to
c7c824d
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/f93b7bc99f4ed9694f529def8ec383b45f31430e
branch
September 1, 2026 18:04
sigmalko
temporarily deployed
to
issue-triage
September 1, 2026 18:09 — with
GitHub Actions
Inactive
sigmalko
temporarily deployed
to
issue-triage
September 1, 2026 18:09 — with
GitHub Actions
Inactive
sigmalko
temporarily deployed
to
issue-triage
September 1, 2026 18:09 — with
GitHub Actions
Inactive
sigmalko
temporarily deployed
to
issue-triage
September 1, 2026 18:10 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Treat bundled cleanup hooks as built-ins
What changed
unified-computer-usecleanup throughcua_repl.Testing