Multiple projects could spawn duplicate heavyweight runtimes, while settings changes and remote reconnection could cancel or strand native conversations. Share compatible local OpenCode and DeepSeek Harness process owners and Agent-owned ACP connections, retaining workspace routing, per-session modes, model attribution, question ownership, targeted cancellation and idle cleanup. Restore remote pending questions and terminal task projections across reconnect and desktop restart, and preserve accepted ordinary requests during settings replacement while cancelling expert-team parents with their replaced scheduler. Extend regression coverage and Agent type checks. Record measured resource and real-model validation results, including failures and limitations. Also include the conversation media-generation design drafts (not an implemented feature), documentation entry links and dedicated Linux test-directory guidance. Desktop and Agent changes must be delivered together for shared process results. Validation: typecheck and lint passed; staged content and documentation links checked. Prior full regression and live-model evidence are recorded in progress notes; no new full test suite or model calls were run for this commit. Release note: 多项目会话现在复用兼容的 OpenCode 和 DeepSeek Harness 进程,减少重复启动并保持工作区、工具和取消隔离。修复远端问答在断线、重启及配置更新后的恢复与状态同步问题,Desktop 与 Agent 需配套更新。
会话媒体生成
状态:设计草案,尚未实现。日期:2026-09-15。
用户添加生图或生视频模型后,可以开启“允许 AI 在会话中调用”。支持工具调用的聊天模型通过 GoodBuddy 使用这些模型,图片和视频返回当前会话。切换聊天模型或 Agent Runtime 时,生成模型配置、已提交的生成操作和历史成果各自保持明确的归属。
本目录负责普通 LLM 调用媒体模型的产品行为、调用入口和生命周期。现有直连图片协议及连续修改仍由图片生成维护;本设计不表示现有功能已改变。
首期范围
首期以图片为主:在直连文本 Model Runtime 中调用已有生图协议,支持文生图及协议已有的参考图编辑。提供模型调用开关、全局默认和本次指定模型,复用图片成果展示。切换聊天模型或离开会话后,已提交生成继续执行,结果保存到原会话。
视频、其他 Runtime 的自动调用、会话级生成模型选择、独立生成表单及跨重启查询恢复留到后续。首期只需 generate_image 核心工具,Skill 按实际使用需要补充。需求的阶段划分以产品需求为准;下文各设计保留的后续规则不作为首期实现要求。
文档导航
| 文档 | 权威职责 |
|---|---|
| 产品需求 | 范围、需求编号与产品验收 |
| 用户场景 | 用户操作及场景验收 |
| 行为规则 | 选择优先级、切换规则、状态和失败处理 |
| 界面设计 | 配置入口、会话操作、结果卡片和反馈 |
| 技术设计 | Skill、工具、Main 服务、存储与 Runtime 接入 |
| 进度记录 | 当前代码事实、剩余工作与验证证据 |
术语与依赖
聊天模型负责理解请求、调用工具和组织回答;生成模型负责图片或视频输出;Agent Runtime 承载聊天模型及工具执行。Skill 提供能力使用说明,工具提供结构化调用入口,两者不能互相替代。
“生成操作”指一次媒体生成及其结果记录,不自动创建任务中心的 Task,也不引入新的通用 Job 调度系统。领域边界遵循 Task 与 Job 模型。
- 模型连接:连接、凭据、协议及请求定制。
- 直连文本 Agent:文本工具循环与上下文。
- 远程主机:远程 Runtime 与桌面通信。
- 统一界面规则:控件、反馈和可访问性。