UiPath shares have rebounded from a steep 2026 slide after the automation firm posted its first GAAP profit and repositioned around AI agents.