Bring a large pot of water to a boil over high heat. Add the salt and farfalle, then cook until al dente according to the package instructions. Drain and set aside.
Heat the olive oil in a large skillet over medium-high heat. Add the diced onions and cook, stirring occasionally, until soft and golden brown, 9-10 minutes. If using mushrooms, add them during the last 5 minutes of cooking and sauté until tender. Transfer the mixture to a bowl and set aside.
In the same skillet, add the kasha and toast over medium heat for 2-3 minutes, stirring frequently, until fragrant.
Add the minced garlic and cook for 60 seconds.
Pour in the vegetable stock, add the salt and black pepper, and bring to a simmer.
Cover, reduce heat to low, and cook for 12-14 minutes until the liquid is absorbed and the kasha is tender.
Add the cooked pasta and onion mixture to the skillet with the kasha. Stir gently to combine and warm through. Adjust seasoning if needed.
Serve with vegan sour cream, garnished with chives or parsley, if using.