Skip to content

fix(plugins): make OMP removal previews deterministic - #949

Merged
runkids merged 1 commit into
runkids:mainfrom
rafi:fix/omp-removal-revision-order
Nov 18, 2026
Merged

runkids merged 1 commit into
runkids:mainfrom
rafi:fix/omp-removal-revision-order

Conversation

@rafi

@rafi rafi commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Problem: skillshare sync plugins intermittently fails with plugin state changed since preview; preview again when an OMP binding is removed or refreshed while other OMP plugins are registered.

ompRemovalPlan appended the other owners' package files to p.files while ranging over the plugins map. p.files is hashed in order into the removal revision, which is part of the plan fingerprint, so identical previews could produce different revisions and Apply rejected its own preview.

Fix: Iterate the registry in sorted key order. Adds a regression test that registers several other OMP plugins and checks the removal revision is stable.

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check) — for code changes
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

Apply rejected its own preview with "plugin state changed since preview"
when an OMP removal ran while other OMP plugins were registered: their
package files were fingerprinted in map iteration order.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T22:09:48.220085Z 7d3eb98 PR opened
ℹ️ 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.

@runkids
runkids merged commit ef07211 into runkids:main Nov 18, 2026
9 checks passed
@runkids

runkids commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks for the fix and the regression test! Merged, ships in the next release.

@rafi
rafi deleted the fix/omp-removal-revision-order branch November 21, 2026 18:59
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.

2 participants