Repository navigation
修复读取图片时展示原始内容的问题 - #201
Merged
Merged
修复读取图片时展示原始内容的问题#201
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
读取图片后,桌面端原先会把工具返回的 Base64/JSON 展示为文件内容;较大的图片还会被 Runner 的 10,000 字符限制截断,导致无法解码。现在工具详情显示等比图片预览,支持放大、缩小,并按原顺序保留随附文字。
imageView。相对路径使用任务工作目录,读取失败保留原始错误。验证:macOS 本地累计 417 项测试通过,1 项原有滚动性能测试按配置忽略。回归覆盖多种内容块格式、多图与文本顺序、大图传递、任务相对路径、错误保留,以及真实 PNG 解码和 GPUI 展开/缩放/收起交互。
以下命令全部通过:
范围:本次实现桌面端图片预览;音频、视频和文档内容块显示暂不支持提示。Remote Web 未在本次修改;未进行真实模型调用和 Windows/Linux 实机验收。
Closes #192