-
Notifications
You must be signed in to change notification settings - Fork 523
Codex/pr533 update recovery hardening #803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
batuchek68-ux
wants to merge
16
commits into
lidge-jun:main
from
batuchek68-ux:codex/pr533-update-recovery-hardening
+3,192
−97
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e332d22
fix(update): preserve proxy on npm cache failures
7efed6c
fix(update): harden cache preflight and recovery
6db4dc7
fix(update): close failed-install recovery gaps
5c35865
fix(update): harden preflight and recovery races
55d72e6
fix(update): consolidate replacement pid checks
f1f75fa
fix(update): revalidate restart pid identity
e3a837e
fix(update): close failed-install recovery races
07f0748
fix(update): harden failed-install recovery
ea27540
fix(update): close final recovery trust gaps
5564b03
fix(update): harden CLI installer cleanup
1fdc443
fix(update): close installer recovery review gaps
a9daa12
fix(update): address recovery review feedback
eb9f89f
fix(update): harden recovery scan boundaries
8dfe46d
fix(update): close recovery review gaps
d215cbe
fix(update): harden npm recovery preflight logs
lidge-jun b0434ea
test(update): assert launcher suffix with platform separator
lidge-jun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Both updaters hide the timeout and interruption cause behind the tree-cleanup message.
runProcessTreeCommandsetstreeExited = process.platform === "win32" && knownGroupExitedwhenever cleanup ran (src/update/install-process.mjslines 319-324), so on Linux and macOS a timeout or a forwarded signal always lands in the!treeExitedbranch. Both updaters exit there before thetimedOutandinterruptedSignalbranches can report the cause.bin/ocx.mjs#L246-L250: includeres.timedOut,res.interruptedSignal, andres.statusin the cleanup-failure message beforeprocess.exit(INSTALLER_TREE_CLEANUP_FAILED_EXIT_CODE).src/update/index.ts#L271-L275: apply the same message change usingr.timedOut,r.interruptedSignal, andr.status, so the CLI and the launcher report the identical cause.📍 Affects 2 files
bin/ocx.mjs#L246-L250(this comment)src/update/index.ts#L271-L275🤖 Prompt for AI Agents