Skip to content

feat(desktop): support external file drops as attachment cards / 桌面端支持外部文件拖拽附件卡片#3577

Merged
esengine merged 1 commit into
main-v2from
codex/desktop-attachment-cards
Jun 8, 2026
Merged

feat(desktop): support external file drops as attachment cards / 桌面端支持外部文件拖拽附件卡片#3577
esengine merged 1 commit into
main-v2from
codex/desktop-attachment-cards

Conversation

@SivanCola

@SivanCola SivanCola commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • support dropped external files in the chat composer by keeping the native Wails file-drop path wired into attachment handling
  • render dropped/pasted attachments in user messages as compact file cards instead of inline [file:...] text
  • include workspace file/folder references in the same display system while preserving raw @... refs for model submission
  • dedupe pasted and dropped attachments in the composer, with removal restoring the ability to attach again

Testing

  • npm run build (desktop/frontend)

@SivanCola SivanCola requested a review from esengine as a code owner June 8, 2026 10:55
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 8, 2026
@SivanCola SivanCola changed the title feat(desktop): render chat attachments as cards feat(desktop): render chat attachments as cards / 桌面端将聊天附件渲染为卡片 Jun 8, 2026
@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label Jun 8, 2026
@SivanCola SivanCola changed the title feat(desktop): render chat attachments as cards / 桌面端将聊天附件渲染为卡片 feat(desktop): support external file drops as attachment cards / 桌面端支持外部文件拖拽附件卡片 Jun 8, 2026

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Verified: frontend typecheck clean + check:css passes. Clean attachment-card feature — hash+source dedup with proper add/forget/clear lifecycle, CJK-aware ref parsing, image/file/folder classification. Drag-drop itself is best smoke-tested on canary but the logic is sound.

@esengine esengine merged commit f5363dd into main-v2 Jun 8, 2026
12 checks passed
@esengine esengine deleted the codex/desktop-attachment-cards branch June 8, 2026 12:01
@SivanCola SivanCola changed the title feat(desktop): support external file drops as attachment cards / 桌面端支持外部文件拖拽附件卡片 feat(attachments): support external drops and PDF extraction / 支持外部拖拽与 PDF 提取 Jun 9, 2026
@SivanCola SivanCola changed the title feat(attachments): support external drops and PDF extraction / 支持外部拖拽与 PDF 提取 feat(desktop): support external file drops as attachment cards / 桌面端支持外部文件拖拽附件卡片 Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants