Skip to content

Keep remote app-server events deliverable during shutdown - #53155

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ba14bc97ffa3453b7b59660144db6da9e688983d
Oct 11, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Keep remote app-server events deliverable during shutdown

Why

Dropping the event receiver before shutdown lets an in-flight notification fail delivery and terminate the worker before it sends the WebSocket close frame.

What changed

Keep the event receiver alive until RemoteAppServerClient::shutdown finishes waiting for the worker, allowing it to process the shutdown command and close the WebSocket.

Testing

Extend regression tests to verify that an event remains deliverable after shutdown is queued and that the server receives Message::Close(None) with an extra notification in flight.

## Why

Dropping the event receiver before shutdown lets an in-flight notification fail delivery and terminate the worker before it sends the WebSocket close frame.

## What changed

Keep the event receiver alive until `RemoteAppServerClient::shutdown` finishes waiting for the worker, allowing it to process the shutdown command and close the WebSocket.

## Testing

Extend regression tests to verify that an event remains deliverable after shutdown is queued and that the server receives `Message::Close(None)` with an extra notification in flight.

GitOrigin-RevId: ba14bc97ffa3453b7b59660144db6da9e688983d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ba14bc97ffa3453b7b59660144db6da9e688983d branch from 13676e3 to 95db2cd Compare October 11, 2026 15:57
@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-11T15:57:19.022986Z 13676e3 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 merged commit 95db2cd into main Oct 11, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ba14bc97ffa3453b7b59660144db6da9e688983d branch October 11, 2026 15:57
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 11, 2026
@maple3142
maple3142 deployed to issue-triage October 11, 2026 16:03 — with Image GitHub Actions Active
@maple3142
maple3142 deployed to issue-triage October 11, 2026 16:03 — with Image GitHub Actions Active
@maple3142
maple3142 deployed to issue-triage October 11, 2026 16:03 — with Image GitHub Actions Active
@maple3142
maple3142 deployed to issue-triage October 11, 2026 16:04 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
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.

2 participants