[PR #1335] [MERGED] fix: attachment bugs #9895

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/1335
Author: @rekram1-node
Created: 7/26/2025
Status: Merged
Merged: 7/27/2025
Merged by: @adamdotdevin

Base: devHead: fix-file-upload


📝 Commits (1)

📊 Changes

2 files changed (+4 additions, -7 deletions)

View changed files

📝 packages/opencode/src/session/index.ts (+2 -4)
📝 packages/tui/internal/components/chat/editor.go (+2 -3)

📄 Description

fixes: #1330

  • file URLs should not have their paths percent-encoded
  • always uses absolute paths for file resolution

Now I have tested this a variety of ways:
@ references (text & image)
drag & drop files that live within and outside of the cwd (text & image)

Maybe there is something I am missing here but at least for me this fixes all attachment bugs I have ran into


🔄 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/1335 **Author:** [@rekram1-node](https://github.com/rekram1-node) **Created:** 7/26/2025 **Status:** ✅ Merged **Merged:** 7/27/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix-file-upload` --- ### 📝 Commits (1) - [`188dd0f`](https://github.com/anomalyco/opencode/commit/188dd0f46e63402097913f35a7c5a62b0ab8f62d) fix: attachment bugs ### 📊 Changes **2 files changed** (+4 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+2 -4) 📝 `packages/tui/internal/components/chat/editor.go` (+2 -3) </details> ### 📄 Description fixes: #1330 - file URLs should not have their paths percent-encoded - always uses absolute paths for file resolution Now I have tested this a variety of ways: @ references (text & image) drag & drop files that live within and outside of the cwd (text & image) Maybe there is something I am missing here but at least for me this fixes all attachment bugs I have ran into --- <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#9895