test(codex): add real plugin lifecycle smoke#255
Conversation
Exercise Codex 0.144.6 against an isolated local marketplace and Responses server for first-install and update sessions. Preserve published plugin roots across the CLI marketplace reconciliation so active hooks remain usable until explicit pruning.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 15b82ee09e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| rm -rf "${target_root:?}" | ||
| cp -R -p "$backup_root" "$target_root" |
There was a problem hiding this comment.
Skip restoring broken current cache roots
If a prior --user run was interrupted and left the current-version cache root incomplete, this restore path backs up that broken directory, lets codex plugin add recreate a good one, and then deletes the fresh target and copies the broken backup back over it. In that recovery scenario the installer exits successfully but the plugin remains missing files or executable hooks, so a normal rerun cannot heal the cache; only restore roots that were actually removed/superseded, or avoid overwriting an existing freshly installed target.
Useful? React with 👍 / 👎.
Summary
Validation
scripts/test-installation.shscripts/test-codex-plugin-lifecycle.shwith Codex 0.144.6Fixes #252