Skip to content

feat(prompt): edit image and pasted-text placeholders as blocks#1848

Open
HynoR wants to merge 3 commits intoMoonshotAI:mainfrom
HynoR:feat/paste-atomic
Open

feat(prompt): edit image and pasted-text placeholders as blocks#1848
HynoR wants to merge 3 commits intoMoonshotAI:mainfrom
HynoR:feat/paste-atomic

Conversation

@HynoR
Copy link
Copy Markdown
Contributor

@HynoR HynoR commented Apr 12, 2026

Related Issue

Resolve #1847

Description

把粘贴文本和粘贴图片当做一个placeholder块来处理。

  • Backspace / Delete 在 placeholder 边界时按整体处理
  • 左右方向键按整体选中 placeholder
  • 已选中的 placeholder 可被整块删除

测试

(AI生成的测试)补充了 prompt clipboard 相关测试,覆盖边界选择、整块删除、多 placeholder 以及 shell mode 不启用检查等场景。

修改后的效果

2026-04-12.15.30.36.mov

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run make gen-changelog to update the changelog.
  • I have run make gen-docs to update the user documentation.

Copilot AI review requested due to automatic review settings April 12, 2026 07:52
chatgpt-codex-connector[bot]

This comment was marked as resolved.

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@HynoR HynoR force-pushed the feat/paste-atomic branch from 64b505b to a47ff23 Compare April 20, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

把粘贴的图片和文本的placeholder 当做一个整体块处理 || Treat the pasted image and text placeholder as a whole block

2 participants