feat(web-ui): 为 view_image 工具增加对话内图片预览卡片#1491
Open
liuxingyu521 wants to merge 1 commit into
Open
Conversation
让 view_image 的执行结果在 Flow Chat 中可见:复用默认工具卡片展示头部, 并在下方懒加载图片预览,支持右上角在编辑器中打开。 Co-authored-by: Cursor <cursoragent@cursor.com>
Collaborator
|
首先,这个显示要考虑一下远程工作区的情况。 |
Author
|
远程工作区的确还没使用了解过,我下来先去看看影响,这次修改只在本地模式下增加了纯 UI 展示模块。 新增的图片展示主要是解决想让 Agent 展示图片的时候直接展示在对话中,而不是只有图片信息,例如让 agent 生成一张图片它可以直接展示出来,痛点见 issue #1490 |
Owner
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.

让 view_image 的执行结果在 Flow Chat 中可见:复用默认工具卡片展示头部,
并在下方懒加载图片预览,支持右上角在编辑器中打开。
Summary
Fixes #1490
Type and Areas
Type: Feature
Areas: web UI
Motivation / Impact
Verification
Reviewer Notes