Skip to content

Wait for review terminal before cleanup - #90

Merged
lynnswap merged 5 commits into
mainfrom
codex/fix-review-cancellation-lifecycle
Aug 9, 2026
Merged

Wait for review terminal before cleanup#90
lynnswap merged 5 commits into
mainfrom
codex/fix-review-cancellation-lifecycle

Conversation

@lynnswap

@lynnswap lynnswap commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Purpose

Prevent review cleanup and retained-thread deletion from racing the final events of an interrupted outer review turn after the CodexKit review-generation routing fix.

Related dependency fix: lynnswap/CodexKit#26.

Changes

  • Pin CodexKit to merged revision 99ef48d1306435c0bb801b1b1c233f31685421c6 in package and ReviewMonitor resolutions.
  • Keep interruption lifecycle ownership until the original review session reaches terminal when interruption succeeds or its acknowledgement is ambiguous, while surfacing definitive rejections immediately.
  • Preserve the original typed interrupt request failure if the terminal synchronization barrier also fails.
  • Preserve the prepared-restart ownership preconditions and verify retained identities map back to exactly one review run.
  • Model redirected child and outer terminal events in app-server and host teardown/recovery tests.

Testing

  • swift test --build-system swiftbuild --no-parallel
  • xcodebuild test -project Tools/ReviewMonitor/CodexReviewMonitor.xcodeproj -scheme CodexReviewMonitor -destination 'platform=macOS,arch=arm64' CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO
  • Branch-wide Codex review: no actionable findings
  • GitHub Actions CI: passed (one unrelated account-login test timeout passed on rerun)

Pin CodexKit at the corrected review-generation routing revision and make interruption retain lifecycle ownership until the outer review turn reaches terminal. Update app-server and host fixtures to model redirected child and outer terminal events, including retained restart identity recovery.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0adeee12b8

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CodexReviewAppServer/AppServerCodexReviewBackend.swift Outdated

@lynnswap lynnswap left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9daf2df8b5

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/CodexReviewAppServer/AppServerCodexReviewBackend.swift Outdated

@lynnswap lynnswap left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 1d3336dc30

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lynnswap
lynnswap merged commit 4eaeccf into main Aug 9, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant