There's no known way to properly put a character, as in generals, diplomats, agents, into a city without resulting in that weird bug. A possible way is to force move the newly spawned character into the settlement but force move only works for non-player characters.
Bookmarks