Put the oil in a deep skillet or medium saucepan over medium-high heat.
When hot, add the onion and cook, stirring occasionally, until it begins to brown, about 10 minutes.
Lower the heat slightly and continue cooking for 5 more minutes until very tender.
Add the garlic, ginger, optional chile, lemongrass, and curry powder.
Cook, stirring constantly, for about 1 minute until fragrant.
Add the mushrooms and cook for another minute, stirring to coat.
Pour in the vegetable stock and bring to a boil.
Reduce the heat to maintain a steady simmer and cook for about 10 minutes to let the flavors meld.
Stir in the coconut milk and cook for 5 minutes more, ensuring it does not boil.
Season with soy sauce, then taste and add more soy sauce, salt, or pepper if needed.
Stir in a couple of tablespoons of lime juice, taste again, and add more if you like.
Serve hot, garnished with fresh scallions and cilantro.
Don't skip the final squeeze of lime juice. The acidity is essential for brightening and balancing the rich, creamy flavors of the soup.