Turn on the pot's Sauté setting. When it is hot, add the olive oil and the butter. Then add the leeks and onion. Cook, stirring occasionally, until they are tender.
Add the mushrooms, salt, pepper, and thyme leaves. Cook, stirring frequently, until mushrooms start releasing their liquid and turn a darker shade of brown.