Skip to content

Refresh session hooks after external plugin updates - #42990

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d3a2653ac4c069d9d8a02f30e21e4506d76a091c
Sep 5, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Refresh session hooks after external plugin updates

Why

Plugin updates made by another process do not notify a loaded session's hook runtime, leaving it with stale hooks.

What changed

Compare the current plugin hook sources and load warnings with those retained by the hook runtime during turn construction. Refresh hooks when either differs so existing sessions pick up external plugin updates.

Testing

Add an app-server regression test that updates the shared plugin store without notifying the server and verifies that successive turns in the same thread run the installed hooks across an upgrade and a rollback.

## Why

Plugin updates made by another process do not notify a loaded session's hook runtime, leaving it with stale hooks.

## What changed

Compare the current plugin hook sources and load warnings with those retained by the hook runtime during turn construction. Refresh hooks when either differs so existing sessions pick up external plugin updates.

## Testing

Add an app-server regression test that updates the shared plugin store without notifying the server and verifies that successive turns in the same thread run the installed hooks across an upgrade and a rollback.

GitOrigin-RevId: d3a2653ac4c069d9d8a02f30e21e4506d76a091c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d3a2653ac4c069d9d8a02f30e21e4506d76a091c branch from 9ae4a5c to 2bd71f9 Compare September 5, 2026 12:08
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot merged commit 2bd71f9 into main Sep 5, 2026
25 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d3a2653ac4c069d9d8a02f30e21e4506d76a091c branch September 5, 2026 12:09
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 5, 2026
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.

1 participant