Skip to content

feat(chat): 通过 Markdown 引用发布图片和文件 - #1196

Draft
sheepbox8646 wants to merge 1 commit into
mainfrom
feat/markdown-media-publication
Draft

sheepbox8646 wants to merge 1 commit into
mainfrom
feat/markdown-media-publication

Conversation

@sheepbox8646

Copy link
Copy Markdown
Member

当前会话分享图片或文件不应要求 Agent 调用 send。本次改为在正文中使用 ![说明](/data/image.png)[文件名](/data/report.pdf),由消息发布与展示层解析,并归档实际文件内容,避免源文件覆盖或删除后历史消息失效。

  • 保留 send,移除模型可见的附件参数。chat 模式直接回复当前会话;跨会话发送必须指定平台和目标,并在平台解析别名后再次检查。discuss 与 schedule 保留显式发送。
  • Web 展示鉴权后的归档图片及文件下载;公共 Channel 出站层按正文顺序拆分媒体与文本,复用各平台上传、格式化和分段实现。
  • 增加工作区防符号链接读取、远程图片下载限制、失败隔离、部分成功反馈及最终事件重试去重。Email 当前不支持附件出站,媒体引用明确降级并返回部分成功。
  • 更新提示词,并补充实现说明与验收清单:docs/design/markdown-media-publication.md

验证:提交钩子的全仓 go test ./...、Go lint 和暂存文件 ESLint 全部通过;19 项前端测试及 Web 生产构建通过。全仓 ESLint 曾出现 scopeManager.addGlobals is not a function;Web 项目类型检查仍有报错。改动文件的 ESLint 检查通过。

尚未完成 Discord、Telegram 与 Web 的 Computer Use 端到端验收:本地 Docker/后端无响应,Telegram 点击返回 AXError.noValue,Discord 尚无已确认的专用测试频道;需要明确 Discord 测试频道和 Telegram 测试 Bot/群。公共出站和适配器自动化测试不替代真实客户端验收。

⚠️ No human QA — this PR has not been verified by a human yet. Remove this line once a human confirms the happy path.

@sheepbox8646 sheepbox8646 added change:server Changes backend code, configuration, or API contracts change:web Changes web frontend or shared frontend packages size:L PR size uses the larger of added or deleted lines, excluding generated files labels Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:server Changes backend code, configuration, or API contracts change:web Changes web frontend or shared frontend packages size:L PR size uses the larger of added or deleted lines, excluding generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant