mirror of
https://github.com/openai/codex.git
synced 2026-09-11 20:36:49 +00:00
## Why The managed daemon's updater used a fixed hourly cadence with no saved preference to disable automatic updates. ## What changed - Read `updater.autoUpdateEnabled` and `updater.updateIntervalMinutes` from `CODEX_HOME/app-server-daemon/settings.json`, defaulting to enabled with a 60-minute interval. Keep the initial five-minute delay and require a positive interval. - Apply the enabled preference during daemon lifecycle operations and re-read settings before updates and recurring waits. Preserve updater preferences and unknown fields when saving remote-control settings, using atomic file replacement. - Signal the updater's process group on Unix so stopping it also terminates installer children. Allow daemon shutdown even when settings are malformed. - Document updater configuration and remote-control preference behavior. Manual `codex update` remains unaffected. ## Testing Add tests for settings preservation, interval validation, recurring waits, enabling and disabling updates across restart and bootstrap, Unix installer termination, and shutdown with malformed settings. GitOrigin-RevId: 5dbb72c5939e9ced2390b3760a7265608c8b61a0