codex/scripts
Eric Traut adee0b04fa Preserve standalone release pins during daemon updates (#43521)
## Why

Bootstrapping the app-server daemon should preserve an explicitly selected release, even when that version is currently `latest`. Older managed binaries should also be able to serve app-server without supporting the updater command.

## What changed

- Record `latest` selections in `auto-update-version` in both standalone installers and clear the marker for explicit releases.
- Start the daemon updater only for a marked stable release whose binary supports `pid-update-loop`. Existing installs without a marker require a new `latest` installation to enable automatic updates.
- Recheck the selected release under the install lock so an in-flight update cannot overwrite a new pin, including installer calls from older updaters. Recheck selection before restarting app-server or replacing the updater.
- Cancel Unix installer process groups and clean up their owned fallback locks when the updater stops.

## Testing

Add coverage for channel markers, explicit pins of the current latest version, older updater guards, updater command support, and Unix installer cancellation with child-process and lock cleanup.

GitOrigin-RevId: 4d275237bd77d896bf64dc1b85a5bca3608142c7
History 2026-09-07 17:18:02 +00:00
..
codex_package Pin V8 release manifests and prevent published release replacement (#43444) 2026-09-07 11:55:57 +00:00
install Preserve standalone release pins during daemon updates (#43521) 2026-09-07 17:18:02 +00:00
mcp_conformance Add CIMD support to MCP OAuth registration (#38089) 2026-08-12 00:01:01 +00:00
asciicheck.py Enforce ASCII in README.md (#513) 2025-04-22 10:07:40 -04:00
build_codex_package.py build: add Codex package builder (#23513) 2026-05-19 19:54:03 +00:00
check-module-bazel-lock.sh [codex] Keep Bazel startup options stable across commands (#26256) 2026-06-04 20:23:37 -07:00
check_blob_size.py Check root Python script formatting in CI (#25165) 2026-06-01 18:50:23 +00:00
debug-codex.sh Enable plan tool by default (#5384) 2025-10-21 16:25:05 +00:00
format.py Format Python scripts across the repository (#42109) 2026-09-01 17:47:29 +00:00
just-shell.py Check root Python script formatting in CI (#25165) 2026-06-01 18:50:23 +00:00
list-bazel-clippy-targets.sh [codex] Fix Windows BuildBuddy Bazel wrapper execution (#25915) 2026-06-02 16:22:32 -07:00
list-bazel-release-targets.sh [codex] Add hermetic Wine exec-server test (#27937) 2026-06-12 20:20:23 -07:00
mock_responses_websocket_server.py Standardize shell execution on unified exec (#39757) 2026-08-20 17:46:05 +00:00
pyproject.toml Check root Python script formatting in CI (#25165) 2026-06-01 18:50:23 +00:00
readme_toc.py Check root Python script formatting in CI (#25165) 2026-06-01 18:50:23 +00:00
run_tui_with_exec_server.sh Run exec-server fs operations through sandbox helper (#17294) 2026-04-12 18:36:03 -07:00
stage_npm_packages.py Move npm package staging into a separate release workflow job (#43281) 2026-09-06 20:57:56 +00:00
start-codex-exec.sh Auto install start-codex-exec.sh dependencies (#17990) 2026-04-15 13:27:17 -07:00
test-remote-env.sh ci: route build IO through Dev Drives (#31357) 2026-07-08 14:06:37 -07:00
uv.lock Check root Python script formatting in CI (#25165) 2026-06-01 18:50:23 +00:00
workspace-status.cmd Add Bazel preparation for native voice runtimes (#43114) 2026-09-05 22:27:22 +00:00
workspace-status.sh Add Bazel preparation for native voice runtimes (#43114) 2026-09-05 22:27:22 +00:00