The Jetbrains IDEs run fish with a specific environment in order to add their own integrations. They do this by setting $XDG_CONFIG_HOME, which is where fish finds its universal variables.
This is broken in a variety of ways. See <
You might want to disable the shell integration in Preference -> Tools -> Terminal