Skip to content

fix(plugin): verify native support only for changes that run a command - #873

Merged
runkids merged 2 commits into
mainfrom
runkids/plugin-imported-skip-followups
Nov 12, 2026
Merged

runkids merged 2 commits into
mainfrom
runkids/plugin-imported-skip-followups

Conversation

@runkids

@runkids runkids commented Nov 12, 2026

Copy link
Copy Markdown
Owner

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)

Summary

Follow-ups from the #853 review.

  • Intentional skips are no longer reported as failed targets. prepareChange probed native command support (verifyCommand) before the skip rules. Under update --all a 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: every update --all exited 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.
  • Translations: the four reference/commands/plugin.md translations 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.
  • Runbook: omp_plugins_removal_runbook.md Pass 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 grok on 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

  • New TestImportedGrokPluginIsSkippedByUpdateAll fails on main (Failed: true with the Grok trust error) and passes with the fix: preview is a non-failed plugins.skip.imported skip, and apply reports skipped.
  • New TestGrokInstallStillRequiresNativeTrust checks that a change that runs a native command is still verified after the move.
  • make check passed in a devcontainer-image container for this worktree; internal/plugin, cmd/skillshare and go vet ./internal/plugin/ were rerun after the second test was added.
  • python3 scripts/ai-context.py check passed.
  • Not run: the website build, and the OMP runbook against a real omp (only its Pass Criteria text changed).

Not covered

  • Imported Codex updates are verified against plugin add --json, but apply runs plugin marketplace upgrade. This is not changed by this PR and is left for a separate fix.

Checklist

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

chatgpt-codex-connector Bot commented Nov 12, 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-12T06:06:51.880752Z e00fab0 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 0939eb9 into main Nov 12, 2026
9 checks passed
@runkids
runkids deleted the runkids/plugin-imported-skip-followups branch November 15, 2026 17:52
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