Skip to content

Fix deferred uninstall recovery and stale application review - #2

Merged
Develifture merged 5 commits into
mainfrom
fix/review-session-and-identity
Oct 16, 2026
Merged

Develifture merged 5 commits into
mainfrom
fix/review-session-and-identity

Conversation

@Develifture

@Develifture Develifture commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

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.

  • Add Operation history → Review pending uninstall. Supported deferred sessions require explicit confirmation, a later Windows boot, absent registration, stopped recorded installer/job, and fresh supported folder-use checks. Preserve original results; legacy sessions first capture a boot reference and need a subsequent restart. This action performs no cleanup.
  • Retain registration exports while an installer is active or a pending session needs them. Recheck before disposal and hold application reservations from export creation through monitoring or deletion. Recognize replacement registrations under new registry keys by product metadata, including absent installation folders.
  • Revalidate the complete application record before backup or launch. Rejected attempts do not seed leftover previews. Persist sessions through uniquely created temporary files before replacement.
  • Discover pending sessions independently of missing, unreadable, or expired operation history. New launches retain their exact export path; ambiguous legacy snapshots stay blocked.
  • Continue discovery past individual corrupt/unreadable sessions and retain completed uninstall outcomes when final audit logging fails.
  • Prepare 0.1.1 version metadata and download instructions; include the changelog in portable packages.

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.

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T10:31:00.424234Z 182dfb1 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Develifture

Copy link
Copy Markdown
Owner Author

@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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/session_review.rs Resolved
Comment thread src/session_review.rs Resolved
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>
@Develifture

Copy link
Copy Markdown
Owner Author

@codex review

Both follow-up findings have been reproduced with failing owned-fixture tests and fixed:

  • Pending-session registration exports are retained. Deletion checks session state during review and again after confirmation, with product leases retained through deletion. Uninstall now holds that same lease from export creation through launch/monitoring, closing the pre-session-save gap. After supported session resolution, disposal becomes available.
  • Recovery rejects replacement registrations by name/publisher or nonempty uninstall command as well as original IDs/sources. Both preparation and confirmed execution recheck this, including absent/unknown installation folders and an operation reserved under the new source ID.

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/gui.rs Resolved
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>
@Develifture

Copy link
Copy Markdown
Owner Author

@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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/session_review.rs Resolved
Comment thread src/gui.rs Resolved
…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>
@Develifture

Copy link
Copy Markdown
Owner Author

@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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/session_review.rs Resolved
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>
@Develifture

Copy link
Copy Markdown
Owner Author

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.

@Develifture
Develifture merged commit 743f9d3 into main Oct 16, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant