Skip to content

Share hook configuration across cloned hook views - #53657

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6b188ca6ca21772ccd7336344d98c023f769834e
Oct 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6b188ca6ca21772ccd7336344d98c023f769834e

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Share hook configuration across cloned hook views

Why

with_executor_hooks clones the hook registry to create an executor-specific view. Copying the configured handlers, plugin sources, and diagnostics on every clone is unnecessary when that configuration is unchanged.

What changed

Store hook configuration in Arc-backed collections and use copy-on-write when replacing executor-scoped handlers. Skip handler mutation when there are no executor hooks to add or remove.

Testing

Extend the executor hook registration test to verify that updating a cloned engine leaves the previous engine's handlers unchanged.

## Why

`with_executor_hooks` clones the hook registry to create an executor-specific view. Copying the configured handlers, plugin sources, and diagnostics on every clone is unnecessary when that configuration is unchanged.

## What changed

Store hook configuration in `Arc`-backed collections and use copy-on-write when replacing executor-scoped handlers. Skip handler mutation when there are no executor hooks to add or remove.

## Testing

Extend the executor hook registration test to verify that updating a cloned engine leaves the previous engine's handlers unchanged.

GitOrigin-RevId: 6b188ca6ca21772ccd7336344d98c023f769834e
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6b188ca6ca21772ccd7336344d98c023f769834e branch from 5999dd4 to ab82af0 Compare October 13, 2026 12:51
@copyberry
copyberry Bot merged commit ab82af0 into main Oct 13, 2026
13 of 18 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-13T12:51:25.878031Z 5999dd4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6b188ca6ca21772ccd7336344d98c023f769834e branch October 13, 2026 12:51
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 13, 2026
@sickfar
sickfar deployed to issue-triage October 13, 2026 12:58 — with Image GitHub Actions Active
@sickfar
sickfar deployed to issue-triage October 13, 2026 12:58 — with Image GitHub Actions Active
@sickfar
sickfar deployed to issue-triage October 13, 2026 12:58 — with Image GitHub Actions Active
@sickfar
sickfar deployed to issue-triage October 13, 2026 13:00 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — ab82af0b Deployed Oct 13, 2026 by sickfar via Identify potential duplicates (open issues fallback) #55084
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants