Skip to content

fix(agents): preserve plugin installs on windows and codex - #931

Merged
nixuuu merged 1 commit into
devfrom
fix/skill-configuration-issue
Nov 17, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/skill-configuration-issue

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 17, 2026

Copy link
Copy Markdown
Member

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 local into 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 local fallback. Modified files, symlinks, private additions and competing cache entries remain blocked and preserved.

Validation:

  • Targeted filesystem, Windows-mode, native-cache, migration and gateway–worker tests passed through check:tmp (including cleanup). The 10 migration regressions cover interrupted retirement, atomic ownership recovery, malformed replacements, upgrades, downgrades and private-file preservation.
  • Native forced refresh verified with Codex 0.164.0 and 0.169.0; real model sessions exercised itsolpowers 0.26.0.
  • Worker and integration-test package typechecks, edited-file lint, formatting and diff checks passed locally. Windows metadata behavior is simulated on Linux; no native Windows execution.
  • Full repository verification and builds are left to CI.

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

@nixuuu
nixuuu enabled auto-merge (squash) November 17, 2026 12:49
@nixuuu
nixuuu merged commit fd1948c into dev Nov 17, 2026
15 checks passed
@nixuuu
nixuuu deleted the fix/skill-configuration-issue branch November 17, 2026 12:55
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