GitHub 插件详情页因 Manifest secrets source 校验失败而无法安装
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: jermy
**客户端版本**: 0.1.33
---
## 现象
在插件市场打开 GitHub 插件详情页并尝试安装时,页面持续报内部错误,插件无法进入安装或 GitHub 授权步骤。重启 Cindy 后问题仍可稳定复现。
主进程日志反复出现:
```text
[plugin-market-ipc] plugin market IPC failed
response.plugin.currentRelease.manifest 不合法:
network.secrets[].source 仅支持 user / login-email / oauth / login-feishu-token / oidc-token(缺省 user)
```
随后 Electron IPC 抛出:
```text
Error occurred in handler for 'plugin-market:detail'
Error: [INTERNAL] Plugin market operation failed
code: 'INTERNAL'
```
当前客户端已检查更新,日志显示 current 与 latest 均为 0.1.33,没有可安装的新版本。问题发生在插件详情 Manifest 校验阶段,而不是 GitHub OAuth、账号授权或 Token 校验阶段。
## 复现步骤
1. 打开 Cindy 插件市场。
2. 找到 GitHub 插件。
3. 点击进入插件详情或点击安装。
4. 插件详情操作失败,UI 显示内部错误,无法继续安装。
5. 完全退出并重启 Cindy 后重复上述步骤,结果不变。
## 期望行为
GitHub 插件当前发布版本的 Manifest 应与稳定版 Cindy Host 支持的 Ghost Schema 兼容;插件详情页应正常打开,并能进入安装和 GitHub OAuth/配置流程。
如果插件使用了新版本的 `network.secrets[].source`,市场应按 Host 版本返回兼容 Release,或在发布时阻止不兼容 Manifest 上架;UI 也应显示具体兼容性错误,而不是笼统的 `INTERNAL`。
## 实际行为
市场返回的 GitHub 插件 `currentRelease.manifest` 无法通过当前 Cindy 的 Schema 校验,导致详情页和安装流程在授权前直接中断。反复点击会连续产生相同 `plugin-market:detail` 错误。
---
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN
Contributor guide
Research direction
Start with the `plugin-market:detail` IPC handler and the validation of `response.plugin.currentRelease.manifest`, focusing on `network.secrets[].source` and the Ghost Schema supported by the stable Host. Reproduce the GitHub plugin detail or install flow, then verify that a compatible release is selected or the UI reports a specific compatibility error instead of `INTERNAL`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100