Working remotely as a telehealth employee. Where do I file for state taxes?

I am currently working for an employer based in Connecticut part-time doing tele-radiology while my residency is in Massachusetts. Starting in July, I will be working full-time for a company based in Maine doing the same work and continuing to reside in Massachusetts.

 

The information floating out there is unclear as to where I am supposed to file my state income tax: only Massachusetts where 100% of the work is done via telehealth workstation, OR with both CT & MA (ME & MA with the next job/filing). Hoping to get some clarification on this. Thanks!