[PR #1331] [CLOSED] fix(tui): deduplicate file + completion attachments in messages #9897

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1331
Author: @jhrudden
Created: 7/25/2025
Status: Closed

Base: devHead: fix/dedupe-referenced-file-completions


📝 Commits (1)

  • 00b7757 fix: deduplicate attachments by path

📊 Changes

1 file changed (+21 additions, -1 deletions)

View changed files

📝 packages/tui/internal/components/chat/editor.go (+21 -1)

📄 Description

Deduplicate file attachments by path before sending to backend, keeping first occurrence of each unique file while preserving all text attachments

Before:
@file.go @file.go → sends 2 attachments

After:
@file.go @file.go → sends 1 attachment

Fixes: #1379


🔄 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/1331 **Author:** [@jhrudden](https://github.com/jhrudden) **Created:** 7/25/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/dedupe-referenced-file-completions` --- ### 📝 Commits (1) - [`00b7757`](https://github.com/anomalyco/opencode/commit/00b77572f06e2839e97ec6087fab1711b0bd52d3) fix: deduplicate attachments by path ### 📊 Changes **1 file changed** (+21 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/chat/editor.go` (+21 -1) </details> ### 📄 Description Deduplicate file attachments by path before sending to backend, keeping first occurrence of each unique file while preserving all text attachments **Before:** @file.go @file.go → sends 2 attachments **After:** @file.go @file.go → sends 1 attachment Fixes: #1379 --- <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:21 -05:00
yindo closed this issue 2026-02-16 18:14:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9897