Place onion and garlic on a baking sheet coated with cooking spray. Place tomato halves, cut side up over onion. Combine thyme,cumin,salt, black pepper, and red pepper and sprinkle over tomatoes. Lightly coat vegetables with cooking spray. Bake at 375F for 40 minutes or until onions are browned and tomatoes are tender. Cool.
Place mixture in a food processor and pulse 6 times until mixture is slightly chunky. Stir in vinegar.
Cook beans in boiling water in a medium saucepan for 7 minutes or until just tender. Drain. Return to pan, and toss with olive oil. Add tomato mixture, and cook for 2 minutes or until throughly heated.