summaryrefslogtreecommitdiffhomepage
path: root/packages/tui
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-07-04 12:16:55 -0400
committerDax Raad <[email protected]>2025-07-04 12:24:01 -0400
commitee01f01271f1e8c04a0efeacad0c36a44fd18515 (patch)
treea66fa3ef0c42ffc5e7ef7770590993c74f3f335f /packages/tui
parent32d5db4f0a0b0c1a90ba4301cbf0bb7bc2519613 (diff)
downloadopencode-ee01f01271f1e8c04a0efeacad0c36a44fd18515.tar.gz
opencode-ee01f01271f1e8c04a0efeacad0c36a44fd18515.zip
file attachments
Diffstat (limited to 'packages/tui')
-rw-r--r--packages/tui/internal/components/chat/editor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/tui/internal/components/chat/editor.go b/packages/tui/internal/components/chat/editor.go
index 427fcc3cf..99925e16d 100644
--- a/packages/tui/internal/components/chat/editor.go
+++ b/packages/tui/internal/components/chat/editor.go
@@ -108,7 +108,7 @@ func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
attachment := &textarea.Attachment{
ID: uuid.NewString(),
Display: "@" + fileName,
- URL: fmt.Sprintf("file://%s", filePath),
+ URL: fmt.Sprintf("file://./%s", filePath),
Filename: fileName,
MediaType: mediaType,
}