2024 State Sourced income

In 2024, I lived in Missouri for 47 days. During this time, I worked hybrid (both at home and in office) for a company located in Kansas.  After the 47-day period, I moved to Texas and began working fully remote for the same Kansas company. 

Do I file a Part-year resident or Part-year non-resident return for Missouri?

Are my wages received after I moved to Texas still considered 'Kansas sourced'? After I moved to Texas I stopped withholding Kansas state taxes.

And how about the wages received while I lived in Missouri and worked part of the time in Kansas? Should I have been withholding both Kansas and Missouri taxes?

 

Thanks in advance for any insights you may have, they are greatly appreciated.