[PR #1863] [MERGED] feat: convert attachments to text on delete #10091

Closed
opened 2026-02-16 18:14:41 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1863
Author: @neominik
Created: 8/12/2025
Status: Merged
Merged: 8/13/2025
Merged by: @adamdotdevin

Base: devHead: attachments-to-text


📝 Commits (6)

  • 3348852 feat: convert attachments to text on delete
  • de90c16 Merge latest dev into attachments-to-text
  • 14d5bcf Merge branch 'dev' into attachments-to-text
  • 5396354 Merge branch 'dev' into attachments-to-text
  • 42dbe1b Merge branch 'dev' into attachments-to-text
  • 8c6f7b0 Merge branch 'dev' into attachments-to-text

📊 Changes

2 files changed (+109 additions, -0 deletions)

View changed files

📝 packages/tui/internal/components/textarea/textarea.go (+34 -0)
packages/tui/internal/components/textarea/textarea_test.go (+75 -0)

📄 Description

Since #1704 has been reverted and I couldn't find a way to distinguish between drag&drop and regular pastes, let's use a different approach: Create attachments for paths, but remove the attachment and keep the text when deleting.

Fixes #1477


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1863 **Author:** [@neominik](https://github.com/neominik) **Created:** 8/12/2025 **Status:** ✅ Merged **Merged:** 8/13/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `attachments-to-text` --- ### 📝 Commits (6) - [`3348852`](https://github.com/anomalyco/opencode/commit/3348852aff8a78ca4b3ac6722a3728bc9b50968d) feat: convert attachments to text on delete - [`de90c16`](https://github.com/anomalyco/opencode/commit/de90c16b0b3c49df55b4a36da2594590879cd3d3) Merge latest dev into attachments-to-text - [`14d5bcf`](https://github.com/anomalyco/opencode/commit/14d5bcfd46f857ad30d8f70705f8740eb2be674d) Merge branch 'dev' into attachments-to-text - [`5396354`](https://github.com/anomalyco/opencode/commit/5396354331c1280f0aae0ff7bc3775dd88a28212) Merge branch 'dev' into attachments-to-text - [`42dbe1b`](https://github.com/anomalyco/opencode/commit/42dbe1b922281f33d035c1732c74309f3515c64d) Merge branch 'dev' into attachments-to-text - [`8c6f7b0`](https://github.com/anomalyco/opencode/commit/8c6f7b056b2040c7436af38c62510411d257d04c) Merge branch 'dev' into attachments-to-text ### 📊 Changes **2 files changed** (+109 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/textarea/textarea.go` (+34 -0) ➕ `packages/tui/internal/components/textarea/textarea_test.go` (+75 -0) </details> ### 📄 Description Since #1704 has been reverted and I couldn't find a way to distinguish between drag&drop and regular pastes, let's use a different approach: Create attachments for paths, but remove the attachment and keep the text when deleting. Fixes #1477 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:41 -05:00
yindo closed this issue 2026-02-16 18:14:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10091