Regardless of whatever cause of the original separation of the joist and plate, there is an ongoing problem that could lead to a much more serious movements brought on by roof load. An engineer with restoration experience should be called in for an evaluation and a repair program. I take your description as a serious problem and stabilizing before winter might be prudent.