summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components
diff options
context:
space:
mode:
authorDax <[email protected]>2025-07-18 13:42:50 -0400
committerGitHub <[email protected]>2025-07-18 13:42:50 -0400
commitd56dec4ba7867670d9a7dae2a535d38d59f24efb (patch)
treef10cde4e4aad0bc6d882266bdef96948251375f4 /packages/tui/internal/components
parentc952e9ae3d74dcdda2a4fbdfef19b42c49096026 (diff)
downloadopencode-d56dec4ba7867670d9a7dae2a535d38d59f24efb.tar.gz
opencode-d56dec4ba7867670d9a7dae2a535d38d59f24efb.zip
wip: optional IDs in api (#1128)
Diffstat (limited to 'packages/tui/internal/components')
-rw-r--r--packages/tui/internal/components/chat/editor.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/tui/internal/components/chat/editor.go b/packages/tui/internal/components/chat/editor.go
index 3db6fa80f..687553342 100644
--- a/packages/tui/internal/components/chat/editor.go
+++ b/packages/tui/internal/components/chat/editor.go
@@ -306,10 +306,10 @@ func (m *editorComponent) Submit() (tea.Model, tea.Cmd) {
var cmds []tea.Cmd
attachments := m.textarea.GetAttachments()
- fileParts := make([]opencode.FilePartParam, 0)
+ fileParts := make([]opencode.FilePartInputParam, 0)
for _, attachment := range attachments {
- fileParts = append(fileParts, opencode.FilePartParam{
- Type: opencode.F(opencode.FilePartTypeFile),
+ fileParts = append(fileParts, opencode.FilePartInputParam{
+ Type: opencode.F(opencode.FilePartInputTypeFile),
Mime: opencode.F(attachment.MediaType),
URL: opencode.F(attachment.URL),
Filename: opencode.F(attachment.Filename),