fix(codex): safely repair plugin marketplace registration - #61
Open
zhushihao wants to merge 1 commit into
Open
Conversation
Detect enabled cached plugins missing from the personal marketplace, validate manifest paths inside the Codex cache, preserve existing marketplace entries, and expose an explicit repair action.\n\nCloses BigStrongSun#51
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.
Closes #51
变更摘要
本 PR 为 Codex 插件登记增加独立、可解释且需要用户确认的检测与修复流程。CCSwitchMulti 只处理个人 marketplace 登记,不修改 Codex 的插件启用状态。
关键改动
config.toml读取已启用插件,兼容name@personal和旧的裸名称键。.codex/plugins/cache内校验 manifest、版本和 canonical 路径,拒绝路径穿越。验证结果
cargo test --lib codex_plugin_registry::tests:4 passed / 0 failedpnpm exec tsc --noEmit:通过git diff --check:通过风险与回滚
只写入用户个人 marketplace 的登记数组;原有其他条目和 Codex
[plugins]启用状态不变。回滚本提交即可。关联 Issue