I've been trying to gather more information on this issue, as I ran into it again immediately on a new laptop where I hadn't yet disabled sesman-use-friendly-sessions: https://clojurians.slack.com/archives/C0617A8PQ/p1718608002044069
observed behavior: I have three CIDER repls connected. I open a clj file in a project, it shows it's linked to the right REPL. As soon as I evaluate something, it is now linked to all three REPLs. I can see this because I show the result of (sesman-current-sessions 'CIDER) in the modeline
it seems the problem is with cider-repl-ns-cache, from what I can gather from skimming the source this is supposed to be a local variable in the repl buffer containing info about namespaces in that session, but instead it seems to contain namespaces from half a dozen different projects that I've had open.
It seems cider-repl-ns-cache is once defined in cider-repl as defvar-local, and once in cider-resolve as defvar (without local). Would that be an issue?
tested it on a fresh REPL, initially cider-repl-ns-cache is nil, once I evaluate a form it gets set to a map with 786 entries, namespaces from a whole bunch of different projects.
GH issue welcome, I could attend it more calmly over there