To crisp the tofu, cut it into 1-inch-thick rectangles and salt both sides. Wait about 10 minutes, then pat dry.
Heat 1 tablespoon of the coconut oil in a skillet over medium heat, add the tofu, then turn the heat to low. Cook the tofu on each side until golden, then remove to a paper towel.
Meanwhile, heat the other tablespoon of coconut oil in a large soup pot and sauté the onion for a few minutes. Add the garlic and cook for another minute.
Add the okra, mushrooms, bamboo shoots, Thai chilies, and lemongrass to the pot. Cook for 5 minutes.
Add the tamarind paste and crushed tomatoes. Bring to a simmer.
Cook the rice noodles according to package directions. Drain and set aside.
Add the pineapple and bean sprouts to the soup. Cook for 2 minutes.
Divide the noodles among bowls. Ladle the soup over the noodles. Garnish with cilantro, thai basil, and lime juice.