Repository navigation
fix(plugin): verify native support only for changes that run a command - #873
Merged
Merged
Conversation
prepareChange probed native command support before applying the intentional skip rules. When the probe failed under update --all, the change was marked as a failed target, so the later skip never applied. An imported Grok plugin always hit this: Grok updates require native trust, so every update --all exited nonzero even though Grok plugins are documented as updated natively. #853 patched the same ordering for imported OMP plugins only. Run the probe after the skip rules instead, so a skipped change is never verified, and drop the OMP-specific exemption it made redundant. Host errors and changes that do run a native command still fail as before.
The translated plugin references said OMP removal requires a scope-matching native registration. English, and the code, only require that a registration match when one is present; a retry after native uninstall proceeds from the retained cache. The runbook's Pass Criteria also did not cover the two scenarios #853 added as steps 4 and 5.
Codex Review Summary: ✅ CompletedThis 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. |
This was referenced Nov 12, 2026
Merged
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.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Summary
Follow-ups from the #853 review.
prepareChangeprobed native command support (verifyCommand) before the skip rules. Underupdate --alla failed probe marked the change failed, so the later intentional skip never applied. An imported Grok plugin always hit this, because Grok updates require native trust: everyupdate --allexited nonzero, though the docs say Grok plugins update natively. fix(plugin): refresh stale OMP catalog and report blocked OMP updates #853 patched the same ordering for imported OMP plugins only. The probe now runs after the skip rules, and the OMP-only exemption is removed because the reorder covers it. Host errors and changes that run a native command still fail as before.reference/commands/plugin.mdtranslations said OMP removal requires a scope-matching native registration. English and the code (omp_remove.go) only require a registration to match when one is present. They now mirror the English two-sentence structure.omp_plugins_removal_runbook.mdPass Criteria now cover steps 4 and 5 added in fix(plugin): refresh stale OMP catalog and report blocked OMP updates #853.Behavior change:
update demo --target grokon an imported Grok plugin used to be blocked by the native-trust error. It is now an intentional skip that points to the native client. Imported pi (project mode), OpenCode v1 and Codex without marketplace upgrade follow the same rule.Linked Issue
Follow-up to #853 (no separate issue).
Testing
TestImportedGrokPluginIsSkippedByUpdateAllfails onmain(Failed: truewith the Grok trust error) and passes with the fix: preview is a non-failedplugins.skip.importedskip, and apply reportsskipped.TestGrokInstallStillRequiresNativeTrustchecks that a change that runs a native command is still verified after the move.make checkpassed in a devcontainer-image container for this worktree;internal/plugin,cmd/skillshareandgo vet ./internal/plugin/were rerun after the second test was added.python3 scripts/ai-context.py checkpassed.omp(only its Pass Criteria text changed).Not covered
plugin add --json, but apply runsplugin marketplace upgrade. This is not changed by this PR and is left for a separate fix.Checklist
make check) — for code changes