feat(terminal): 支持终端粘贴附件#295
Open
lizhian wants to merge 1 commit into
Open
Conversation
lizhian
marked this pull request as ready for review
June 15, 2026 08:25
lizhian
force-pushed
the
own/paste-attachment
branch
3 times, most recently
from
July 1, 2026 13:52
3f5771a to
07b7cbd
Compare
Allow task and shell terminals to accept pasted file attachments and pass saved paths into the terminal session with configurable safety limits. Implementation: - Persist terminal paste payloads in the backend with filename sanitization, count and size limits, and PTY input wiring. - Share frontend paste handling across task and shell terminals so pasted files become readable attachment paths. - Expose attachment limits in app settings with localized labels and supporting styles.
lizhian
force-pushed
the
own/paste-attachment
branch
from
July 10, 2026 08:37
07b7cbd to
c78fc32
Compare
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.
变更内容
.nezha/attachments/<taskId>/并向终端输入附件 Markdown 引用。影响
该能力只在 macOS 可用;非 macOS 平台保持无操作。用户可以直接把剪贴板中的图片或文件粘贴到终端,让智能体通过生成的本地文件路径读取附件。
验证
pnpm lintpnpm testpnpm buildcargo check构建通过,Vite 仍输出现有的 chunk size warning。