mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add explicit daemon package replacement from the CLI (#45580)
## What changed Add `codex app-server daemon update --from-cli` to copy and pin the invoking CLI's complete package, including downgrades and local builds. Require interactive confirmation or `--yes`, and warn that restarting a running daemon may interrupt work. Validate and stage the package before stopping the daemon, recheck the selection and running state after confirmation, and restart only a previously running daemon. Migrate legacy daemon installations to the dedicated package directory while preserving the standalone CLI selection. Explicit replacements disable automatic package updates. ## Testing Add coverage for cancellation, packages changed during confirmation, version pinning, and legacy migration. Extend CLI integration tests to verify noninteractive confirmation requirements, rejection of incomplete packages without stopping the daemon, and successful replacement and restart. GitOrigin-RevId: 2d971d6f0259aa576a15a8b115ca9d0e89060fdf
This commit is contained in:
1 parent
19286b8819
commit
fc269b66ad
10 files changed
+625
-79
No files matched your search
@@ -5,6 +5,11 @@
|
||||
slow-timeout = { period = "30s", terminate-after = 2 }
|
||||
retries = 1
|
||||
|
||||
[[profile.default.overrides]]
|
||||
# This case validates and copies both the initial and replacement debug package.
|
||||
filter = 'package(codex-cli) & binary(app_server_daemon) & test(=packaged_daemon_start_and_explicit_replacement)'
|
||||
slow-timeout = { period = "1m", terminate-after = 3 }
|
||||
|
||||
[[profile.default.overrides]]
|
||||
# These cases copy a full debug CLI package and launch its new executable.
|
||||
filter = 'package(codex-cli) & binary(app_server_daemon) & test(packaged_daemon_)'
|
||||
|
||||
Reference in new issue
Block a user