SAN FRANCISCO — It’s been nine months since S.F. Superior Court Judge Kevin McCarthy left the bench because of a medical problem, but it may be a while before it’s clear whether he’ll retire or return.

McCarthy, who is 54 and was elected in 1996, hasn’t taken the bench since August of 2011, court spokeswoman Ann Donlan confirmed Monday.