mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 21:59:38 +01:00
Applies the OnboardingWizard fix from #12667 to the 2026.831.0 stable line. On the first onboarding screen ("What is the name of your organization?"), clicking Continue created the organization but the guard `stillTheSameCompany(null)` treated the surrounding app adopting the just-created company (via the company-list refresh) as a takeover and returned before advancing. The wizard stayed on the name step while the organization was created — and every retry created another duplicate. Recognize the adopt-the-POST-result transition as the same successful company and advance to the first-agent step; a genuine switch to a different organization still stops with a clear error. Includes the regression test, which fails on the unpatched wizard.