维护者确认:PR #4523 插件基座 ghost_call 媒体结果持久化
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
PR https://github.com/makecindy/cindy/pull/4523(fix(mobile): render host-produced ghost media,作者 fancive)改到插件基座,需要维护者确认后再合并。
## 这次改了什么
修复 #4476:Mobile 解析 `xdt_media_produced` 中的受管图片/视频/音频;Desktop 在 `ghost_call` 的 tool result echo 丢失时,用主机媒体账本结果做持久化兜底。
命中插件基座路径:
- `apps/desktop/src/main/mcp-integrations/ghost.ts`
- `packages/cindy-tools/src/ghost/mcpServer.ts`
- `packages/cindy-tools/src/types.ts`
相关核心路径还包括 `mediaToolResultFallback.ts`、`messagePersistBroadcaster.ts`、`payloadSummary.ts`(arch 核心路径约 299 行)。作者声明:新增回调为 Host 内部可选接口,不改变 manifest、权限、安装布局、批准状态或插件作者契约。
## 为何需要维护者确认
这是插件基座改动,会影响全部已装插件的共同地基。仓库规则要求:pluginBase 无阈值,且不吃 bugfix / 纯技术改动豁免;用户升级后什么都不做时,已装、已批准、已启用的插件必须照旧可用。请对照 `docs/dev-rules/plugin-security-and-authoring.md` 第 5 节确认存量插件兼容。
另有 arch 核心路径触发(≥150 行),当前 blocker 是 pluginBase。
## 请维护者怎么做
请直接在 PR 上 Approve。若需要作者修改,请 Request Changes。普通评论、讨论 issue 留言或摘标签都不构成放行。
---
关联 PR:#4523(作者 @fancive);本 issue 由 review-pr 流程自动创建,用于先讨论该 PR 涉及的插件基座改动(影响全部已装插件),维护者确认后 PR 会恢复推进。
Contributor guide
Research direction
Review PR #4523 alongside apps/desktop/src/main/mcp-integrations/ghost.ts, packages/cindy-tools/src/ghost/mcpServer.ts, packages/cindy-tools/src/types.ts, and the related media persistence paths. Read section 5 of docs/dev-rules/plugin-security-and-authoring.md first, then verify that installed, approved, enabled plugins remain compatible without user action. Done means approving the PR or requesting changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop, mobile, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 20/100