How to handle taxes when overstaying 183 days
​
For context, i am both Chilean and Canadian citizen.
I worked 6 years remotely for a company in Canada. My company is fully remote and I pay taxes there (T4, they automatically deduct it), but I've been living in Chile for a year (so definitely more than 183 days) and plan to stay a couple more years for family reasons, and I'm still with the same canadian company.
It seems there is a treaty between Chile and Canada that prevents double taxation, but it's not automatic, and sometimes it may not even apply, and I could end up having to pay double.
Has anyone been in a similar situation? I just want to be at ease without worrying that years down the line the SII (or CRA) might come after me for millions.
The 3 year Chilean rule doesnt apply to me as I already lived until my 30s in Chile.
I'm also grateful for any info on accountants who specialize in international taxes.