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