Skip to content

[codex] Fix preview auto-update restart handling#20

Merged
QuickMythril merged 2 commits into
mainfrom
codex/core-auto-update-apply-guard
Jun 4, 2026
Merged

[codex] Fix preview auto-update restart handling#20
QuickMythril merged 2 commits into
mainfrom
codex/core-auto-update-apply-guard

Conversation

@QuickMythril
Copy link
Copy Markdown
Contributor

Summary

  • preserve preview run.pid tracking across auto-update restarts
  • stop the auto-update apply helper from restarting Core when the verified replacement JAR is missing or cannot be copied into place
  • add ApplyUpdate regression coverage for pid-file resolution and replacement-JAR success/failure behavior
  • update the Qortium Core changelog entries for the auto-update restart fixes

Why

Auto-update restarts bypass the preview launch scripts, so pid-file tracking needed to be preserved directly in the apply path. Separately, ApplyUpdate could relaunch the existing old JAR even after replacement failed, allowing the same approved manifest to be detected again and causing a repeated download/apply/restart loop.

Validation

  • mvn test -DskipJUnitTests=false -Dtest=ApplyUpdateTests

@QuickMythril QuickMythril marked this pull request as ready for review June 4, 2026 07:21
@QuickMythril QuickMythril merged commit d7a11d4 into main Jun 4, 2026
9 checks passed
@QuickMythril QuickMythril deleted the codex/core-auto-update-apply-guard branch June 4, 2026 07:21
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