It's not unusual for inspection to happen before work has completed - i wouldnt let that get to you.
In fact - it's often the contractor who is responsible for obtaining the permit and scheduling required inspections. Don't push them to cancel, otherwise they might complain that you're interfering with their side of the contract.
Instead, alert the building official of any concerns about code compliance or dangerous conditions, and then let them complete the inspection. They'll either flag those things to the contractor and give them a contingent pass, or they'll fail them and have them schedule another.
Either way - if somehow they make it to the end of their work without fixing it, you'll need to pursue the non-compliance section of your contract with them. Usually that's withholding final payment, and ultimately there's small claim litigation if that fails. Maybe your insurance agent can help you if it comes to that, but honestly it's a huge pain in the ass for something that's usually pretty small.
Ill just add - sometimes the contractor will get lazy because they know it's easier for you to make the repairs yourself then it is to litigate a broken contract. You'll have to decide yourself if that's true or not.
Can someone explain why jellyfin compatibility is helpful? I'm not aware of any jellyfin clients that function better than i typical subsonic one - unless this is just for people who want all their media in a single app?