For California that is correct.
For Pennsylvania, I believe your spouse can file as MFS or MFJ, but if MJF, then that will treat you as a PA resident for the same period she was a PA resident, so all of your income for the first half of the year would need to be reported on the PA tax return. Seeing as that PA has a flat income tax rate, I don't think there is any benefit to filing jointly, so she might as well file MFS, with her being a PA part-year resident and you being a PA nonresident.
Note that even if she files MFS, half of your income for the first half of the year will need to be reported on her PA tax return. This is because California is a community property state, and since you are domiciled in CA, that means your income is community income, and half of it is considered her income. Since residents are taxed on their worldwide income, and she was a resident of PA for the first half of the year, the half of your income that is "her income" for that half of the year is taxed by PA, and will need to be reported on her PA tax return. That amount being taxed by PA doesn't mean you can remove it from your joint CA tax return -- your joint CA tax return still contains your entire year's income, including the part that is also taxed by PA, since that part is still CA-source income, even though it is considered your spouse's (i.e. a CA nonresident's) CA-source income. However, she will be able to claim a tax credit on her PA tax return (for PA it is called "resident credit" calculated with Schedule G-L) for tax paid to CA on the doubly-taxed income. The amount of the credit is the lesser of the amount of tax paid for that income in CA or PA; so if your CA effective tax rate is higher than PA's, the credit will just equal the PA tax for that income, so she will pay the same amount of PA tax in the end as if that CA income weren't there.