Lived in CT, moved to PA, still work remotely for company in CT
I lived and worked in CT until July of 2021. In July, I moved to PA while continuing to work remotely at my job in CT.
First half of the year, all my income is liable to CT state income tax because I lived and worked in CT.
Second half of the year, when I worked remotely for a company in CT but lived (and did all the actual work) in PA, which state do I attribute this income to? Since CT is a Convenience of Employer state, do I still need to pay CT state income tax for the entire year, including when I lived in PA? Do I also have to pay PA state income tax on the income I made while living in PA? Is there any sort of credit or something that can be applied here so that I'm not being double taxed on the same income?