Repository navigation
Fix deferred uninstall recovery and stale application review - #2
Conversation
Add explicit restart-aware session review to Operation history, retaining exit results and blocking unresolved processes, registration, and records. Require full application equality before uninstall backup or launch and exclude rejected attempts from leftover previews. Write session updates through exclusive temporary files. Document legacy boot references, saved-export requirements, and remaining validation limits. Validation: 82 Windows checks, both Clippy configurations, formatting, and native History control inspection. Reboot transitions use owned fixtures and controlled boot counters; no actual UAC or reboot was exercised. Co-authored-by: Codex <codex@openai.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review Please independently review these fixes for both findings from PR #1: the permanently deferred installer-session state and stale application identity accepted before uninstall. Focus on whether restart resolution can bypass a running installer, active lease, stale confirmation, reappearing registration, unsupported exit status, other unresolved session, or redirected storage. Check compatibility with old session JSON and preservation of original outcomes. Also verify complete application revalidation, backup metadata, and the post-uninstall GUI preview path. The 82 local checks passed and the History controls were inspected. Controlled boot counters exercise the transition logic; actual UAC/reboot validation remains outstanding. Use only owned temporary fixtures for any runtime checks. Do not target installed applications or live user data, and do not modify the PR during the review. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 34f2c2b6cc
ℹ️ 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".
Hold product reservations from export creation through installer monitoring, and reject disposal while pending sessions need registration metadata. Recheck disposal after confirmation and detect replacement registrations using product metadata even without an installation folder. Prepare version 0.1.1 and include its changelog in portable packages. Co-authored-by: Codex <codex@openai.com>
|
@codex review Both follow-up findings have been reproduced with failing owned-fixture tests and fixed:
The final 0.1.1 source passes all 84 local checks, both Clippy configurations with warnings denied, and formatting checks. Please review the updated complete PR, especially lease lifetime, deferred-export disposal, and replacement identity. Do not modify the PR or target installed applications/live user data. Actual UAC and reboot validation remain outstanding. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b600731ef0
ℹ️ 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".
Expose durable session/export recovery entries even if history is missing, unreadable, or expired. Persist exact export paths for new launches and reject conflicting legacy export snapshots rather than guessing. Co-authored-by: Codex <codex@openai.com>
|
@codex review The missing-history entry-point finding is reproduced and fixed. Operation history now merges separately discovered durable pending sessions, even if history is absent, unreadable, or past its retention window. These entries use the same tested review target as the GUI. New native/elevated sessions record their exact registration export; legacy discovery rejects conflicting snapshots. Review still performs the same boot, process, registration, lease, and path checks before confirmation and execution. All 86 local checks, both Clippy configurations, and formatting pass. The new regression resolves owned sessions through the GUI's target parser with missing/unreadable/expired history, and checks exact export persistence and ambiguous legacy rejection. Please review the final updated PR without modifying it or targeting live applications/user data. Actual UAC/reboot coverage remains outstanding. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c570f82033
ℹ️ 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".
…ilures Report corrupt session records individually while continuing discovery. Retain completed uninstall outcomes and preview eligibility when final audit logging fails, and surface the history error in the result status. Co-authored-by: Codex <codex@openai.com>
|
@codex review Both remaining findings are fixed. Discovery now enumerates session records individually through the bounded/path-checked reader, reports per-record errors, and retains valid pending entries despite malformed JSON, a directory replacing a JSON file, or a locked file. Strict cleanup/session gates still fail closed on bad storage. The final audit append now preserves the completed UninstallOutcome, process-session identity, original exit result, and safe_to_scan value. A logging failure is surfaced in the outcome status, so it is not confused with a pre-launch rejection and the GUI retains its normal preview/batch decision. All 88 local checks pass, with both Clippy configurations and formatting clean. New owned-fixture regressions cover discovery alongside all three bad-record cases and a real tracked process completion followed by failed final logging. Please review without modifying the PR or using live applications/user data. Actual UAC/reboot validation remains outstanding. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 182dfb12af
ℹ️ 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".
Discover validated registration exports directly and retain per-export errors without discarding valid entries. Add an owned recovery regression with an unrelated invalid quarantine store. Co-authored-by: Codex <codex@openai.com>
|
Addressed the final finding by discovering legacy registration exports directly from registry-backups, independently of unrelated backup stores. Per-export failures remain visible without discarding other validated exports. The owned regression resolves its legacy session with an invalid quarantine store present. All review findings have now been addressed with regression coverage. Final local validation passes 89 checks, both production and fixture Clippy configurations with warnings denied, and formatting. I am merging the fixes and publishing the validated 0.1.1 package. GitHub-hosted CI still cannot start due to the account billing lock; actual UAC/reboot validation remains outstanding. |
Deferred uninstall sessions could permanently block cleanup after an elevation fallback or reboot-required result. Application details changed while the UI was open could also be uninstalled using stale metadata. Version 0.1.1 fixes these findings from the full-app review and adds regression coverage.
Validation on Windows: 89 checks passed, both production and fixture Clippy configurations passed with warnings denied, and formatting passed. The stale-location and both follow-up defects reproduced before their fixes. The native History controls and selection-based availability were inspected. Fixture launchers remain excluded from production packages.
Restart tests use controlled boot inputs and owned temporary fixtures. Actual elevated operations and reboot continuation remain unverified. GitHub-hosted CI cannot start because of the account billing lock; local results are not a hosted CI pass. The published download remains 0.1.0 until this PR is merged and 0.1.1 is packaged and released.