Soak the dried mushrooms in warm water for 15–20 minutes, then drain. Skip this step if using fresh mushrooms.
Heat oil in a pan over medium heat. Add the onion and sauté for 4–5 minutes. Then, add the mushrooms, carrot, peas, garlic, thyme, and spices. Sauté for a minute, stirring frequently.