Skip to content

Fix Agent updater cleanup on native shutdown - #1222

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-agent-updater-shutdown-runtime
Oct 23, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-agent-updater-shutdown-runtime

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Native Quit and Restart to Update poll the updater's exit cleanup on GPUI's foreground executor. Its Tokio timeout panics without a reactor, aborting the old process even when an update has already committed. Run cleanup on the existing backend runtime, retain its owner until cleanup finishes, and let GPUI await only the task handle. SQL shutdown and the committed installation fences keep their existing owners.

Bump Agent to 0.0.3 for the next immutable release. Also stabilize the SQL reset-refusal test by stopping and joining its background checkpointer before comparing physical database bytes; all existing refusal and cold-recovery assertions remain.

Validation:

  • Reactor-free foreground cleanup removes a real derived stage while preserving the installed app and downloaded payload.
  • Cleanup with a retired backend preserves both committed host fences after the last controller handle drops.
  • The SQL reset-refusal fixture passes with every existing assertion retained.
  • Full Agent CI passed through the normal pre-commit hook: formatting, all Clippy feature sets, full workspace build/tests, and headless tests.

The signed 0.0.1 → 0.0.2 rehearsal reproduced the shutdown panic while confirming replacement, automatic relaunch, login/settings persistence and native menu actions. A signed 0.0.3 package and clean native Quit/reopen validation are still required.

Tracks #1223 for the Windows fixture stabilization and next-master verification.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@AnthonyRonning
AnthonyRonning merged commit f6c1d01 into master Oct 23, 2026
39 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