codex/scripts
Eric Traut 321dcf5a6f Allow daemon updates to restore pinned packages to latest stable (#45780)
## Why

`codex app-server daemon update` previously required a latest-channel installation, leaving pinned and local managed packages unable to return to production updates through that command.

## What changed

- Allow explicit updates to restore managed packages to the latest stable release while preserving the automatic-update preference. Extend legacy migration to local and pinned packages when the published installer and release support it.
- Bind restoration to the selected release with a single-use updater authorization and installer guards. Scheduled updates and ordinary updater socket requests continue to respect pins.
- Restart a running daemon when its selected package changes, even if the binary and version are identical; leave stopped daemons stopped.
- Reject incompatible production packages before selecting them, resolve Windows junction targets for ownership checks, and show the restoration command after installing a pinned CLI package.

## Testing

Extend daemon and installer tests to cover local-package migration, restoration with automatic updates enabled or disabled, same-binary package restarts, stopped-daemon preservation, selection races, incompatible releases, and socket requests that must not undo pins.

GitOrigin-RevId: d64520c1190b5c7bac084fb4a1b6b24998b08dfa
History 2026-09-15 19:51:06 +00:00
..
codex_package Use gzip compression level 6 for Codex package archives (#45039) 2026-09-12 13:13:20 +00:00
install Allow daemon updates to restore pinned packages to latest stable (#45780) 2026-09-15 19:51:06 +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
build_winget_package.py Bundle native voice runtimes in Windows releases (#44922) 2026-09-11 21:59:24 +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