fix(codex): accept prepared chat attachments with model overrides
This commit is contained in:
@@ -177,7 +177,7 @@ func prepareChatAttachments(sessionID string, attachments []protocol.ChatAttachm
|
||||
return nil, nil, fmt.Errorf("close attachment %q: %w", name, err)
|
||||
}
|
||||
uri := (&url.URL{Scheme: "file", Path: path}).String()
|
||||
files = append(files, opencode.PromptFile{URI: uri, Name: name})
|
||||
files = append(files, opencode.NewPreparedPromptFile(uri, name))
|
||||
parts = append(parts, protocol.ChatPart{Type: protocol.ChatPartFile, Name: name, Mime: mime, URI: uri})
|
||||
}
|
||||
return files, parts, nil
|
||||
|
||||
Reference in New Issue
Block a user