cherry-studio icon indicating copy to clipboard operation
cherry-studio copied to clipboard

[功能]: 允许缓存对话中 markdown 引用的图片到本地

Open Zxilly opened this issue 7 months ago • 12 comments

提交前检查

  • [x] 我理解 Issue 是用于反馈和解决问题的,而非吐槽评论区,将尽可能提供更多信息帮助问题解决。
  • [x] 我已经查看了置顶 Issue 并搜索了现有的 开放Issue已关闭Issue,没有找到类似的建议。
  • [x] 我填写了简短且清晰明确的标题,以便开发者在翻阅 Issue 列表时能快速确定大致问题。而不是“一个建议”、“卡住了”等。
  • [x] 最新的 Cherry Studio 版本没有实现我所提出的功能。

平台

Windows

版本

v1.4.1

您的功能建议是否与某个问题/issue相关?

我希望能够添加一个选项,允许缓存对话中 markdown 引用的图片到本地。

有些生图服务商会选择以 chat 格式提供服务,以 markdown 格式返回指向生成的图片的链接,但是这样的链接通常有较短的有效期,希望能够提供一个选项,允许自动缓存对话中出现的图片,在加载图片时,同样优先尝试从缓存加载。

请描述您希望实现的解决方案

在加载图片之前添加一个缓存层,保存的信息共用现有的数据存储和备份逻辑。

请描述您考虑过的其他方案

导出功能只会原样导出图片为 url,可以编写一个 markdown 解析器来自动化下载并替换 url,但是仍然需要手动导出相应的对话。

其他补充信息

Image

Zxilly avatar Jun 07 '25 19:06 Zxilly

这个能满足需求吗: #7223

alephpiece avatar Jun 25 '25 14:06 alephpiece

应该可以,但是不太确定能不能进入备份,这个 window.api.file.download 的实现没看到

Zxilly avatar Jun 26 '25 05:06 Zxilly

This issue has been inactive for a prolonged period and will be closed automatically in 10 days. 该问题已长时间处于闲置状态,10 天后将自动关闭。

github-actions[bot] avatar Jul 27 '25 00:07 github-actions[bot]

相应的 PR 还没有合并,先保持 open 吧

Zxilly avatar Jul 27 '25 03:07 Zxilly

This issue has been inactive for a prolonged period and will be closed automatically in 10 days. 该问题已长时间处于闲置状态,10 天后将自动关闭。

github-actions[bot] avatar Aug 28 '25 00:08 github-actions[bot]

Keep active

Zxilly avatar Aug 28 '25 06:08 Zxilly

This issue has been inactive for a prolonged period and will be closed automatically in 10 days. 该问题已长时间处于闲置状态,10 天后将自动关闭。

github-actions[bot] avatar Sep 28 '25 00:09 github-actions[bot]

Keep active

Zxilly avatar Sep 28 '25 01:09 Zxilly

This issue has been inactive for a prolonged period and will be closed automatically in 10 days. 该问题已长时间处于闲置状态,10 天后将自动关闭。

github-actions[bot] avatar Oct 29 '25 00:10 github-actions[bot]

[!NOTE] This issue/comment/review was translated by Claude.

https://github.com/CherryHQ/cherry-studio/pull/7223 This PR has been open for four or five months, is no one reviewing it?


Original Content

https://github.com/CherryHQ/cherry-studio/pull/7223 这 PR 也放了四五个月了,没人 review 的吗

Zxilly avatar Oct 29 '25 01:10 Zxilly

This issue has been inactive for a prolonged period and will be closed automatically in 10 days. 该问题已长时间处于闲置状态,10 天后将自动关闭。

github-actions[bot] avatar Nov 30 '25 00:11 github-actions[bot]

[!NOTE] This issue/comment/review was translated by Claude.

update


Original Content

update

Zxilly avatar Nov 30 '25 10:11 Zxilly