Repository navigation
fix(agents): preserve plugin installs on windows and codex - #931
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Managed plugins could block every new session after a successful installation. On Windows, filesystem reads lose POSIX executable bits; Canopy treated that as code drift. Codex also refreshes versioned plugins from
localinto their manifest version, leaving Canopy’s ownership record and launch receipt pointing at a missing directory.This change compares installed files using Windows filesystem semantics while preserving canonical artifact and approval checksums. Codex uses its preferred manifest version for the cache directory. Exact owned bundles moved by older Codex sessions recover their ownership atomically; upgrades and downgrades retire old owned versions before activation. Interrupted retirement remains recoverable until transaction cleanup and directory removal finish. Invalid manifest versions block only their affected targets, allowing retired activation to be removed; missing or null versions use the native
localfallback. Modified files, symlinks, private additions and competing cache entries remain blocked and preserved.Validation:
check:tmp(including cleanup). The 10 migration regressions cover interrupted retirement, atomic ownership recovery, malformed replacements, upgrades, downgrades and private-file preservation.itsolpowers0.26.0.Copy audit (§8): diagnostic messages identify the problem and an action in English, using existing error details. “Resolve its ownership” → “Move the extra entry before syncing this plugin” gives a concrete recovery step. No new controls or layout changes.
Fixes: #69
Fixes: #63