The US stock market reversed earlier losses and turned positive following the announcement of a 10-day ceasefire agreement between Israel and Lebanon. The ceasefire, aimed at reducing tensions in the region, provided a boost to investor sentiment, leading to a recovery in stock prices. Market indices, which had been in the red, quickly rebounded as news of the agreement spread, reflecting renewed optimism among traders.