Asking a question “did you use to...?” when we don't know whether person still have that habit or not?
“used to“ implies habitual actions is the past that is not valid now. How about questions “did you use to...?” Could we ask such questions when we want to learn about habits in the past BUT we aren't sure whether those habits are still valid now or not?
Solution 1:
You are correct that saying that or asking whether someone "used to" do something implies that the action took place in the past and does not still continue.
If you asked me, "Did you used to work with XYZ?" and I still did, my response would say as much: "Yes, and I still do."
If you want to ask without that implication, use present perfect tense: "Have you worked with XYZ?"