Cook peas according to package directions. Set aside.
Melt butter in a skillet over medium heat. Saute onion and garlic in butter until tender, about 5 minutes. Stir in the peas and mushrooms, then season with sugar, salt, thyme and pepper. Reduce heat to low, and cook just until heated through.